eclipse - How to call Java classes from JSP -
I have two JSP files, I have a class file to get a user input and print another result Which is called getdata.java when the user inputs something and prints out on the result page, how should I use that class?
/// getdata.java When the user redirects to the result page on the click button.
gt; & Lt; Br> & Lt; / Br & gt; & Lt; Input type = "submit" name = "submit" value = "search" /> Public class On_Classes {public void printData () {....}}
//// class file
Previous> /// Results Page
Maybe it can help? Unless you wanted to link to the Java page? If so, upload the web class to the web-INF directory and then link it to / servlet / classname in form action?
Or if you want to retrieve form data: string RAR name = request.getParameter ("formfieldname"); in the square.
Comments
Post a Comment