Re: CSS not being used when a Servlet is involved

2006-11-23 Thread Robbert
es/Index.jsp). At least I now get images and everything is being processed correctly. There's another problem, but I'll get to that in another thread. Thanks for your outstanding help! I owe you a beer. ;) Regards, Robbert -- View this message in context: http://www.nabble.com/CSS-not-being-us

Re: CSS not being used when a Servlet is involved

2006-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robbert wrote: > Christopher Schultz-2 wrote: >> Whether or not you use struts, I highly recommend that you avoid tricks >> like calling a servlet from a JSP in order to execute your business >> logic. If you have a waterfall-style logical flo

Re: CSS not being used when a Servlet is involved

2006-11-15 Thread Robbert
t 100% "pull-based" ;) > > -chris > > It seemed like a good way of doing things at the time, since the Servlet's output is not needed for the page itself. :p But I am doing more things than necessary, yeah. -- View this message in context: http://www.nabble.com/CSS-n

Re: CSS not being used when a Servlet is involved

2006-10-29 Thread Christopher Schultz
Robbert, > Christopher Schultz-2 wrote: >> You have your process turned upside down, here. > > Why is the process turned upside down, exactly? Or rather, is there any > benefit in mapping /index to a Servlet and then forwarding to a JSP instead > of going to JSP pages which invoke my Servlet? > T

Re: CSS not being used when a Servlet is involved

2006-10-29 Thread Robbert
ake some > of these steps yourself, but have gotten confused somewhere along the > way -- ending up with your JSPs invoking your servlet, which feels > /very/ weird to me. > > -chris > Struts sounds like a good framework. I'm not too experienced with those but I take it th

RE: CSS not being used when a Servlet is involved

2006-10-29 Thread Robbert
Caldarale, Charles R wrote: > >> From: Robbert [mailto:[EMAIL PROTECTED] >> Subject: RE: CSS not being used when a Servlet is involved >> >> Hm, alright. Should all else fail, is it possible to let a >> Servlet handle the CSS? > > Some servlet

RE: CSS not being used when a Servlet is involved

2006-10-28 Thread Caldarale, Charles R
> From: Robbert [mailto:[EMAIL PROTECTED] > Subject: RE: CSS not being used when a Servlet is involved > > Hm, alright. Should all else fail, is it possible to let a > Servlet handle the CSS? Some servlet must handle everything; static content (including .css files) is norm

Re: CSS not being used when a Servlet is involved

2006-10-28 Thread Christopher Schultz
Robbert, > Hm, alright. Should all else fail, is it possible to let a Servlet handle > the CSS? You don't really want to do this. > I have four JSP pages (index, profile, statistics and gallery) that must > invoke the StatistiekServlet. The page is simply a normal, static HTML page > that calls

RE: CSS not being used when a Servlet is involved

2006-10-28 Thread Robbert
Caldarale, Charles R wrote: > >> From: Robbert [mailto:[EMAIL PROTECTED] >> Subject: RE: CSS not being used when a Servlet is involved >> >> Combining that with what you just said, I assume that you're >> basically saying that my servlet tries to handle t

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Caldarale, Charles R
> From: Robbert [mailto:[EMAIL PROTECTED] > Subject: RE: CSS not being used when a Servlet is involved > > Combining that with what you just said, I assume that you're > basically saying that my servlet tries to handle the > tag that contains the URL to my CSS, but f

Re: CSS not being used when a Servlet is involved

2006-10-27 Thread David Smith
to the css file on your server. Added benefit is the webapp can be deployed under any number of paths and still provide the correct absolute path to the css. --David Robbert wrote: Caldarale, Charles R wrote: From: Robbert [mailto:[EMAIL PROTECTED] Subject: Re: CSS not being used when a

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
Caldarale, Charles R wrote: > >> From: Robbert [mailto:[EMAIL PROTECTED] >> Subject: Re: CSS not being used when a Servlet is involved >> >> I'm using a link tag. It works fine if I take out the lines >> in web.xml that define the Servlet + Servlet

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
Caldarale, Charles R wrote: > >> From: Robbert [mailto:[EMAIL PROTECTED] >> Subject: Re: CSS not being used when a Servlet is involved >> >> I'm calling the Servlet with >> > > Shouldn't the above be: > > > Isn't the leading

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Caldarale, Charles R
> From: Robbert [mailto:[EMAIL PROTECTED] > Subject: Re: CSS not being used when a Servlet is involved > > I'm calling the Servlet with > Shouldn't the above be: Isn't the leading slash required to make the reference relative to the context rather than the

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Caldarale, Charles R
> From: Robbert [mailto:[EMAIL PROTECTED] > Subject: Re: CSS not being used when a Servlet is involved > > I'm using a link tag. It works fine if I take out the lines > in web.xml that define the Servlet + Servlet Mapping. But if > I add them back, it doesn't work

Re: CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
es in web.xml that define the Servlet + Servlet Mapping. But if I add them back, it doesn't work anymore. What do you mean exactly that the tag is pulled via a seperate request to the server? -- View this message in context: http://www.nabble.com/CSS-not-being-used-when-a-Servlet-is-involved

Re: CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
CSS is loaded with the following tag: The Servlet is now placed in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/o23/StatistiekServlet, and I'm calling the Servlet with I hope that that's enough information and that I didn't mes

Re: CSS not being used when a Servlet is involved

2006-10-27 Thread David Smith
1. The location of servlet classes is documented in the spec. Place them in either a directory structure that reflects the package structure under WEB-INF/classes or in a jar file whose internal folder structure reflects the package structure. Ex.: Suppose you have the class StatistiekServlet

Re: CSS not being used when a Servlet is involved

2006-10-27 Thread Christopher Schultz
Robbert, > (Yes, I have three locations for the statistics servlet. I don't know where > to place it!) See below. > $CATALINA_HOME/webapps/ROOT/doc/o23/index.jsp (deze jsp file roept dus de > StatistiekServlet aan) This should be fine. > $CATALINA_HOME/webapps/ROOT/doc/o23/StatistiekServlet T

CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
answer). -- View this message in context: http://www.nabble.com/CSS-not-being-used-when-a-Servlet-is-involved-tf2521410.html#a7032844 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail