|
Hi Danny Rubis,
Thanks.
I will explain u the problem
completely.
I am using JApplet(Swing) as GUI. From
there i am making applet to servlet communication. I m forwarding the
request from the servlet to another JSP file using
"getServletConfig().getServletContext().getRequestDispatcher.forward(File
name)". In the jsp i am forming the <html> page(using style sheet ie .css
file) to display. Here problem is, when i am forwarding the request for the
first time to JSP file, the page is not formatted according to style sheet(that
is the first page is not formatted according to style sheet), from then on, i
mean from the second page, the page is formatted well.
Here the actual problem is, when the
page is displayed for the first time, the URL in address bar is that "Servlet
file" URL. From then on(that is from second page), the URL in the address bar is
JSP file's URL.
In the Servlet file i can not use
out.print() to include the .css file, because i am forwarding the request. Even
if i use out.print() to include the .css file, Compilation error is
thrown. Is there any other way to do this?.
If the problem is not clear, plse ask me
again.
Rgds.,
C.Raja
|
- Style Sheet rajac
- Re: Style Sheet Danny Rubis
- Re: Style Sheet rajac
- Re: Style Sheet Richard Yee
- Re: Style Sheet Danny Rubis
- Re: Style Sheet David Bustin
