[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

Redirect Causing loss of Prameter and Attribute Values

Hello I am new to JSP and I have a few questions regarding the same .

I am using (JSf-struts) for a web application in which I redirect a page (in the config class) .I am not able to access param/attribute values in the action class after redirection.

Does redirection cause the loss of param values , if so what should be the remidy
0
micro_learner
Asked:
micro_learner
  • 2
1 Solution
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
one simple thing you can do is to uses sessions set the param/attribute  values in session and use them.
using session.setAttribute() or session.setParameter() and there getters suitably.

Thank You.
0
 
micro_learnerAuthor Commented:
Could you please show me an example where I can set attributes for session variables in the JSF page
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now