So, apparently I completely misunderstood the problem. I'll go back to one of the HTML examples from one of my earlier posts:

<a href="view.do?display=page1">Text</a>

To get the value 'page1' from within your Action, all you need to do is 'request.getParameter("display")'. The corresponding html:link code could be

<html:link action="view" paramId="display" paramName="bean1">text</html:link>

where 'bean1' is the name of a bean whose String value is "page1".

Have a look at the JavaDoc for DispatchAction. You can create a sub-class of DispatchAction with a method for each possible value of your display attribute and DispatchAction will handle the rest.

-- Jeff

marc wrote:
Yeah is't the Action code that I got problems with.

Can't figure out have to read the html link in my action.

Jeff Beal wrote:

Maybe, but I'm still not sure exactly where you're having problems. Are you having problems writing the Action code to pass the request to the different pages? If so, have a look at DispatchAction -- it is one possible approach to this situation. If the problem is in using the Struts tags to generate the appropriate HTML code to create a link, then could you give an example of what code you want to generate and we'll go from there?

-- Jeff



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



Reply via email to