This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
Using jsp:param and expression scripting element
Adrian Kan
Greenhorn
Joined: Jan 14, 2002
Posts: 4
posted
Feb 18, 2009 07:01:55
0
Hi,
I am trying to troubleshoot a problem with my
JSP
This works fine:
Param abc -> <%= request.getParameter("abc")%>
While this isn't and returns an error
<jsp:include page="./header.jsp"> <jsp:param name="abc" value="<%= request.getParameter("abc")%>" /> </jsp:include>
Error Returned:
Attribute value request.getParameter("abc") is quoted with " which must be escaped when used within the value
Making <%= request.getParameter(\"abc\")%> works. as normal.
Any advice?
Running
Tomcat
6.0.18
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56215
13
I like...
posted
Feb 18, 2009 09:40:07
0
Adrian Kan wrote:
Any advice?
Yes. Pull yourself kicking and screaming out of 2002 and stop using scriptlets in your JSP pages.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: Using jsp:param and expression scripting element
Similar Threads
fragment was not found error
jsp:param usage
jsp:param usage
jsp:include & jsp:param
how to get object of this below chart and write in to pdf here strXMl is string of xml
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter