> <filter-mapping> > <filter-name>struts2</filter-name> > <url-pattern>/*</url-pattern> > <dispatcher>REQUEST</dispatcher> > <dispatcher>FORWARD</dispatcher> > <dispatcher>INCLUDE</dispatcher> > <dispatcher>ERROR</dispatcher> > </filter-mapping>
this result in an xml-error: The content of element type "filter-mapping" must match "(filter-name,(url-pattern|servlet-name))". > In my web.xml I have: > > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > </welcome-file-list> > > and in index.jsp I have: > > <% > String redirectURL = > "http://localhost:8080/myproject/MyAction.action"; > response.sendRedirect(redirectURL); > %> > > Seems like a hack to me, but gets the job done. Is there a more elegant > way? Mine is slightly more elegant: <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> and in index.html I have: <html> <head> <meta http-equiv="refresh" content="0; URL=public/index.action"> </head> <body> one moment please... <a href=public/index.action>Link</a> </body> </html> Is this an initialisation issue or why doesn't <welcome-file>/public/index.action</welcome-file> work? /Stephan -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]