Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Questions about JSP programming

Questions about JSP programming

2007-01-15       - By Zack Grafton

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Rashmi Rubdi wrote:
> I replied about the same time Zack replied, didn't know he was taking care of
this.
>
> From you recent reply, by compilation do you mean JSPC pre-compilation? Or on
the fly compile?
>
> Because I do get this error with on the fly compile (didn't try JSPC):
> org.apache.jasper.JasperException Source code of org.apache.jasper.JasperException: Unable to load class for JSP
> org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext(JspCompilationContext.java:598)
>
> java.lang.ClassNotFoundException Source code of java.lang.ClassNotFoundException: org.apache.jsp.p.test2.test2_jsp
>  java.net.URLClassLoader Source code of java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>
> -Rashmi
>
> -- -- Original Message ----
> From: Xuekun Hu <xuekun.hu@(protected)>
> To: Tomcat Users List <users@(protected)>
> Sent: Monday, January 15, 2007 2:28:00 AM
> Subject: Re: Questions about JSP programming
>
>
> Hi, Rashmi, thanks for replying.
>
> On 1/15/07, Rashmi Rubdi <dev_subscriptions@(protected)> wrote:
>  
>> I recommend SDN's JSP forum : http://forum.java.sun.com/forum.jspa?forumID=45
>>
>> And for JSP Tag Libraries this mailing list : http://jakarta.apache.org
/taglibs/#MailingLists
>>
>>    
> Great. Thanks again. :-)
>
>  
>> 1) I tested your jsp: include, both files returned the same size when tested
with Firefox's page size extension tool. I got 19KBs in both cases.
>>    But if you just look at the size of test.jsp *before* it translates and
processes the request, it's size is 0.1 KB because of the code it contains.
>>
>>    
> I fixed it in another reply.
>
>  
>> 2) This syntax <%@ include file="request.getParameter("f")" %> , is not
correct. The correct syntax only allows a URL in the file attribute as shown
here:
>> http://java.sun.com/products/jsp/syntax/2.0/syntaxref209.html#1003408  ,
since the include is a directive and not a JSP action.
>>
>>    
> Yes, I know it's not very syntax correct. however, there is no error
> in compilation. So I wonder maybe there is a deeper reason that it
> doesn't work.
>
> Thx, Xuekun
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
>
>  
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
__ ____
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> http://answers.yahoo.com/dir/?link=list&sid=396546091
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
>  
Rashmi,

I'm curious as to why his second approach causes the memory error that
he gets, would you have any insight as to why it's happening?  I've
checked out the docs and they don't indicate anything about the way the
include directive uses memory.  I'm thinking we might actually have a
bug to report.

Zack

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.