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

Please Help!!!!!

 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have few doubts .
1.
On page 207 of SCWCD Manning Guide
the example does not work as expected .
The code is as follows
<%@ page info="A sample use of ' , \" , \\ , <\% , and %\> characters " %>
<html>
<body>
<%=getServletInfo()%>
</body>
</html>
It gives the error " ; expected " at the page directive line.
2.On page 178 which specifies that there should not be any space between equals sign and value in directives .
Does this mean
<%@ page import = "java.util.*" %> will not work coz of space between import and = sign.
But it works???
3. I have one doubt regarding flush attribute in include action . I have two files source.jsp and target.jsp
source.jsp contains
<%@ page buffer="8kb" %>
Before calling target.jsp
<jsp:include page="target.jsp" flush="true" />
After calling target.jsp
-------------------------------------
target.jsp contains this text

I am in target .
I got the following output--
Before calling target.jsp
I am in target
After calling target.jsp
but I was execting that bcoz I have set flush to true so it will not print the line
"Before calling target.jsp ."
Thanks in advance for any explanation /suggestion.
Buggi .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic