Results 1 to 2 of 2

Thread: Hiding Request Parameters in PetClinic

  1. #1
    Join Date
    May 2005
    Posts
    11

    Default Hiding Request Parameters in PetClinic

    Is there any way to prevent the parameters from being visible in the address bar in the petclinic application? I tried changing the form method to "POST", but they were still appended as query parameters. Is there any reason why GET doesn't need quotes around it?

    Thanks!

    <FORM method=GET action="<c:url value="/editPet.htm"/>" name="formEditPet<c:out value="${pet.id}"/>">
    <INPUT type="hidden" name="petId" value="<c:out value="${pet.id}"/>"/>
    <INPUT type="submit" value="Edit Pet"/>
    </FORM>
    <FORM method=GET action="<c:url value="/addVisit.htm"/>" name="formVisitPet<c:out value="${pet.id}"/>">

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Is there any way to prevent the parameters from being visible in the address bar in the petclinic application?
    Try overriding AbstractFormController.isFormSubmission(HttpServle tRequest req).

    I tried changing the form method to "POST", but they were still appended as query parameters.
    This shouldn't happen. Maybe you changed it on the wrong form. This change will break the app. unless you do the override described above.

    Is there any reason why GET doesn't need quotes around it?
    Browsers are forgiving. It should be there.

Similar Threads

  1. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  2. Replies: 9
    Last Post: Nov 1st, 2005, 10:36 PM
  3. Request parameters not in command object
    By fallofrome in forum Web Flow
    Replies: 4
    Last Post: Aug 2nd, 2005, 04:10 PM
  4. RequestScope and request parameters
    By Christian in forum Web Flow
    Replies: 2
    Last Post: Jun 29th, 2005, 10:33 AM
  5. Replies: 7
    Last Post: Nov 30th, 2004, 03:14 PM

Posting Permissions

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