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

JSTL

 
Veeru Singh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any JSTL tag which allows to create a new vairable of both Object and permitive data type.. for example

we can do this with scripting..

<% Integer i=new Integer(45) %>
<% int j=89; %>

but do we have a tag to do the same thing.. can we use <c:set>

please help..
 
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
Why would you need a numeric value to be a primitive type?
 
Mukesh Mittal
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can either set the value of a scoped variable using <c:set value="value" [scope]/> or set the property of a target object.
 
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
My point is: scoped variables can only be of object types, not primitives. But from the point of view of the JSTL, EL and the rest of the page, who cares?
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic