struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: [S2.1.6] problem with value attribute for <s:form>
Date Fri, 11 Sep 2009 23:53:02 GMT

the attribute is called includeContext (if i am not incorrect) 

http://struts.apache.org/2.0.11.2/docs/url.html

double-negatives anyone?
Martin 
______________________________________________ 
If you are not the intended recipient you are requested not to read the transmission



> Date: Fri, 11 Sep 2009 16:34:00 -0700
> Subject: Re: [S2.1.6] problem with value attribute for <s:form>
> From: musachy@gmail.com
> To: user@struts.apache.org
> 
> the url tag has an attribute to include/exclude the context, if I
> don't remember wrong.
> 
> On Fri, Sep 11, 2009 at 4:30 PM, Tommy Pham <tommyhp2@yahoo.com> wrote:
> > --- On Fri, 9/11/09, Tommy Pham <tommyhp2@yahoo.com> wrote:
> >
> >> From: Tommy Pham <tommyhp2@yahoo.com>
> >> Subject: Re: [S2.1.6] problem with value attribute for <s:form>
> >> To: "Struts Users Mailing List" <user@struts.apache.org>
> >> Date: Friday, September 11, 2009, 5:55 PM
> >> --- On Fri, 9/11/09, Musachy Barroso
> >> <musachy@gmail.com>
> >> wrote:
> >>
> >> > From: Musachy Barroso <musachy@gmail.com>
> >> > Subject: Re: [S2.1.6] problem with value attribute for
> >> <s:form>
> >> > To: "Struts Users Mailing List" <user@struts.apache.org>
> >> > Date: Friday, September 11, 2009, 3:17 PM
> >> > I didn't even know that form had a
> >> > "value" attribute. You should not
> >> > use that. (this might be due to our
> >> > all-tags-inherit-from-UIBean prom)
> >> >
> >> > musachy
> >> >
> >>
> >> Hi Musachy,
> >>
> >> Thanks for the reply.  After going over the tags
> >> reference several times, I can't seem to figure out the
> >> simplest way to get all of the parameters in the URL as I'd
> >> like.  If use the form's action attribute in
> >> conjunction with <s:url />, I get an extra context
> >> path inserted.  What do you recommend since the
> >> <s:form> doesn't have 'includeParams' like
> >> <s:url>?
> >>
> >> Thanks,
> >> Tommy
> >
> > Hi Musachy,
> >
> > I decided to use the HTML <form> instead.
> >
> > Thanks,
> > Tommy
> >
> >>
> >> > On Fri, Sep 11, 2009 at 11:10 AM, Tommy Pham <tommyhp2@yahoo.com>
> >> > wrote:
> >> > > Hi,
> >> > >
> >> > > I think I found another bug ... I want to
> >> include
> >> > whatever parameters in URL to a form submit action.
> >>  This
> >> > is what I used.
> >> > >
> >> > > <s:url var="urlFormActive"
> >> includeParams="get"
> >> > />
> >> > >
> >> > > <s:property value="%{urlFormActive}"/> or
> >> > <s:property value="%{#urlFormActive}"/> shows
> >> the
> >> > correct URL of:
> >> > > /recipes/Admin/Languages?sort=isoCode2.
> >> > >
> >> > > But when I use it in the <s:form>:
> >> > >
> >> > > <s:form enctype="multipart/form-data"
> >> method="post"
> >> > value="%{urlFormActive}">
> >> > > or
> >> > > <s:form enctype="multipart/form-data"
> >> method="post"
> >> > value="%{#urlFormActive}">
> >> > >
> >> > > The source code of the HTML shows:
> >> > > /recipes/Admin/Languages
> >> > >
> >> > > However, if I use action attribute instead of
> >> value, I
> >> > get this:
> >> > > /recipes/recipes/Admin/Languages?sort=isoCode2
> >> > >
> >> > > Which isn't what I want either and will get a
> >> 404
> >> > error as there isn't a servlet or Struts action mapped
> >> for
> >> > it.  Is anyone else having this same problem?
> >>  Should I
> >> > submit a bug report?
> >> > >
> >> > > Thanks,
> >> > > Tommy
> >> > >
> >> > >
> >> >
> >> ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> > > For additional commands, e-mail: user-help@struts.apache.org
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > "Hey you! Would you help me to carry the stone?" Pink
> >> > Floyd
> >> >
> >> >
> >> ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> > For additional commands, e-mail: user-help@struts.apache.org
> >> >
> >> >
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message