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 can i call a servlets from a jsp if needed??  RSS feed

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can a servlet can be called from a jsp in a MVC architecture if needed???and how can any file be called from a jsp??
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to study the servlet and JSP APIs and other available materials instead of asking these shotgun questions that would take a book chapter to answer.
Just reading some of the past threads on this forum would answer your questions.
Bill
 
Randall Twede
Ranch Hand
Posts: 4680
8
Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is one way:
<form action="/examples/servlet/CheckoutServlet" method="post">
<input type="submit" value="Yes, I'm finished"></form>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!