aspose file tools*
The moose likes JSP and the fly likes how can we pass  dynamic paramer in declarative tags? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how can we pass  dynamic paramer in declarative tags?" Watch "how can we pass  dynamic paramer in declarative tags?" New topic
Author

how can we pass dynamic paramer in declarative tags?

sureshreddy govindu
Greenhorn

Joined: Jun 08, 2011
Posts: 29

<%=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

Joined: Aug 30, 2012
Posts: 90
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

Joined: Jan 10, 2002
Posts: 61658
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how can we pass dynamic paramer in declarative tags?