aspose file tools*
The moose likes Struts and the fly likes welcome-file-list not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "welcome-file-list not working" Watch "welcome-file-list not working" New topic
Author

welcome-file-list not working

Che Frenz
Greenhorn

Joined: Dec 15, 2008
Posts: 14
Hi!

I'm using Struts 2 on bea weblogic 10. I can't seem to get the welcome-file to work with a .do action. (Note: we've mapped our struts actions to *.do). Welcome-file works if I have index.html specified. Below is a copy of my web.xml. Any thoughts are greatly appreciated!

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>facmgmt</display-name>

<!-- Context Parameters -->

<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>
/WEB-INF/tiles.xml,/home/tiles-home.xml,/facility/tiles-facility.xml
</param-value>
</context-param>

<context-param>
<param-name>contextConfiguration</param-name>
<param-value>applicationContext.xml</param-value>
</context-param>

<!-- Filters -->
...

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>

<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<welcome-file-list>
<welcome-file>home.do</welcome-file>
</welcome-file-list>

<listener>
<listener-class>org.apache.tiles.web.startup.TilesListener</listener-class>
</listener>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<login-config>
<auth-method>CLIENT-CERT</auth-method>
</login-config>

</web-app>

Thanks!
Che
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It usually pays to SearchFirst.

The easiest way is to redirect from an index.jsp or similar, like this
http://www.coderanch.com/t/48645/Struts/Use-welcome-file-list-run

Other solutions include:

http://www.theserverside.com/discussions/thread.tss?thread_id=30190#148549
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: welcome-file-list not working
 
Similar Threads
web.xml problem in struts2
Struts2 dojo not working on RAD7 WS6.1
Spring 3 + Spring Security 3 + Struts2 + Hibernate 3
Not being able to locate TLD file?
Velocity + Struts2 + Sitemesh + Spring +Hibernate Integration How to configur web.xml?