Guys

<% String currentPage = pageContext.getServletConfig().getServletName();//
Used for generic pages%>

This is in my JSP pages and for some reason is giving strange results.

I am trying to get the name of the current view page in an MVC model. I use
both redirects and forwards for the model and neither seems to make a
difference to the end result.

Majority of the time I get the correct reply except sometimes I get things
like '/team/images/cross.gif' which is an image in our system and not the
current page!

Anyone got any ideas?

Dan


Reply via email to