Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Handling errors in Struts

Thread view: 
vyshu - 26 Apr 2007 10:53 GMT
hi,

                                        I am devoloping an
application using struts.I am facing some problems in handling
errors.Let me expain my situation.I have two forms in diffrent jsp
pages.On the click of submit,I am processing the data in a single
Action Servlet.In my action mapping i can specify only one page as the
value for the attribute "input".so in case of any errors,I am not able
to redierct to the exact input page.

any comments?

thanks,
vysh
Sanjay - 26 Apr 2007 13:52 GMT
> hi,
>
[quoted text clipped - 10 lines]
> thanks,
> vysh

If I understand you correctly, let me ask you this, what is stopping you
from adding two  separate action mappings? For example

<action path="/blah1" type="blah.blah.action1"
    .....
    .....
    input="/yada1.jsp"
</action>

<action path="/blah2" type="blah.blah.action1"
    ....
    ....
    input="yada2.jsp"
</action>
vyshu - 27 Apr 2007 05:07 GMT
> > hi,
>
[quoted text clipped - 25 lines]
>         input="yada2.jsp"
> </action>

Thanks a lot for your reply sanjay.yeah,i did the same!.
ok,this is done.
But yesterday i just got messed up with new one.
I have an form for updating the customer details.when ever the user
say submit,it calls the action and performs the updation.Now comes my
problem,I want to redirect back to the same update page with the newly
updated values.I think you got what i meant.
Let me be specific,Can i call an action from another action?.If its
possible please do reply me.
waiting for your suggestions.
thanks,
vysh.
Richard Senior - 27 Apr 2007 10:25 GMT
> Let me be specific,Can i call an action from another action?.If its
> possible please do reply me.

You've started another thread on this :(

Signature

Regards,

Richard



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.