• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Search engine friendly URLs in struts 2

 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm trying to create a CMS in struts 2 and I'm stuck at something. I want to create search engine friendly URLs for my articles like we have here at ranch. So for that I want to map my actions to a path such as /article/* or /article.action/* so that it could serve requests such as /article/MyArticle or /article.action/MyArticle. Is it possible in struts 2. I searched a lot over the internet but couldn't find anything.

I would be thankful for any help ...
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a REST plugin for Struts 2 (http://struts.apache.org/2.x/docs/rest-plugin.html)
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,


with rest plug in, But use or make Url like your page contain data. Give appropriate meaning full URL for you application which makes better Search engine friendly URLs in any application..

 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joachim for the help. That's something new to me but I'm ready to get my hands wet with it.

Nishan I think I'm going to let the user enter a url for the article himself/herself like in Joomla. I'll try to make it automatic like here at ranch or in wordpress like you said...
 
Ally Cavs
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So whats the soluion. To us ethe rest plugin?

DO i really have to?
there has to be another way?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic