I like that approach better than the one I found using jsp:getproperty.
Thanks Kiran
Kiran Kumar
<[EMAIL PROTECTED] To: Struts Users Mailing List
<[EMAIL PROTECTED]>
om> cc:
Subject: Re: composing dynamic url
05/13/2004 02:31
AM
Please respond
to Struts Users
Mailing List
Use bean define and store the url into a jsp variable
and then use the following tag to forward it to the
particular u want
<bean:define .....
<html:link page="/<%bean define jsp var %>"
paramId="url" paramName="shtNum" paramProperty="url">
Hope this is useful
~Kiran
--- [EMAIL PROTECTED] wrote:
>
>
>
>
> I am new to STRUTS so I am struggling with the use
> of the "page or href"
> attribute in the html:link statement. I don't see a
> need to specify an
> action in the config-struts that points to an
> ActionClass to make the URL
> available to the JSP page. I already have the URL
> stored in a bean and I
> can see the value in the browser when my cursor is
> over the link. But when
> I click on the link it goes to the page specified by
> href. I need for it to
> go to the URL contained in the bean. The code
> listed below is what I have
> so far.
>
> I have spent a lot of time on this. Any help would
> be greatly appreciated.
>
> <logic:present name="constant.docNum"
> scope="request">
> <TABLE>
> <TR>
> <TD>CCS Number</TD>
> <TD>State</TD>
> <TD>Description</TD>
> <TD>Num Ref</TD>
> <TD>Type</TD>
> <TD>Iss</TD>
> <TD>Sht</TD>
> </TR>
>
> <logic:iterate id="ccsNum"
> name="constant.docNum">
>
> <TR>
> <TD><bean:write name="ccsNum"
> property="ccsNumber" /></TD>
> <TD><bean:write name="ccsNum"
> property="ccsNumState" /></TD>
> <TD><bean:write name="ccsNum"
> property="ccsNumDescr" /></TD>
> <TD><bean:write name="ccsNum"
> property="ccsDocNumRef" /></TD>
> <TD><bean:write name="ccsNum"
> property="ccsDocType" /></TD>
> <TD><bean:write name="ccsNum"
> property="ccsDocIss" /></TD>
>
> <TD>
> <logic:iterate id="shtNum"
> name="ccsNum"
> property="ccsDocSheets">
>
> <html:link
> page="/GetLatestRelNum.do" paramId="url"
> paramName="shtNum" paramProperty="url">
> <bean:write name="shtNum"
> property="shtNumber" />
> </html:link>
>
> </logic:iterate>
> </TD>
> </TR>
>
> </logic:iterate>
>
> </TABLE>
>
> </logic:present >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]