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 / December 2007

Tip: Looking for answers? Try searching our database.

jsp tag

Thread view: 
Alain - 31 Dec 2007 07:49 GMT
Is there a reason why  a jsp tag in a xml format doesn't work with the
implicit out object?

<jsp:scriptlet>

           out.println("<p><b>text</b></p>");

       </jsp:scriptlet>

I get following error :  unterminated <jsp:scriptlet> tag

When i use
<%
   out.println("<p><b>text</b></p>");
%>
it works.

thx,
Manish Pandit - 31 Dec 2007 08:31 GMT
> Is there a reason why  a jsp tag in a xml format doesn't work with the
> implicit out object?
[quoted text clipped - 14 lines]
>
> thx,

Are you sure there is no typo in closing tag?

-cheers,
Manish
Owen Jacobson - 31 Dec 2007 16:53 GMT
> Is there a reason why  a jsp tag in a xml format doesn't work with the
> implicit out object?
[quoted text clipped - 14 lines]
>
> thx,

The content model of a <jsp:scriptlet> tag does not prevent <p> from
being interpreted as a tag.  Try placing the script within a CDATA
section:

<jsp:scriptlet><![CDATA[
 out.println("<p><b>text</b></p>");
]]></jsp:scriptlet>


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.