Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why

 
Niu Xiuyuan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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?
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the Specs a little closer on using the xml format. You need a root element
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your codes in between [code] tags or check disable smiles in this post option below the smilies.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic