This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes looking for quick reference to jsp taglibs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "looking for quick reference to jsp taglibs" Watch "looking for quick reference to jsp taglibs" New topic
Author

looking for quick reference to jsp taglibs

Tim Resh
Greenhorn

Joined: Aug 09, 2006
Posts: 19
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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Not sure that you are after. How to write taglibs? How to use them? The JSTL?

Please take the time to clarify your questions.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

"jstl quick reference" is a very productive set of Google keywords; had you considered trying that?
Tim Resh
Greenhorn

Joined: Aug 09, 2006
Posts: 19
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Is it the proprietary Struts tags or the standard JSTL that you are interested in? They are separate and distinct.
Tim Resh
Greenhorn

Joined: Aug 09, 2006
Posts: 19
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Then you want the JSTL Specification. It should be linked to somewhere in the JspFaq.
Tim Resh
Greenhorn

Joined: Aug 09, 2006
Posts: 19
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Now I'm confused again. The html tags are Struts tags.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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
Greenhorn

Joined: Aug 09, 2006
Posts: 19
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

There is nothing to check. <%= %> is a scriptlet expression and most certainly not the EL.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: looking for quick reference to jsp taglibs
 
Similar Threads
JSTL version causing exceptions?
XML Quick Reference
David's Book - Content
I have passed SCWCD
Tagx file implementation