JSF, request

Reply

Join Date: Jun 2007
Posts: 59
Reputation: Chaster is an unknown quantity at this point 
Solved Threads: 3
Chaster Chaster is offline Offline
Junior Poster in Training

JSF, request

 
0
  #1
Dec 12th, 2008
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:
  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!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC