Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

JSP & WebSphere 6.0

Thread view: 
oziris - 17 Oct 2006 08:18 GMT
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
Manish Pandit - 17 Oct 2006 10:25 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.