In your action, instead of:

servlet.getResources(); // Deprecated

Use

this.getResources(request); // Not Deprecated

> -----Original Message-----
> From: Jason L. West, Sr. [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 04, 2004 12:25 PM
> To: Struts Users Mailing List
> Subject: Deprecated Method
> 
> 
> I am finishing up a series of WROX books that are focused on 
> the JSP/J2EE development with the last book of the series 
> focusing on developing Struts Applications.  Unfortunately 
> the series was published in early 2002 with focus on the 
> Struts version 1.0.
> 
> One of the methods the book talks about has been deprecated 
> with the release of Struts version 1.1.  What I would like to 
> know is new or better method of doing the following:
> 
> public void reset(ActionMapping mapping, HttpServletRequest request) {
>      ActionServlet servlet =  this.getServlet();
>      MessageResources messageResources = 
> servlet.getResources(); // Deprecated
> 
>      storyTitle = 
> messageResources.getMessage("javaedge.poststory.title.instructions");
>      storyIntro = 
> messageResources.getMessage("javaedge.poststory.intro.instructions");
>      storyBody  = 
> messageResources.getMessage("javaedge.poststory.body.instructions");
> }
> 
> Any insight would be helpful.
> 
> Thanks
> Jason L. West, Sr.
> Internet Application Specialist, Sr.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



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

Reply via email to