On 12/7/05, Swapnil Patil <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have wizrad steps UI.
> In my wizard I hadn't used any framwork or model.
> So by right clicking on any UI page i can know the source jsp page.
>
> Now I have converted whole wizard into struts.
> But after using Struts, by rigth clicking i know only the action name like
> DisplayStep2.do .Then using this action name i need to find its mapping in
> xml file and then need to find jsp page for forward "success".
> This is very lengthy method to know the jsp source page for any UI page .
> and it results in delay while bug fixing. (Tipically its very frustating for
> small-simple bug like javascript errors)
>
> Is there any other way to know the JSP source page from UI page ?

In my experience, given that action is defined in struts-config.xml as
"/Home", JSP page is stored in directory "pages" as "home.jsp" and
context is defined as "myapp", Tomcat shows the following behavior:

  request.getRequestURL() ==> http://myserver:8080/myapp/Home.do
  request.getRequestURI() ==> /myapp/pages/home.jsp

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to