• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP and custom tag withVAJ 4.0

 
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I've created a tag library (tld), a tag handler, and a jsp page callig this lib
<%@ taglib uri="myFolder/mytag.tld" prefix="myTag" %>
I've done it a couple of time with BEA and Sybase App Server but never with IBM products.
I tried to test the Custom Tag within VAJ 4.0 using WTE.
When I call the jsp page, I got :
[ERROR]Message: "Directive: Invalid attribute, prefix"
My questions are :
1) Does the WTE environment allows JSP Custom tag tests
Thanks in advance
2) if yes, any clue for me ?
3) if not, does that mean I have to test it with A "real" websphere ?
Thanks in advance
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Had a idea when I posted the question.
It seems WTE for VAJ 4 is WAS 3.5, and that version only supports Jsp 1.0, and Custom Tags have been introduced in JSP 1.1.......
That why it can't work in the WTE.
Please let me know if you agree with me.

[This message has been edited by Bill Bailey (edited November 14, 2001).]
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been using jsp tag libraries with VAJ Professional 4 and WTE, and WTE supports them. The problem you may have is that your WTE is configured to support JSP 1.0, and has to be configured to support JSP 1.1.
Look at your {VA HOME}\ide\project_resources\IBM WebSphere Test Environment\hosts\default_host\default_app\servlets\default_app.webapp
you'll see something like this:
<servlet>
<name>jsp</name>
<description>JSP support servlet</description>
<!--
***
*** Replace the JSP compiler with the required specification level.
***
*** JSP 0.91 Compiler ***
<code>com.ibm.ivj.jsp.debugger.pagecompile.IBMPageCompileServlet</code>
*** JSP 1.0 Compiler ***
<code>com.ibm.ivj.jsp.runtime.JspDebugServlet</code>
*** JSP 1.1 Compiler ***
<code>com.ibm.ivj.jsp.jasper.runtime.JspDebugServlet</code>
-->
<code>com.ibm.ivj.jsp.runtime.JspDebugServlet</code>

you have to change your <code> text to support JSP 1.1, so the bold line would be like this
<code>com.ibm.ivj.jsp.jasper.runtime.JspDebugServlet</code>

To avoid loosing time with spelling mistakes I recommend you to look at http://developer.java.sun.com/developer/Books/cservletsjsp/ and follow Chapter 14 samples (it's free a downloadable pdf).
I hope this helps,
Horaci Macias
[This message has been edited by Horaci Macias (edited November 15, 2001).]
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Muchas gracias Horaci !!
It really helped me.
Now my jsps work fine with VAJ 4 WTE.
About the coreservlets book, I fully agree with you.
Martin Hall is a must-have book.
Thanks for the help, et viva espana (sorry I don't find the tilde on my keybord )
 
Horaci Macias
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome Bill.
I also found sample chapters of JSP books here in javaranch.
There are here:
JSP Tag Libraries
by Gal Shachor, Adam Chace, Magnus Rydin
http://www.manning.com/shachor/chapters.html
I haven't got time to see them, but I'm sure there's something to learn on them.
Regards,
Horaci Macias


[This message has been edited by Horaci Macias (edited November 15, 2001).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic