• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

looking for quick reference to jsp taglibs

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am looking for a quick reference sheet to taglibs with examples. just the basic html, c, etc... taglibs. Does anybody know of a good reference page?

Thanks
Mark
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure that you are after. How to write taglibs? How to use them? The JSTL?

Please take the time to clarify your questions.
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's the tag lib xsd: http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd

if that's what you are after.
 
Sheriff
Posts: 28408
101
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"jstl quick reference" is a very productive set of Google keywords; had you considered trying that?
 
Tim Resh
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am looking for examples using the taglibs like the html textarea etc.... I have the xsd for 2.0, thanks. I have the links for struts 1.x,2 etc.... I just need some good examples of the usage in JSP. I use intellij for my IDE, which is of great help but I still need some examples. I have also looked at the tomcat examples but they are very simple and I am sure that the JSTL can do more.

Thanks
Again
Mark
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it the proprietary Struts tags or the standard JSTL that you are interested in? They are separate and distinct.
 
Tim Resh
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The standard JSTL. The package I am working on has it's own custom rolled framework similar to struts, but very hard to use. My ultimate goal is to replace with struts but for now I want to start using JSTL for new enhancements. Everything in the code is straight JSP with inline java. It all works but modification takes lots of effort.

Thanks
Mark
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then you want the JSTL Specification. It should be linked to somewhere in the JspFaq.
 
Tim Resh
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is an example of where I am having problems and why I am looking for some good examples.



my onclick is not using the java variable but actually sending the info that is in between the single quotes as is.

thanks
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now I'm confused again. The html tags are Struts tags.
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Resh wrote:my onclick is not using the java variable but actually sending the info that is in between the single quotes as is.


That is because you are still using Java scriptlets, which have some severe limitations. You should be using there EL -- Java scriptlets have been discredited for almost 10 years now.

The limitation you are bumping your head on is that when using a scriptlet expression in a tag attribute, it must be the entire attribute value. You can't embed a scriptlet expression within the value as you have done. The EL has no such limitations.

 
Tim Resh
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get it, but I thought I was using EL. I will check the jars and my taglib uri to hopefully see where I went wrong.

thanks
Mark
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is nothing to check. <%= %> is a scriptlet expression and most certainly not the EL.
 
reply
    Bookmark Topic Watch Topic
  • New Topic