Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: leave the remaining html code after jsp:forward tag

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default leave the remaining html code after jsp:forward tag

    how to bypass the remaining html code after the <jsp:forward> tag??After processing DELETE task from del.jsp page, I am again rendered to this page which shows the html form. how can I leave the remaining html code after it?

    <%
    String hiddenValue_delete = request.getParameter("del");
     
    %>
     
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
     
            <%
    if (hiddenValue_delete != null)
        { %>
            <jsp:forward page="del.jsp">
            <jsp:param name="hide" value="<%= request.getParameter(\"del\")%>"/>
            </jsp:forward>
     
     
    <% }%>
     
            <form method="post" action="update.jsp">
            <table id="edit" border="0" cellpadding="1" cellspacing="1">
     
                 /* HTML TABLE*/
     
            </table>
     
     
            </form>
    	</body>
    	</html>

    My del.jsp page contains:
    <% /* java code for deleting data from the selected row, no any html code*/ %>


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: leave the remaining html code after jsp:forward tag

    That doesn't jive with what the documentation says: http://java.sun.com/products/jsp/tag...axref.fm9.html

    I'd recommend throwing together an SSCCE of both your main page and your delete handler.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Remaining compile errors: no suitable method found for & cannot find symbol
    By ChuckLep in forum What's Wrong With My Code?
    Replies: 4
    Last Post: December 12th, 2011, 03:33 PM
  2. Display HTMl code in JAVA terminal...
    By Alkirk in forum Java Theory & Questions
    Replies: 3
    Last Post: November 16th, 2011, 03:34 AM
  3. output to a specific location in html code
    By aketr in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 15th, 2011, 11:44 AM
  4. why does this code read an html file uncontinuously
    By nasi in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 25th, 2010, 09:09 PM
  5. how do you leave a line space in java?
    By ss7 in forum Java Theory & Questions
    Replies: 7
    Last Post: November 5th, 2009, 08:20 AM

Tags for this Thread