Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

REquest parameters question in Struts

 
Ram Gokul
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Till now , I had a html:form which posts parameters to Action class A whose success forwarding is success.jsp .

This works fine and parameters I post do no appear in browser URL and success.jsp is called.The URL in Browser is http://myurl.com/ActionA.do.

Now , from Action class A I call another Action class B , and Action class B calls success.jsp . This is due to some security constraints I have . Success.jsp appears successfully , but the URL is now changed to http://myurl.com/ActionB?parameters_list_with_values.

1. why does the parameter appear in the second case and not the first case .
2. How can i hide the parameters from URL because it contains the User password ?

In both the cases , I execute mapping.findforward(success) .
Can someone explain ?

Thanks
 
mohit bahl
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ram Gokul

Please give details of how you are calling the Action class B from A

cheers!
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!