Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expression Language

 
navat venu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I installed the tomact5.5.17 version today and started practising
the EL.
But i am not getting the correct jsp results.

For example page#371,when i got jsp result as

First song is :${musicList[0]}

instead of

First song is :Zero 7

And also if i run any EL code , the problem is the same.

Is it that, i need to set something to get the correct answer?

please clarify !!
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paste the content of the web.xml that you are using.

Regards,
Shivani
 
navat venu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
--------------------------------------------------------------------------
<web-app>

<context-param>
<param-name>name</param-name>
<param-value>venuNavatthegreat</param-value>
</context-param>

<servlet>
<servlet-name>servlet1</servlet-name>
<servlet-class>aa</servlet-class>
</servlet>


<servlet-mapping>
<servlet-name>servlet1</servlet-name>
<url-pattern>/show</url-pattern>
</servlet-mapping>

</web-app>
-------------------------------------------------------------------------

do i need to add anything to web.xml to get EL work?
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using this and tell me if it works...



Rgds
 
navat venu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its not working even if I copied the above in web.xml
 
navat venu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry shivani,

actually ,its working fine..i forgot to bounce the apache after modifying the web.xml.


Thanks a lot.
 
Kishore Balla
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shivani Chandna:
Try using this and tell me if it works...



Rgds


Thanks Shivani... This worked great and solved my problem

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic