First, when the user press a button , it is in the front end , not the back end ,so when the user press the button , it should invoke a request through the http protocol , when the server accept this request , it can call your java code ,but I don’t think you can do in your way!
More Related Contents:
- How to loop through a HashMap in JSP?
- JSP tricks to make templating easier?
- How can I avoid Java code in JSP files, using JSP 2?
- Java error: Only a type can be imported. XYZ resolves to a package
- why business logic should be moved out of JSP?
- Struts 2 : There is no Action mapped for namespace [/]
- How to do if-else in Thymeleaf?
- How can I escape special HTML characters in JSP?
- Java HttpServletRequest get URL in browsers URL bar
- IntelliJ and JSP/JSTL cannot resolve taglib for JSTL in tomcat7 [duplicate]
- sending variable from one jsp to another jsp
- How to remove padding around buttons in Android?
- How can I set the welcome page to a struts action?
- Multiple submit buttons in the same form calling different Servlets
- How to access a request attribute set by a servlet in JSP?
- How to convert HTML to PDF using iText [duplicate]
- Assign JavaScript variable to Java Variable in JSP
- How can I find out which button was clicked?
- Struts2 jQuery plugin java.lang.ClassNotFoundException: org.apache.struts2.views.TagLibrary
- Is there a way to redirect to another Action class without using on struts.xml
- Pass data from Java Servlet to JSP? [duplicate]
- How to pass a value from one jsp to another jsp page?
- Concatenate strings in JSF/JSP EL and Javascript [duplicate]
- How to effectively use cardlayout in java in order to switch from panel using buttons inside various panel constructors
- Resultset To List
- How to map a ResultSet with unknown amount of columns to a List and display it in a HTML table?
- Unable to implement Struts 2 token interceptor with hyperlink
- Populating one select menu based on another select menu using AJAX in Struts2
- Avoid duplicate submission of Struts 2 jsp page
- Servlet redirect to same page with error message