Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to call a java file from jsp  RSS feed

 
Dhara Sarvaiya
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want my java file(called from jsp) to run when i click submit button from my html page. i m using tomcat. can anyone tell me the syntax on how to call the java file from the jsp page.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just use a servlet class and let the JSP submit to it the usual way. There in you can write Java code the way like you want.
 
Dhara Sarvaiya
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell me the syntax for this?And what is java beans? Can it be used for this task?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That a lot of information to try and fit into a forum response. rather, get yourself a good (modern) book or tutorial on servlets to get you started.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!