One thing you can do is use a <meta> tag which contains the name of the jsp
page. When you submit to the same action, and when you want to show errors
to the input page, get this value out of the <meta> tag and forward to that
page.

I would strongly suggest you use a separate action class for every jsp .
That way it woule be easier to maintain and debug. 
If you think all the pages perform almost the same action(s) i would suggest
you use an inheritance mechanism.

cheers,
Amar..

-----Original Message-----
From: alex [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 2:26 AM
To: [EMAIL PROTECTED]
Subject: Re: Feature request


hi all. 

i wonder who can help me resolve this problem.
i am making a program based on struts.
there are some circumstances that serval pages invoke one same
action. and if some errors occured i want to show these errors in 
the previous page, but i cannot judge where the page is, cuz,
there are many pages can invoke this action.



thanks alot

redbeebird.

Reply via email to