Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling different files

 
Aditi agarwal
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
my problem is bit typical to understand sopls feel free to ask if any doubts in that

actually i have 3 files one.jsp, two.jsp, three.jsp
i want to call

three.jsp after clicking one submit button of one.jsp but in between the action of two.jsp should also be called

please reply about this query

thank you
 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forward the control to wherever you like:
http://www.roseindia.net/struts/struts-forward-action.shtml
 
Aditi agarwal
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you sharon
for your reply

but sorry i am not asking this i want to go to third page from first while calling action file of 1 & 2nd page in between to perform both action

but then also i learn a new thing & thanks for your post
 
Raza Mohd
Ranch Hand
Posts: 247
Java MyEclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi aditi ,

Why do you want to call a action that is not in the scope..?

best regards
Raza
 
ishan dave
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aditi agarwal wrote:hi
my problem is bit typical to understand sopls feel free to ask if any doubts in that

actually i have 3 files one.jsp, two.jsp, three.jsp
i want to call

three.jsp after clicking one submit button of one.jsp but in between the action of two.jsp should also be called

please reply about this query

thank you


Hi,

I am not sure but action chaining might help you.

http://struts.apache.org/2.2.1.1/docs/action-chaining.html

regards,
Ishan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic