it is easy to use them, you don't have to write methods in a JSP file
for example
<%
if ( "true".equals(request.getParameter("largetext" )))
out.println("<font size=7>LARGE TEXT</font>");
%>
one thing I did when I wrote a method was to pass in the request as a
parameter...
for example...
<%!
public boolean isLargeText(HttpServletRequest request)
{
return "true".equals(request.getParameter("largetext" ));
}
%>
then you can write this code below where you need it
<%
if ( isLargeText(request) )
out.println("<font size=7>LARGE TEXT</font>");
%>
hope this helps
-ReLipse
Xhirl Software Design
www.xhirl.com/software
wrote:
> I am reading something about JSP Implicit Objects, objectslike for
> example:
>
> request, response, pageContext, application, out, session
>
> But then my tekst book says:
>
> ---------------------------------------------------------------------------------
> Note that these implicit objects are only visible within the system
> generated
> _jspService() method. They are not visible within methods you define
> yourself in
> declarations.
> -------------------------------------------------------------------------------
>
> Ok, then this means I cannot use them? If so why mention them anyway?
> Can you use them somehow?
>
> Marcus Wentink