File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Request object in convertor class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Request object in convertor class" Watch "Request object in convertor class" New topic

Request object in convertor class

Anu Bagga

Joined: Jun 12, 2008
Posts: 3
Hi again

Please help me to get a request object in my convertor class as i need to make some validations based on the jsps flags.

sunil gupta

Joined: May 07, 2008
Posts: 21
you have to use

import org.apache.struts2.interceptor.ServletRequestAware;
private HttpServletRequest request;
public void setServletRequest(HttpServletRequest httpServletRequest) {
this.request = httpServletRequest;
I agree. Here's the link:
subject: Request object in convertor class
It's not a secret anymore!