Hi,
I had done the spring + gwt intergration. But how can i get the URL
from HttpRequest ?
Let's say my URL show 
http://localhost:8080/GwtApp/customer.htm?id=ABC123#eng-home
how can i get the id from url ?
I'd like to get the request parameter because of prevent the user
manually change the URL and press enter. example http:.....#eng-
unknown
so that i can redirect back to http:.....#eng-home.

public abstract class GwtRPCController extends RemoteServiceServlet
implements Controller,
ServletContextAware
{
        private ServletContext servletContext;
        private HttpServletRequest request;

        public ServletContext getServletContext() {
                return servletContext;
        }

        public void setServletContext(ServletContext servletContext) {
                this.servletContext = servletContext;
        }

        public ModelAndView handleRequest(HttpServletRequest request_temp,
                        HttpServletResponse response) throws Exception
        {
                //System.out.println(request_temp.getParameter("id"));     
return
null

                this.request = request_temp;
                super.doPost(request, response);

                return null;
        }


        public HttpServletRequest getRequest() {
                return request;
        }

        public void setRequest(HttpServletRequest request) {
                this.request = request;
        }
}

gwt.xml
<servlet path="/browse.htm"
class="com.myapp.web.server.BrowserRefreshHandler" />


controller-servlet.xml
<bean id="refreshController"
class="com.myapp.web.server.BrowserRefreshHandler" />


public class BrowserRefreshHandler extends GwtRPCController implements
BrowserRefreshHelper    {

        public String getRpcRequestParameter() {
                String var= getRequest.getParameter("id); // return null
                return var;
        }


}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to