• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Priyanshu Chauhan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 53
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Issue is, you are using plain html tag which doesn't understand global forward.

Please use struts tag as below,
 
Priyanshu Chauhan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
Sidhartha Ray
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Priyanshu
Try <html:link forward="search">Search</html:link> instead of <a href="search.do">Search</a>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic