You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rick Col <ri...@yahoo.com> on 2003/08/01 03:03:20 UTC
Re: Is it possible to capture selected values on jsp page?
Thanks, very helpful...
Still one thing unclear: do I need to put my action
form
in classpath to be imported in my jsp page? Is there a
better way to do it? This sounds messy, but I will try
it out if it works.
regards,
--- Michael Ruppin <mr...@yahoo.com> wrote:
> Well, ultimately jsp IS Java.... You can always do
> this:
>
> <%
> String
>
foo="http://myweb.com/mypage?companyid="+id+"&ssn="+ssn;
> %>
> <mytag:sample name="persons" uri="<%=foo%>" />
>
> However, use of scriptlet is discouraged here. If
> you
> switch to JSTL tags, and put foo into an ActionForm
> property populated in your Action, you could:
>
> <JSTLtag:sample name="persons" uri="${myForm.foo}"
> />
>
> m
>
> --- Rick Col <ri...@yahoo.com> wrote:
> > Thanks,
> >
> > I will try that out. What I try to do is to
> capture
> > form variables as strings, and concatenate them
> with
> >
> > a html address as request parameters. I am not
> sure
> > how to
> > concatenate them with the link in JSP page, and
> add
> > the
> > whole address to a taglib parameter like the
> > following:
> >
> > <mytag:sample name="persons"
> >
>
uri="http://myweb.com/mypage?companyid="+id+"&ssn="+ssn>
> >
> > In Java, we can concatenate strings like that, in
> > Jsp,
> > can we do that? Or there is another way?
> >
> > regards,
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org