This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Compiled JSPs creating  deprecated methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Compiled JSPs creating  deprecated methods" Watch "Compiled JSPs creating  deprecated methods" New topic
Author

Compiled JSPs creating deprecated methods

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
So I'm working in VAJ 3.5.3 and within this, you can drill down to see your JSP pages compiled. The issue with this whole deal is that VAJ is generating deprecated code. Some of the methods in my compiled jsp pages are deprecated. Is there a setting in VAJ to help it create more up to date code? What can I do to alleviate this?
Here is what it is generating.

The code that is being flagged is bolded. Specifically, this is being flagged in the above code.
session.putValue("error", error);
Any ideas how to stop this or avoid this? I'd rather have VAJ create the proper code...
session.setAttribute("error", error);
Regards,
Dale DeMott
[ March 06, 2002: Message edited by: Dale DeMott ]

By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4442
    
    5

I believe there's a way to specify which specification level you want to support: 0.9, 1.0, or 1.1 and I'm pretty sure it's in one of the XML configuration files. Look in the Redbook for JSP and Servlet development with VAJ at http://www.redbooks.ibm.com
HTH,
Junilu
Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
Okay..thanks!
Is there any way you can point me a LITTLE closer to where this might be. Sifting through IBM's website is like sifting through the sand of Daytona Beach, looking for a diamond. Lots of great info. But sooooo much!!!
-Dale
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compiled JSPs creating deprecated methods
 
Similar Threads
Session handling in Jsp
deprecated session methods-need new???
Creating files
JSP and JSF interaction
Errors while adding IBM Java Examples 3.5.3