• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in jsp:param with EL

 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All


am having doubt, How to access param value using EL which is passing through
<jsp aram>

menu.jsp:

<jsp:include page="header.jspf" flush="true" >
<jsp aram name="title" value="Menu" />
</jsp:include>



header.jspf:


<table align="center" width="50%" >
<tr>

<td align="center" >
<h1>
<img border="0" src="../images/cid-banner.jpg" width="850" height="94">
</h1>
</td>

</tr>

<tr >
<td align="center" >
<h3>

${param.title}

</h3>

</td>
</tr>

</table>

am trying to access
<jsp aram name="title" value="Menu" />

param value by using

${param.title}


it doesnt work in my page, Please let me know is there any mistake in my page

Regards
kavitha
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your container (Tomcat?) may not be configured to compile JSPF files, so it just includes the page as if it was a text file. You'll have to tweak Tomcat's settings to do it. Probably in conf/web.xml, adding the following :


But why are you using a fragment anyway ? Renaming the file to JSP would be easier.

(and there's a checkbox "Disable smilies in this post" at the bottom of the page, to avoid your code to turn into smilies )
[ February 08, 2008: Message edited by: Christophe Verre ]
 
Amar Nath Verma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, Keep it as its working for me here
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"amar nv", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff
 
Fu Dong Jia
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic