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

looking for quick reference to jsp taglibs

 
Tim Resh
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Paul Clapham
Sheriff
Pie
Posts: 20203
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • 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: 42
  • 0
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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: 42
  • 0
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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: 42
  • 0
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I'm confused again. The html tags are Struts tags.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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: 42
  • 0
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic