Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!