I'd suggest you try the alternative syntaxes as a separate tag, rather
than trying to overload the existing link tag.

Be sure to include support for the forward property. I avoid use of href
myself, since it has the affect of embedding additional Action paths
into the JSP. (Bad enough that we require this for the html:form tag.)

-Ted.

Tom Morris wrote:
> 
> Thanks Ted & TomK,
> 
> As a beginer, I'd better think about what you have both said for a while.
> 
> However:
> 
> I'm not mixing-up the differences between forms and links,
> but we're experiencing the absence of integer parameters on a link
> but no problems with strings.
> Briefly: we have a FormBean containing a value-object, which has an integer
> property.
> I didn't think there were restrictions on the nested-property types.
> 
> I'll double-double check that we have no coding error.
> 
> As for the multiple parameters on link:
> I noticed a number of struts-projects using the 'form:' tags to submit
> parameters
> to other actions. (Note: these tags are extended so that hyperlinks can
> control
> a javascript form submission.). This is simply to ease making a multi-param
> http
> request. (I suppose froms can be made to GET instead of POST...)
> 
> Do you think it would be a worthwhile change to the already lovely Struts,
> to do something like the follwing?
> 
> <html:link href="/myproj/myaction.do">
> <html:linkparam paramId="uid" paramName="myBean" paramProperty="myId" />
> <html:linkparam paramId="name" paramName="myBean" paramProperty="myName" />
> Click Me
> </html:link>
> 
> I guess the 'html:linkparam' can use 'getParentTag' and use an 'addGetParam'
> (or something) adding values to populate a growing HashMap.
> 
> I'm pretty sure the TLD doesn't need to be anything speical.
> (I've created nested TagLibs before and don't remember anything difficult).
> Just make sure that = "<bodycontent>JSP</bodycontent>"
> 
> Or these simple notations (hacky & inelegant & limited):
> 
> <html:link href="/myproj/myaction.do"
> getParams="uid,myBean,myId|name,myBean,myName" >
> Click Me
> </html:link>
> 
> OR
> 
> <html:link href="/myproj/myaction.do"
> getParams="uid,myBean,myId|name,myBean,myName" >
> Click Me
> </html:link>
> 
> Many thanks for you comments,
> TomM

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to