File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes why Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "why" Watch "why" New topic
Author

why

Niu Xiuyuan
Ranch Hand

Joined: Jun 08, 2001
Posts: 68
<jsp eclaration>
LinkedList contents = null;
Message msg = null;
</jsp eclaration>
<html>
<body>
<jsp:scriptlet>

if ( !session.isNew() ) {

contents = ( LinkedList )session.getAttribute( "gb.contents" );

if ( contents != null ) {

for ( int i = 0; i < contents.size(); i++ ) {

msg = ( Message ) contents.get( i );

</jsp:scriptlet>

above code can be run in resin2.02,but i use deploy the web component in j2ee application server,the code can't not be explained and output as origin..why?
i can't use xml format to write jsp file?


Sun Certified Java Programmer<br />Sun Certified Web Component Developer
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Read the Specs a little closer on using the xml format. You need a root element


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
ersin eser
Ranch Hand

Joined: Feb 22, 2001
Posts: 1072
Post your codes in between [code] tags or check disable smiles in this post option below the smilies.
 
 
subject: why
 
Threads others viewed
scripting-invalid tag
body-content
Two questions on " JSP SYNTAX 1.2 " issued by SUN
Jsp Document vs Jsp Page - clarification
jsp:text question
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com