Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JSP & WebSphere 6.0

Reply
Thread Tools

JSP & WebSphere 6.0

 
 
oziris
Guest
Posts: n/a
 
      10-17-2006
Hi,

I read 2 things about "WebSphere compatible JSP code". I would like to
be sure that is true:

1. WebSphere can't perform evaluation within a taglib.
Ex:
Wrong:
<input type="hidden" name="foo" value="<%= request.getParameter("foo")
%>" />
Right:
<%
String fooParam = request.getParameter("foo");
%>
<input type="hidden" name="foo" value="<%= fooParam %>" />

2. The WebSphere JSP Compiler doesn't accept single-quote (double-quote
must be used).

Thanks a lot for helping me.

-o / France

 
Reply With Quote
 
 
 
 
Manish Pandit
Guest
Posts: n/a
 
      10-17-2006
I've never used Websphere, but I can safely say that it can perform
evaluation within a tag (not taglib as you mentioned), and it can work
with single quotes. The reason behind my confidence is the servlet and
JSP API compliance that Websphere has. If it works in Tomcat, unless
you're doing something internal to websphere, it has to work on IBM/BEA
or for that matter any certified app server.

<input type='hidden' name='foo'
value='<%=request.getParameter("foo")%>' /> will work - there is
scriptlet in the argument, and I've used single quotes. If it doesnt,
please do post a message, as I'd find it very alarming.

-cheers,
Manish

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JSP Properties File Load In / Websphere RigasMinho Java 8 03-01-2007 03:15 PM
[JSP] difference between jsp:forward and jsp:include alexjaquet@gmail.com Java 0 06-02-2006 01:21 PM
Need the path of Jsp that runs on websphere startup fantasticboogie Java 0 09-01-2004 10:20 PM
[JSP] Strings Constants from JSP using Struts tags Matthias Nietz Java 1 11-12-2003 04:32 PM
JSP page gives ArrayIndexOutOfBoundsException in websphere for z/os Sudhir Java 1 08-27-2003 06:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57