I'm new in using JSP and I need to get a value from a textbox by upon clicking a button. I am using Java Netbeans with the server apache tomcat. This is how it works...
The textbox is enclosed in an HTML tag
I am not familiar with JSP and it gives me a hard time.
解决方案
My answer is quite familiar with the first answer.
mainPage.jsp
Your Title Heresample.jsp
String firstname = request.getParameter("firstname");
/*
* Some code here
*/
%>
I'm also using apache tomcat.
You have to configure your web.xml as said in the first answer.
Hope that helps.