943,867 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 1507
  • JSP RSS
Dec 12th, 2008
0

JSF, request

Expand Post »
Hello,

Can somebody help me out? Well, the problem is the following:
I have a JSF page, and the address bar contains a query string, like "...?author=something&title=something". I also have a command button, in its action I want to extract the parameters. So, in the bean I have the following code:
JSP Syntax (Toggle Plain Text)
  1. HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
  2. String controlName = request.getParameter("title");

When I press the button, the query string is eliminated alltogether, and I receive a big fat 'null' - of course.

Please give me some clue on this...
Thanks in advance!
Similar Threads
Reputation Points: 12
Solved Threads: 3
Junior Poster in Training
Chaster is offline Offline
68 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: How to lunch a file at Client side?
Next Thread in JSP Forum Timeline: What is the Advantage and Disadvantage of Pre-Compiled JSP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC