How to set an object in attribute using tags

Hello.

I know you can do this <% request.setAttribute("someName", Object); %>

But i am wondering if there is a jsp , jstl tag which can do the same thing? Also where I can give the scope.

I would like to do something like this <jsp:someTag name="someName" value=${variable} scope="request" />

Thanks in advance.

[348 byte] By [asgshea] at [2007-11-27 10:13:35]
# 1

I think you can use

<c:set var="articleList" value="${advertises}" scope="session" />

But this doesnt work. Any ideas?

asgshea at 2007-7-28 15:27:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

One thing. I ment to say

<% session.setAttribute("someName", Object); %>

And not request.setAttribute(...)

asgshea at 2007-7-28 15:27:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...