Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How to call Servlet from JSP Along with a parameter

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to call Servlet from JSP Along with a parameter

    How to call Servlet from JSP Along with a parameter


  2. #2
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,235
    Thanks
    176
    Thanked 817 Times in 760 Posts
    Blog Entries
    5

    Default Re: How to call Servlet from JSP Along with a parameter

    Did you try a web search? Let me google that for you

  3. #3
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: How to call Servlet from JSP Along with a parameter

    Quote Originally Posted by Shivputra View Post
    How to call Servlet from JSP Along with a parameter
    If you mean: call the Servlet and include its output into the JSP .... you can use the <jsp:include> standard action. (note: with JSTL there is <c:import> that also works).

    If you mean: call the Servlet after the page has been generated and sent to the client ..... then only the client (browser) can and must do another request to the server. And this is possible in any "client" way: links, forms submit, AJAX requests, etc...
    Andrea, www.andbin.net SCJP 5 (91%) SCWCD 5 (94%)

    Useful links for Java beginners My new project Java Examples on Google Code

Similar Threads

  1. How to call Servlet using ajax
    By pragathi in forum Other Programming Languages
    Replies: 5
    Last Post: February 4th, 2014, 10:16 AM
  2. How to call Servlet using ajax
    By pragathi in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 4th, 2014, 04:15 AM
  3. Jsp Servlet problem with getting parameter vaules from another jsp page
    By venkat_tk in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: February 25th, 2013, 01:51 AM
  4. Replies: 0
    Last Post: October 31st, 2012, 06:22 AM