RE: forward to jsp or to do ?

2001-12-14 Thread Mâris Orbidâns
tShow")); Maris -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 5:08 PM To: Struts Users Mailing List Subject: Re: forward to jsp or to do ? It's best to forward to an action (to a do). In fact I suspect it's the normally a

RE: forward to jsp or to do ?

2001-12-13 Thread Mâris Orbidâns
it was because my action class forwarded to itself. excuse me, pls Maris -Original Message- From: Mâris Orbidâns Sent: Thursday, December 13, 2001 6:00 PM To: Struts Users Mailing List Subject: RE: forward to jsp or to do ? I changed a forward from search.jsp to

RE: forward to jsp or to do ?

2001-12-13 Thread Mâris Orbidâns
I changed a forward from search.jsp to search.do. Then when I forward to "/search" it throws an exception. I tried to change some other forwards from jsp to do with the same outcome. Actually it goes in a loop printing the same stack trace again and again. I have do forward to logoff only. But

re: forward to jsp or to do ?

2001-12-13 Thread Peter Alfors
Correct, if you forward to a jsp, it will display the compile jsp servlet. If you forward to a do, then it will look for that action in your actions-config.xml and execute the appropriate action class. This allows you to chain actions together. HTH, Pete >What' s the difference between a f

Re: forward to jsp or to do ?

2001-12-13 Thread Keith Bacon
It's best to forward to an action (to a do). In fact I suspect it's the normally accepted way to do it. Instead of your jsp being run directly, the struts action servlet will create the form bean defined for the action & call your action classes perform method first. You can set properties of the