Hello,

I'm thinking about calling actions code (that perhaps they are not an URL
and then they don't appear in the struts.xml) from JSP pages.
Is it possible? I'd want to separate the workflow (success, error, input,
etc..) from the necessary business logic for rendering a JSP page.

For instance, in more than one page I could need the list of users in
different formats (combobox, lists and so on) and perhaps I don't need to
list them alone as an url 'userList.action'. Therefore I think that creating
the action code, calling them from the JSP,  putting the necessary
parameters from the request or the session (in general from the value
stack), execute it and get the result would be useful. (I don't want to pass
for each interceptor... because it is unnecessary)
The code will be:

<s:necessarytagRepresentation actionClass="package1.package2.userList"
property="userList" />

It's easy using the BeanUtils library, but I am not sure if struts offers me
some util classes to implement it or it is already created...
Comment: It's like the action tag but without declaring it in the
struts.xml.

Any suggestion or advice?

Thanks.

-- 
Raquel Pau

Reply via email to