Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JSP and custom tag withVAJ 4.0

 
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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).]
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic