Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Location
    Italy
    Posts
    3

    Angry Unanswered: How to change target FORM in javax class

    Hi all,
    little question:
    In my method public void performHttpRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    called from basket.jsp
    <FORM name="updateBasketForm" action="/servlet/com.rhiag.ModifyCart" method="post" target="basket">
    I can change redirect with response.sendRedirect(redirectURL).
    But if I want change the target (target="basket") what I have to do?
    TIA to all.

    Luigi Consonni
    Last edited by lconsonni; 07-15-03 at 06:57.

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1

    Re: How to change target FORM in javax class

    Originally posted by lconsonni
    Hi all,
    little question:
    In my method public void performHttpRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    called from basket.jsp
    <FORM name="updateBasketForm" action="/servlet/com.rhiag.ModifyCart" method="post" target="basket">
    I can change redirect with response.sendRedirect(redirectURL).
    But if I want change the target (target="basket") what I have to do?
    I don't think you can do it without re-generating your jsp with another value of the "target" attribute. "target" is an instruction for the browser and as such has nothing to do with Java itself.

Posting Permissions

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