• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

cleared again - 73 % again

 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cleared the second enthuware mock -

some experience form it

- had lots of questions on "session" attribute of page directive
default value is true, and this implicit ovject is not available to
a jsp if it says session="false" in the declaration

- any directive (except the import) can appear only once in a jsp

- only these atrribute are valid in a tag file =
attribute, tag, variable and include, taglib
( last three arent mentioned in hfsj )

- the URL content can be supplied to a c:import tag in 2 ways
1. use "url" attribute and give a String url
2. use the "varReader" and give some java.io.Reader kinda object
This was a specy ;-) question
Remember that the string value of input url can be assessed
even out side the tag bode, this can be done using the optional
"var" attribute

- while handling businees exception programatically using
RequestDispatcher in a servlet,
follwing attributes are set by the container ( the was some attributes
are set when you say forward() on a reqtDispatcer obtained using the
getRequestDispatecer( ) of the request or servlet context )

javax.servlet.error
.exception
.message
.exception_type
again...this was a specy question, and was quite obvious to guess the
options

- couple of questions on the retirn values of doStartTag( ) doAfterBody( )
and doEndBod() of the TagSupport and the BodyTag interfaces

hope this helps to all who are preparing

thanks
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, It is helping ...

Many thanks .
 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


any directive (except the import) can appear only once in a jsp



Hi,

Thank you for the Notes.

What about <%@ include ...%>
Can't they appear more than once in a JSP ?

Thanks
Kathir
 
Vishal Chugh
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Renu,

see page , taglib , include directives can appear any number of times in JSP

now from that which you quoted he meant:

<%@ page import...%> -- Can appear any number of times and anywhere in the jsp

<%@ page session...%>-- Can appear only one time at the top of the page, if left, default is true or in other words the session object is available to the jsp page

<%@ page contentType...%> -- Can appear only one time at the top of the page

<%@ page isELIgnored...%> -- Can appear only one time and at the top of the page, by default it is false

[SCWCD Hints link has this info]
 
Kathiresan Chinna
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK

Thank you
Kathir
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic