Results 1 to 4 of 4
  1. #1
    anirudh4uhere is offline Member
    Join Date
    May 2010
    Posts
    1
    Rep Power
    0

    Default problem with display of query parameters

    I am using a servlet and two jsps. both my jsps have 3 links in them. Till now I am using query parameters to call them and handle them using servlet. Just my requirement got changed and I have to display the jsps without the query parameters in the URL. Please help...
    Till now my link to JSPS are like this.
    project/servlet?redirectPage=add_edit.jsp?function=add
    project/servlet?redirectPage=delete.jsp

    My add_edit page has code for add and edit links and delete.jsp has data for delete...
    Now my link has to be like project/servlet

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default

    Have separate servlets for those tasks?

  3. #3
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Use the POST method to submit the parameters in a form.

  4. #4
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default

    Quite.
    Without actually knowing what the setup is, it's hard to give anything but a guess.

    A single servlet doing multiple tasks sounds wrong, though...

Similar Threads

  1. Mysql/JDBC update query problem
    By thelinuxguy in forum Advanced Java
    Replies: 3
    Last Post: 02-11-2009, 09:56 PM
  2. problem with displaying data from hql query
    By omesanni in forum Web Frameworks
    Replies: 1
    Last Post: 01-05-2009, 10:03 AM
  3. problem in select query
    By herfnai in forum JDBC
    Replies: 0
    Last Post: 08-17-2008, 11:47 AM
  4. ms access jdbc query problem
    By Fleur in forum New To Java
    Replies: 2
    Last Post: 04-30-2008, 06:55 PM
  5. problem with parameters of a form
    By ravi503 in forum New To Java
    Replies: 0
    Last Post: 03-13-2008, 06:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •