File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying output of functions

 
Nitish Mittal
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have included the JAR file in WEB-INF/lib folder but not able to display the content stored in wcount.
please help me with code
 
Kishore Tulsiani
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
instead of <%= "wcount" %> you should use <%=Integer.toString(wcount) %>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kishore Tulsiani wrote:instead of <%= "wcount" %> you should use <%=Integer.toString(wcount) %>

No. First of all, scriptlets shouldn't be used at all in modern JSPs.

Secondly, the conversion to string is completely unnecessary. <%= wcount %> would be sufficient.

But again, modern JSPs should be using the EL, not scriptlets.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic