Results 1 to 3 of 3
  1. #1
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Rep Power

    Default struts-config.xml

    I want to use only one <forward> tag in my struts-config.

    Java Code:
    <forward name="/viewcart" path="/"/>

    for every request from the jsp page the name and path
    attribute will be change dynamically that means "/viewcart"
    and "/" will act as a variable and changed depending on the request

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


    over-ride the initModuleConfig method in your own servlet by extending ActionServlet, reconfigure the struts action servlet in your web.xml by making your own servlet as an action servlet for the url pattern *.do (you can use any pattern)

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


    you have done it rite wats t problem thn?
    in ma view u have written same required to do tat

Similar Threads

  1. New to Struts
    By Swamipsn in forum Web Frameworks
    Replies: 4
    Last Post: 10-07-2008, 11:01 PM
  2. question about struts-config.xml
    By christina in forum Web Frameworks
    Replies: 2
    Last Post: 02-15-2008, 10:45 AM
  3. reading values from config file
    By sathish_2111 in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 08-10-2007, 03:09 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