JSP page name in TagLibraryValidator

V

vince

Hi,

I'm using a TagLibraryValidator class to perform translation-time
validation in some JSP pages. In the validate method, I would need to
know the name of the JSP page being translated. How can I do that ?

Thanks !
Vincent
 
M

Manavendra Gupta

Is there any reason why you cannot use getRequestURI() or getServletPath()
to extract the name of the page?

Manav
 
V

vince

Manavendra Gupta said:
Is there any reason why you cannot use getRequestURI() or getServletPath()
to extract the name of the page?

Yes, there is a reason why I cannot use these methods : in the
validation, we are at translation time, not at execution time. So,
there is no HttpRequest available !


Every suggest is appreciated !
Vincent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top