Re: Action: how can i Forward with parameter at perform method.

2002-03-16 Thread Mikael Eriksson


The simplest way (IMHO) to get something from an action class to the
following JSP is to set it as a request attribute

I.e, in action:
request.setAttribute("ID", "11");

In jsp
   Use ID as a bean with struts tags. Get it with a jsp:useBean if you want it
in scriptlets.

That of course assumes that your forward does not do a redirect.

  Regards
  Mikael


At 13:00 2002-03-16 +0800, you wrote:
>Hi all,
>
>I would like to know, how can i forward a page with parameter... my
>problem detail like that:
>
>A action class...
>---
>
>public ActionForward perform(.) {
>...
>... do what i have to do.. like update/delete/insert operation...
>...
>if ( every ok ) {
>return (mapping.findForward("success");
>// problem here... success is map to a jsp "ListDetailwith_ID.jsp"...
>}
>}
>
>---
>The ListDetailwith_ID.jsp accord the parameter (?ID=11) to list out
>the detail ... but i don't how can i pass the parameter at my Action class.
>
>Please help.
>
>Gordon
>
>
>_
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Action: how can i Forward with parameter at perform method.

2002-03-15 Thread Gordon Luk

Hi all,

I would like to know, how can i forward a page with parameter... my
problem detail like that:

A action class...
---

public ActionForward perform(.) {
...
... do what i have to do.. like update/delete/insert operation...
...
if ( every ok ) {
return (mapping.findForward("success");
// problem here... success is map to a jsp "ListDetailwith_ID.jsp"...
}
}

---
The ListDetailwith_ID.jsp accord the parameter (?ID=11) to list out
the detail ... but i don't how can i pass the parameter at my Action class.

Please help.

Gordon


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: