Results 1 to 1 of 1
  1. #1
    niteangell21 is offline Member
    Join Date
    Sep 2010
    Rep Power

    Default implementing struts action classes

    Guys, I am trying to implement Struts in my java app and replacing my servlet controllers using Struts action classes. I have 2 questions related to it.

    1. Do I need to replace all my servlet controllers with Struts action classes? If not, how do i identify which one to be replaced?

    2. Can I forward the action class to another servlet instead of a jsp page?
    Or does it defeat the purpose of using struts?

    3. Do I need to create an Action and a Form class everytime? Can my newly created Action class use a previously created Form class?
    For example, say I have LoginForm, LoginAction and AdminAction. Can AdminAction access LoginForm? or does it has to be AdminForm itself? because the LoginForm & AdminForm uses the same code.
    Last edited by niteangell21; 12-07-2010 at 09:36 PM.

Similar Threads

  1. decorator.jsp problem building Struts Menu in JSP when Struts action is used
    By dkirvan in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-29-2010, 06:33 AM
  2. pass value to struts
    By munish in forum Web Frameworks
    Replies: 1
    Last Post: 11-13-2009, 03:51 PM
  3. Action class in Struts
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-27-2007, 11:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts