request.setAttribute() in Servlet 2.0

Hi all,

I'm stuck using Jserv w/ Servlet 2.0 and I want to put something in the request for a jsp:include to use. I notice ServletRequest has getAttribute(), but no setAttribute like 2.1+. If there's a getAttribute(), but no setAttribute(), how are you supposed to put an attribute into the request?

I know there are other ways to pass my value to the include, so please don't tell me about those. Just currious as to know if anyone has an answer to my question.

Thanks,

Derek

[517 byte] By [beattris] at [2007-9-26 1:13:27]
# 1
ServletRequest allows you to set an attribute through the method:request.setAttribute(Name, Value);I believe, I have done it anyway.
wmacey at 2007-6-29 0:10:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
servlet 2.0 didnt support setAttribute1) u either use latest version of servlet 2) use the method setValue()
cs_wwc at 2007-6-29 0:10:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
sorry it should be putValue() instead of setValue()
cs_wwc at 2007-6-29 0:10:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Since servlet 2.2 is available, why go for 2.0 ?Anyway you can use getValue(), putValue() but they are depricated in 2.2 specs.....
shubhrajit_c at 2007-6-29 0:10:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...

Enterprise & Remote Computing Hot Topic