I have a jsp form
<form action="../sup/Processor.jsp" method="POST" name="ProjectKey" id="Proje">
I want to send this from in to another jsp page. How can i do that
I have a jsp form
<form action="../sup/Processor.jsp" method="POST" name="ProjectKey" id="Proje">
I want to send this from in to another jsp page. How can i do that
What I understand from your question is you want to re-use the <form>
snippet in your other JSPs.
Please correct me if this is not what you want, I would suggest providing more information in your question about what you exactly want to do and why. Thanks
So you can have your form
in a JSP, say my_form.jsp
and then reuse the my_form.jsp
by using any of the following:
Using the include
directive i.e. static include
<%@ include file="my_form.jsp" %>
Using the jsp:include
standard action, this will include the form in my_form.jsp
in any page at run-time.
<jsp:include page="my_form.jsp" />
In addition here are some more links which can help you understand this better:
I would suggest you go through some good tutorial regarding the concepts of web-application and using jsp and servlets. Our tags on stackoverflow have good information regarding what to read and how to dive deep in the topic.
Hope this helps.