• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How we can write below code in EL or action (to make a scriptless page)

 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can we set an attribute of session scope after getting the parameter of request object (using getParameter) by using either EL or JSP standard action without using scripting.
For example:How we can write below code in EL or action (to make a scriptless page)

<%
String s=request.getParameter("item");
session.setAttribute("ss",s);
%>
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using EL and JSTL :
 
Tomaszz Lewandowski
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'd rather say:
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the correction Tom. I read the post too quickly and thought he was getting a request attribute
 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to you both Christophe Verre and Tomaszz Lewandowski
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic