Re: Questions about JSP programming

2007-01-15 Thread Xuekun Hu
Thanks Rashmi, Zack, and Pid Sorry it's my fault. <%@ include file="request.getParameter("f") %> should not be compiled successfully. I fisrt tested , it works, TOMCAT translated and generated the .java and .class file, then I just modified the same jsp file with <%@ ... %>, TOMCAT compiled it fai

Re: Questions about JSP programming

2007-01-15 Thread Pid
Firstly, all directives of the following form are executed at compile time: <%@ ... %> This means that URL request parameters are not available (yet) to the JSP. If the OP was using an include file directive containing the string 'request.getParameter("f")' it is unlikely that it ever worked

Re: Questions about JSP programming

2007-01-15 Thread Rashmi Rubdi
Zack, I don't think it's the include directive alone causing a memory error. I'm guessing that there might be a lot of processes in his application running on Tomcat, eventually causing an out of memory error or may be the system does not have minimum required memory to run Tomcat. With Tomc

Re: Questions about JSP programming

2007-01-15 Thread Zack Grafton
Xuekun Hu <[EMAIL PROTECTED]> To: Tomcat Users List 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 <[EMAIL PROTECTED]> wrote: I recommend SDN's JSP forum : http://forum.java.su

Re: Questions about JSP programming

2007-01-14 Thread Rashmi Rubdi
ROTECTED]> To: Tomcat Users List 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 <[EMAIL PROTECTED]> wrote: > I recommend SDN's JSP forum : http://forum.java.sun.com/forum.jspa?

Re: Questions about JSP programming

2007-01-14 Thread Zack Grafton
Xuekun Hu wrote: Zack, thanks for replying. Xuekun, The reason why you are probably getting a file size thats one byte larger than expected is that the JSP processor doesn't remove any whitespace after it includes the other pages content. For example, <%@ include page="request.getParameter("f

Re: Questions about JSP programming

2007-01-14 Thread Xuekun Hu
Hi, Rashmi, thanks for replying. On 1/15/07, Rashmi Rubdi <[EMAIL 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 tes

Re: Questions about JSP programming

2007-01-14 Thread Xuekun Hu
Zack, thanks for replying. Xuekun, The reason why you are probably getting a file size thats one byte larger than expected is that the JSP processor doesn't remove any whitespace after it includes the other pages content. For example, <%@ include page="request.getParameter("f") %> is going to

Re: Questions about JSP programming

2007-01-14 Thread Rashmi Rubdi
inal Message From: Xuekun Hu <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, January 15, 2007 1:23:21 AM Subject: Questions about JSP programming Hi, Sorry for the off-topic questions, since I didn't find a good forum to discuss JSP programming. :-). If you have any recom

Re: Questions about JSP programming

2007-01-14 Thread Zack Grafton
Xuekun Hu wrote: Hi, Sorry for the off-topic questions, since I didn't find a good forum to discuss JSP programming. :-). If you have any recommendations, I would be very appreciated. I have two questions. 1. I wrote a test.jsp to test dynamically return a static file from the request paramete

Questions about JSP programming

2007-01-14 Thread Xuekun Hu
Hi, Sorry for the off-topic questions, since I didn't find a good forum to discuss JSP programming. :-). If you have any recommendations, I would be very appreciated. I have two questions. 1. I wrote a test.jsp to test dynamically return a static file from the request parameter. --- test.js