Results 1 to 3 of 3
  1. #1
    christina is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default question about struts-config.xml

    Can anyone tell me what does action tag do and its attributes?
    I've read tutorials and manuals but I still haven't understood the concept
    can you help me?
    thanks in advance

  2. #2
    Problem is offline Member
    Join Date
    Jul 2007
    Rep Power


    Action tag specifies what action has to be taken when a particular key(specified by has been encountered in ur JSP code.

    attribute path specifies by what name u want to specify the action in the struts-config.xml,
    scope can be request, session,
    name is the name of ur form class
    type is the full path of ur action class... eg; com.urcompany.struts.action.ACTIONCLASSNAME

  3. #3
    JavaEmpires is offline Member
    Join Date
    Dec 2007
    Rep Power


    Just adding some more attributes to wat "Problem" mentioned

    validate : can be true or false... specifies whether to validate the form[html/jsp] using the form bean. In other words this will execute validate() method from ur formbean.

    input : the file name wherein the form[jsp] resides. The values from this files will be populated in the form bean for validation.

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  2. struts-config.xml
    By Heather in forum Web Frameworks
    Replies: 2
    Last Post: 01-17-2008, 12:23 PM
  3. reading values from config file
    By sathish_2111 in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 08-10-2007, 03:09 PM
  4. Struts or JSF?
    By Swamipsn in forum Web Frameworks
    Replies: 0
    Last Post: 08-01-2007, 10:10 AM
  5. struts question
    By Alan in forum Web Frameworks
    Replies: 2
    Last Post: 05-17-2007, 04:11 PM

Posting Permissions

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