Re: Questions about JSP programming

2007-01-14 Thread Rashmi Rubdi
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: Unable to

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
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 1) I tested your jsp: include, both files returned the same size when tested with Firefox's page size extension tool. I got

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

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread Zack Grafton
hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec("top") in m

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread Zack Grafton
hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec("top") in m

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread hui zhang
Zack Grafton wrote: hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec("top") in my JSP page or Ser

Questions about Apache Portable Runtime on Tomcat 5.5.x

2007-01-14 Thread Allen Young
Hi all, I've used tomcat for quite a long time but not until last week did I notice the APR stuff. Since I don't quite understand a few things, I want to ask your folks. First, how can I use APR on a windows install version of tomcat 5.5.x. I've found several tutorials about setting APR, all of

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread Zack Grafton
hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec("top") in my JSP page or Servlet, Tomcat is stuck

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread Jeff Waugh
"hui zhang said" > > Zack Grafton wrote: > > hui zhang wrote: > >> Hi Everybody, > >> > >> Now I am trying to launch an external application, for example, "top" > >> ,in my web application, and killing it by PID after a while. But when > >> I execute Runtime.getRuntime.exec("top") in my JSP page

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread hui zhang
Zack Grafton wrote: hui zhang wrote: Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec("top") in my JSP page or Servlet, Tomcat is stuck in that page and

Re: Trailing slash added

2007-01-14 Thread Rashmi Rubdi
Instead of relative URLs, it's better to use context relative URLs. With context relative URLs if the page containing the context relative links is moved to a different folder the code won't have to change. Context relative URLs always begin with / and start from the root folder of your app, for

Re: Problem with Applet-to-Servlet Programs

2007-01-14 Thread Andre Prasetya
Have you map the AppletLogin to the servlet path at web.xml ? if you haven't dont forget in doing so ^^ On 1/15/07, Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote: Hi, I'm doing applet-to-servlet programs. I've put the applet in directory c:\jakarta-tomcat-4.1.31\webapps\ROOT\application\Log

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread Zack Grafton
hui zhang wrote: Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec("top") in my JSP page or Servlet, Tomcat is stuck in that page and do not display anythi

Runtime.getRuntime.exec() problem

2007-01-14 Thread hui zhang
Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec("top") in my JSP page or Servlet, Tomcat is stuck in that page and do not display anything because it can

Problem with Applet-to-Servlet Programs

2007-01-14 Thread Teh Noranis Mohd Aris
Hi, I'm doing applet-to-servlet programs. I've put the applet in directory c:\jakarta-tomcat-4.1.31\webapps\ROOT\application\LoginApplet. I've put the servlet in directory c:\jakarta-tomcat-4.1.31\webapps\application\WEB-INF\classes\AppletLogin. When I run it in the web browser using http://

Re: Trailing slash added

2007-01-14 Thread Len Popp
Note that if you allow the browser to refer to directories without the trailing slash, you will break the handling of relative URLs on those pages. When the user clicks on a link with a relative URL, the browser has to convert that to an absolute URL. If the browser doesn't know that the current p

Re: Trailing slash added

2007-01-14 Thread Rashmi Rubdi
I think you can customize it with URL Rewriting Filters. Google URLRewriteFilter to find pre-built packages, or you can write your own. -Rashmi - Original Message From: Tim Funk <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Sunday, January 14, 2007 12:26:39 PM Subject: Re: Trailing

Re: How to display chinese chars in JSP / encoding UTF-8 without <@page encoding> tag

2007-01-14 Thread John McPeek
Why are you using UTF8 in stead on UTF16. With UTF8 you have to escape all the characters, right? I was on a project for a Japanese site once and we used UTF16. It was a lot easier to work with. Eclipse will show it to you just like normal text(Chinese). All you have to do is set the encoding to

Re: How to display chinese chars in JSP / encoding UTF-8 without <@page encoding> tag

2007-01-14 Thread Markus Schönhaber
Caldarale, Charles R wrote: > > From: Pulkit Singhal [mailto:[EMAIL PROTECTED] > > Subject: Re: How to display chinese chars in JSP / encoding > > UTF-8 without <@page encoding> tag > > > > I think you can set the -DFileEncoding flag or something > > to be UTF-8 in the java options of the script yo

Re: Trailing slash added

2007-01-14 Thread Tim Funk
There is no way to customize this behavior other than overriding the default servlet with your own implementation. -Tim lightbulb432 wrote: I noticed that Tomcat adds a trailing slash automatically when it detects that the requested resource points to an existing directory. While I know that A

Re: How can I get the unparsed URI from inside a servlet

2007-01-14 Thread Tim Funk
What about HttpServletRequest.getRequestURI()? -Tim [EMAIL PROTECTED] wrote: Is it possible to get the unparsed URI from inside the service method of an HttpServlet? I am using tomcat 5.5.9. I notice that the HttpServletRequest parameter to this method is - implemented by org.apache.catalina.

RE: How to display chinese chars in JSP / encoding UTF-8 without <@page encoding> tag

2007-01-14 Thread Caldarale, Charles R
> From: Pulkit Singhal [mailto:[EMAIL PROTECTED] > Subject: Re: How to display chinese chars in JSP / encoding > UTF-8 without <@page encoding> tag > > I think you can set the -DFileEncoding flag or something > to be UTF-8 in the java options of the script you use to > start tomcat. It's -Dfile

Re: How to display chinese chars in JSP / encoding UTF-8 without <@page encoding> tag

2007-01-14 Thread Pulkit Singhal
I think you can set the -DFileEncoding flag or something to be UTF-8 in the java options of the script you use to start tomcat. On 1/11/07, PATTUS, Jean-Philippe <[EMAIL PROTECTED]> wrote: Hello the list, i'm trying to display chinese chars in my web application. I have managed to display thes

Re: yet another SSL question

2007-01-14 Thread Martin Gainty
LambdaProbe has all of the state information which I have been seeking for years To one and all please look at http://lambdaprobe.org and view Cluster, Status, System Information as well as a plethora of categories too numerous to list here..I am heartened by threads/ClassLoader metrics availabili

RE: yet another SSL question

2007-01-14 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: yet another SSL question > > Is it possible to have multiple different Login pages in one webapp? Yes; look at section 12.8 of the Servlet spec: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html Use different se

Re: Not a Tomcat question but could use your help! Netbeans 5.5: Changing the TabSet Header Color from blue to something else

2007-01-14 Thread Martin Gainty
1.. Choose Tools > Options. 2.. Click Fonts & Colors in the left pane of the Options window. 3.. In the right pane, click the Annotations tab. 4.. Select a Category. 5.. Select foreground and background colors from the drop-down list. To specify a color not contained in the list, c

Not a Tomcat question but could use your help! Netbeans 5.5: Changing the TabSet Header Color from blue to something else

2007-01-14 Thread llekann
Hi All! For the Visual Web Pack in Netbeans 5.5 : Please does anyone know how to change the TabSet header color from the default blueish to something else, preferrably gray. and the Table component and Table Column component headers too. Million thanx in advance! lekan -

Help loading XML config file via Init Servlet

2007-01-14 Thread James Dekker
Hello there, I am using the Apache Commons Digester to load an XML config file via a servlet with init params... I keep getting this error when I start Tomcat 5.5.9 and have deployed the war file via my build script: INFO: Deploying web application archive coffeebreak.war 2007-01-14 03:10