File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Compiled JSPs creating  deprecated methods" Watch "Compiled JSPs creating  deprecated methods" New topic

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);
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

Joined: Feb 26, 2001
Posts: 6529

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
Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
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!!!
I agree. Here's the link:
subject: Compiled JSPs creating deprecated methods
It's not a secret anymore!