aspose file tools*
The moose likes Struts and the fly likes struts 1.3 tiles not working by using  <global-forwards> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 1.3 tiles not working by using  <global-forwards> " Watch "struts 1.3 tiles not working by using  <global-forwards> " New topic
Author

struts 1.3 tiles not working by using <global-forwards>

Priyanshu Chauhan
Greenhorn

Joined: Jul 24, 2012
Posts: 9

I want to use tiles in my search.jsp page.
there is a link to search.jsp in the index.jsp that is not working-->






When i click the link i get 404 error
I have used the global-forward in struts-config.xml





next the action mapping




tiles-defs.xml





The search page works fine with tiles if I don't use global forward and change the link the hyperlink in index.jsp to-->




i.e. I skipped the global-forward part
Ravishanker kumar
Ranch Hand

Joined: Jul 20, 2006
Posts: 53
Issue is, you are using plain html tag which doesn't understand global forward.

Please use struts tag as below,
Priyanshu Chauhan
Greenhorn

Joined: Jul 24, 2012
Posts: 9
thank you
Sidhartha Ray
Greenhorn

Joined: Jul 04, 2012
Posts: 29
Hi Priyanshu
Try <html:link forward="search">Search</html:link> instead of <a href="search.do">Search</a>
 
 
subject: struts 1.3 tiles not working by using <global-forwards>