I can no longer start TC from W2k Start Menu

2003-07-05 Thread ThePrahs
Hi All,

I can no longer start TC from W2k from the 

Start >> Program >> Apache Tomcat 4.1 >> Start Tomcat 

using the parameters E:\j2sdk1.4.1_01\bin\java.exe -jar -Duser.dir="E:\Tomcat 
4.1" "E:\Tomcat 4.1\bin\bootstrap.jar" start


Tomcat start by opening a commandline window as usual, but this window 
vanishes after displaying the ff. on the screen :

04.07.2003 17:12:57 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
04.07.2003 17:12:57 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
04.07.2003 17:12:58 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
04.07.2003 17:12:59 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
04.07.2003 17:12:59 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18-LE-jdk14

I am using struts too.

What could be the root course. I have looked into the logs folder, but I can 
find any log info. to show me what is missing.

Tomcat starts with no problem when I do start it in my ide.

Any help will be much appreciated.

Thanks.

Bob.



Re: Resolving scriptlets when using a client side

2003-07-05 Thread Bill Barker
I'd probably go with a Filter (mapped to '*.js') to do this.  I'd rename the
physical something.js files to something.jsp, and the Filter would do
something like:

  ServletContext context = null;
  public void init(FilterConfig conf) {
 context = conf.getServletContext();
  }
  public void doFilter(ServletRequest req, ServletResponse res, FilterChain
chain)
   throws IOException, ServletException {
 if( req instanceof HttpServletRequest ) {
 HttpServletRequest hReq = (HttpServletRequest)req;
 String path = hReq.getPathInfo();
 URL file = context.getResource(path);
 if(file == null) { // not a physical .js file
String newPath = path + "p"; // Yes, I know it's hacky
RequestDispatcher rd = context.getRequestDispatcher(newPath);
rd.forward(req, res);
return;
 }
}
chain.doFilter(req, res);
  }
"Adrian Beech" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> G'day folks,
>
> Is it possible to get Tomcat to process a include file and resolve
embedded
> scriptlets if the file is referenced from a client side  tag?
> In the two .js files I'm trying to work with there are several scriptlets
> that need to be resolved by Tomcat prior to sending the content along to
the
> browser.
>
> I can use <%@ include file=... %> server side which works just dandy,
> however the resulting content is easily visible to the user if they happen
> to view the source of the currently displayed page.  My preference is to
use
>