Results 1 to 6 of 6
  1. #1
    bhaskary is offline Member
    Join Date
    Apr 2008
    Location
    hyderabad
    Posts
    11
    Rep Power
    0

    Default i am developing one project using struts and springs

    Hi all,
    i am developing one project using struts and springs can any one tell how to start my project give me full structure


    thanks,
    bhaskary

  2. #2
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default

    SpringFramework is complete in it. Do you want to use Struts-Tiles only , or
    something else.

    in case, you want to use only Tiles feature of Struts, then you need to use its resolver only.
    i am the future

  3. #3
    bhaskary is offline Member
    Join Date
    Apr 2008
    Location
    hyderabad
    Posts
    11
    Rep Power
    0

    Default

    thanks rjuyal,

    i am using Tiles feature of Struts and SpringFramework

  4. #4
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default

    in your servlet.xml

    Java Code:
    <bean id="viewResolver"        class="org.springframework.web.servlet.view.InternalResourceViewResolver">
            <property name="viewClass">
                <value>
                    org.springframework.web.servlet.view.tiles.TilesJstlView
                </value>
            </property>        
        </bean>
    Java Code:
       <bean id="tilesConfigurer"
            class="org.springframework.web.servlet.view.tiles.TilesConfigurer">
            <property name="factoryClass">
                <value>
                    org.apache.struts.tiles.xmlDefinition.I18nFactorySet
                </value>
            </property>
            <property name="definitions">
                <list>               
                    <value>path-of-your-tiles-defs.xml</value>                
                </list>
            </property>
        </bean>

    Hope this make sense :)
    i am the future

  5. #5
    bhaskary is offline Member
    Join Date
    Apr 2008
    Location
    hyderabad
    Posts
    11
    Rep Power
    0

    Default

    thanks rjuyal

  6. #6
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default welcome

    it was completely my pleasure ;)
    now close the thread as solved :)
    i am the future

Similar Threads

  1. Replies: 0
    Last Post: 03-29-2008, 12:44 PM
  2. Developing for Mac
    By jmds in forum NetBeans
    Replies: 0
    Last Post: 11-25-2007, 07:55 PM
  3. How to use Collection in Springs
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 09-26-2007, 08:36 PM
  4. Replies: 0
    Last Post: 09-26-2007, 08:35 PM
  5. easy way to study the java springs concept
    By kumar84 in forum New To Java
    Replies: 1
    Last Post: 07-17-2007, 03:53 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
  •