facebook

Struts & Servlet

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #259635 Reply

    cpyong27
    Member

    Hi,
    Does anyone come across any tutorial that teaches how to use servlet and struts together? For example, a JSP, after hitting a SUBMIT button, calls a servlet and its response is output to another JSP?

    Regards,
    Jacob

    #259744 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Jacob,
    I don’t know if you are asking this because of a special processing case, or for another reason, but the use case you gave in the general sense is why Struts exists, to avoid servlets all together.

    JSP -> Wrap up all the properties and values in a bean -> Call some ‘action’ and hand it the bean and say “do something with it”

    That’s how Struts works.

    So if you knew that, and specifically want to just combine Servlets in your Struts app for some reason, there is nothing stopping you, go ahead and post to your Servlets, you just need to do all that manual work yourself.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Struts & Servlet

You must be logged in to post in the forum log in