• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can we pass dynamic paramer in declarative tags?

 
sureshreddy govindu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<%=MyClass.myMethod(<%request.getParamet('test')%>); is it possible?

when i am trying this , rised jsp exception.
1)how can we pass dynamic paramer in declarative tags?

Thanks
 
Ashwini Kashyap
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Whats the use of declaring it in this case?
Collect the data from request object, store it in a variable and use it in scriplet.

Thanks,
Ashwini Kashyap | www.infocepts.com
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Java scriptlets in a JSP is an obsolete and poor practice. This is 2013, you should be using the EL and the JSTL. Please read this JspFaq entry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic