Unfortunately, you cannot "nest" tags within each other. You best best is to put a global forward in your struts-config.xml, such as:
<forward name="membership" path="/membership.do"/> And then write your <a href> as follows: <a href="<html:rewrite forward='membership'/>?id=<bean:write name='formBean' property='id'/>">Membership</a> OR, I "think" you can do it this way: <html:link page="/membership.do" paramId="id" paramName="formBean" paramProperty="id">Membership</html:link> Also, I think it's good practice to have all your "links" go to "forwards" rather than "pages". This way, if you ever need to change your action mapping (from say *.do to /do/*), you can do it by only touching the web.xml and struts-config.xml. HTH, Matt --- Victor Hadianto <[EMAIL PROTECTED]> wrote: > Hi list, > > I wonder if I'm doing something really wrong here, this is what I want to do: > > <html:link page="/membership.do?id=<bean:write name='formBean' > property='id'/>">Membership</html:link> > > Struts ignores the <bean:write> tag altogether. > I have to use a normal <a href> tag for example: > > <a href"/context/membership.do?id=<bean:write name='formBean' > property='id'/>">Membership</a> > > to get this to work. Now the obvious problem is using the <a href> tag > I have to include the context. Very annoying. > > Did I do something really wrong here? > > Regards, > > -- > Victor Hadianto > --------------- > Remember, in 2039, MOUSSE & PASTA will be available ONLY by prescription!! > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>