How to map home url (/) to Struts 2 REST Action

I am developing a web application using Struts 2 and REST plugin. I already developed all the basic functionality of the application in REST style:,,, etc. Now I have to make the home page and get everything together. My question is: Is there any way to map the home (base) URL of the application to any Action class in REST style. I mean for example to map to Home action class, insted of to map to the Home action class? Thank you in advance. Best regards, Rashid

-------------Problems Reply------------

Set the welcome file in web.xml

<web-app /*stuff*/ >

Category:url Views:0 Time:2011-08-26

Related post

  • setting url parameter in an action method in struts 2010-07-06

    I want to add a URL parameter before forwarding to another action from an action method. Although HttpServletRequest has a getParameter() method, it has no setParameter() method. I know setAttribute() is there but I need the it to be part of the URL

  • Dynamic URLs on Struts 2 2010-10-22

    I'm creating an application using Struts2 and I want to have friendly URLs. Si, i set the following params in struts.xml: <constant name="struts.action.extension" value=""/> <constant name="struts.enable.SlashesInActionNames" value="true"/

  • How .do extension is appended in the URL in struts? 2012-04-29

    I am new to struts and as far as i know that .do extension causes the tomcat to call the action servlet and action servlet has resource process object that invokes a particular action class But lets suppose we have a jsp page first.jsp <%@ taglib

  • How to convert map to url query string? 2010-05-11

    Do you know of any utility class/library, that can convert Map into URL-friendly query string? Example: I have a map: - "param1"=12, - "param2"="cat" I want to get: param1=12&param2=cat. PS. I know I can easily write it myself, I am just surprise

  • Restricting access to URLs in Struts 2 2010-07-14

    Is it possible to restrict access to certain URLs in Struts 2? I already have it so you can't access jsp's directly, but you can access them indirectly. For example if I have a jsp "blah.jsp" I can access it by typing "/blah" and if I don't have an A

  • Spring MVC: Mapping Multiple URLs to Same Controller 2010-10-10

    I have like 20+ forms which are linked from the same page. Some forms share the same controller, while others use their own. For example, form A, B, and C use DefaultController, while form D uses ControllerD. What I would like to achieve is to map th

  • Why cant map the url to my request handler 2011-03-27

    ('/\d+\?fmt=json',JsonHandler) class JsonHandler(webapp.RequestHandler): def get(self): self.response.out.write("hello") Hey, I am using google app engine python and tring to map the url to my request handler. The url is digits followed by ?fmt=json,

  • Can I have SEO friendly urls in Struts? 2011-04-23

    I want to have SEO friendly urls in my application, which will be built in java/j2ee using Struts (1/2). I have some classifications as follows county/countryname county/state/statename county/state/locality/localitname I guess above URLs will be seo

  • Need help understanding Google Maps API URL? 2011-05-30

    i am kind of new to API thing, and i need help understanding on what exactly is happening with the below Code. $address = 'Bhatkal, Karnataka, India'; $requestUrl = ''.urlen

  • How can I map a url-pattern ending .jsp to a servlet? 2011-09-02

    I'd like a map a URL that used to point to a JSP directly onto a servlet, but my efforts so far - mapping the following url pattern to my servlet... <url-pattern>/folder/myoldjsp.jsp</url-pattern> have failed, causing a JSP processing err

  • How to map an URL having querystring parameters in urlmapping.groovy? 2011-09-08

    I am new to Grails/Groovy. Please bear with me if this is a silly question. I am trying to map an url having querystring parameters in urlmapping.groovy, something like, "/rest/employees?empno=123&dept=delivery"(controller:"employees", action="em

  • Struts 2 - RedirectAction to update Url to the redirected action 2011-11-11

    I am trying to redirect the action after a POST to the Dologin action to one of two actions. I would the url to reflect the action that i am redirecting to. However, the URL still remains with the action I posted to and not the redirected action. Bel

  • Can a struts 1 action mapping call struts 2 action 2012-01-21

    My existing application is built using struts 1 framework and I m adding new business components into it using struts 2 framework . Enabling both in single application is successful but don't have any clue to call struts 2 action from within strut 1.

  • How to send parametrs to the url in struts.xml 2012-02-18

    Hi any body know how to send parametrs to the url in struts.xml mycode is <action name="deleteDocDetails" class="" method="deleteSingleDoctor"> <result name="success" type="redirect">salesManDo

  • Case insensitive URLs with Struts and Convention plugin 2012-02-20

    How can we have case insensitive URLs with Struts and Convention plugin? Request to should return same response as --------------Solutions------------- Maybe you should consider URL rewriting

  • How can you get the original REQUEST_URI from within a Struts 2 Action reached via an apache ErrorDocument redirection? 2009-07-30

    How can you access the REQUEST_URI from within a Struts 2 Action? In perl/php/ruby it is readily available via ENV["REQUEST_URI"] and the like. In java it seems that the PageContext.getErrorData().getRequestURI() is what I'm looking for, but sadly, t

  • Recieving 'null' values from a jsp page into Struts 2 Action 2011-04-18

    I have a jsp page and struts 2 Action class . When I submit the form in the jsp , I am getting null values into the action. The JSP code looks like : <s:form id="user" name="user" action="initUserAdmin"> <s:textfield name="userName" cssClass

  • Calling struts 2 action from filter class 2011-08-20

    I added a filter in my struts 2 application. I am using this filter to check cookie values. If appropriate cookie is found then i want to redirect user to home page rather than normal login page. So for displaying home page I want to call struts 2 ac

  • Struts 2 action class not working 2012-02-09

    I am using struts2 for developing a web application. I have include the required jars for struts2 but when it is going to call the struts action class it is throwing 404 error. There is no error on console and browser does not showing .action extensi

Copyright (C), All Rights Reserved.

processed in 0.147 (s). 11 q(s)