Is CSS applied to pages where there no parameters in the URL of the app?

Regards,
---------------------------------------------------------
Girish Naik
Mobile:-+91-09740091638
girish.n...@gmail.com
Rodney 
Dangerfield<http://www.brainyquote.com/quotes/authors/r/rodney_dangerfield.html>
- "What a dog I got, his favorite bone is in my arm."

On Fri, Jun 19, 2009 at 9:50 PM, jill juneja <jilljun...@gmail.com> wrote:

> app is working fine. Even if css s:url is there.  Css just does not get
> applied to the pages.
>
> I am only seeing the error thru firefox web development tool by viewing
> css.
>
> I know it is weird. I have tried every combination. I tried doing relative
> path too. Same error.
> It looks to be it has something to do with filters.
>
>
>
> On Fri, Jun 19, 2009 at 10:57 AM, Girish Naik <girish.n...@gmail.com>
> wrote:
>
> > Is this error comming on app start?
> > Are u sure that this error is due to css? Is your app working when there
> is
> > no css? If Yes then can u use relative path for calling css instead of
> > s:url
> >
> >
> >
> > Regards,
> > ---------------------------------------------------------
> > Girish Naik
> > Mobile:-+91-09740091638
> > girish.n...@gmail.com
> > George Carlin<
> > http://www.brainyquote.com/quotes/authors/g/george_carlin.html>
> > - "Electricity is really just organized lightning."
> >
> > On Fri, Jun 19, 2009 at 7:30 PM, jill juneja <jilljun...@gmail.com>
> wrote:
> >
> > > All,
> > >
> > > I am new to struts2. Downloaded and manually configured the helloworld
> > war
> > > in JDeveloper. Every thing work fines in the app. I am getting hello
> > world
> > > message. Login page, validations using validator.
> > >
> > > Only thing not work in the app is css file. Its in the root directory
> > under
> > > css folder. Any help is very much appreciated.  Below is error
> exception
> > in
> > > firefox view css tab.
> > >
> > > 500 Internal Server Error
> > > java.lang.NullPointerException    at com.evermind[Oracle Containers for
> > > J2EE
> > > 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.EvermindHttpServletRequest.getParameters(EvermindHttpServletRequest.java:1471)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.EvermindHttpServletRequest.getImmutableParameters(EvermindHttpServletRequest.java:1565)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.EvermindHttpServletRequest.getParameterMap(EvermindHttpServletRequest.java:1571)
> > > at
> > >
> > >
> >
> org.apache.struts2.dispatcher.Dispatcher.createContextMap(Dispatcher.java:507)
> > > at
> > >
> > >
> >
> org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:75)
> > > at
> > >
> > >
> >
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:65)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher.handleWithFilter(FileRequestDispatcher.java:137)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher.unprivileged_forwardInternal(FileRequestDispatcher.java:283)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher.access$100(FileRequestDispatcher.java:30)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher$2.oc4jRun(FileRequestDispatcher.java:254)
> > > at
> oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher.forwardInternal(FileRequestDispatcher.java:259)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:867)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)    at
> > > com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)    at
> > >
> > >
> >
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
> > > at java.lang.Thread.run(Thread.java:595)
> > >
> > >
> > > Include in jsp is
> > > <head>
> > >    <title>Sign On</title>
> > >    <link href="<s:url value="/css/forms.css"/>" rel="stylesheet"
> > > type="text/css"/>
> > > </head>
> > >
> > >
> > >
> > > web.xml is
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <web-app id="WebApp_9" version="2.4" xmlns="
> > > http://java.sun.com/xml/ns/j2ee";
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation="
> > > http://java.sun.com/xml/ns/j2ee
> > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> > >
> > >    <display-name>Struts Blank</display-name>
> > >
> > >    <filter>
> > >        <filter-name>struts2</filter-name>
> > >
> > >
> > >
> >
> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
> > >    </filter>
> > >
> > >    <filter-mapping>
> > >        <filter-name>struts2</filter-name>
> > >        <url-pattern>/*</url-pattern>
> > >    </filter-mapping>
> > >
> > >    <welcome-file-list>
> > >        <welcome-file>index.html</welcome-file>
> > >    </welcome-file-list>
> > >
> > > </web-app>
> > >
> > >
> > > struts.xml
> > >
> > > <?xml version="1.0" encoding="UTF-8" ?>
> > > <!DOCTYPE struts PUBLIC
> > >    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> > >    "http://struts.apache.org/dtds/struts-2.0.dtd";>
> > >
> > > <struts>
> > >
> > >    <constant name="struts.enable.DynamicMethodInvocation" value="false"
> > />
> > >    <constant name="struts.devMode" value="false" />
> > >
> > >
> > >
> > >
> > >
> > >    <package name="default" namespace="/" extends="struts-default">
> > >        <default-action-ref name="index" />
> > >        <action name="index">
> > >            <result type="redirectAction">
> > >                <param name="actionName">HelloWorld</param>
> > >                <param name="namespace">/example</param>
> > >            </result>
> > >        </action>
> > >
> > >        <action name="HelloWorld" class="example.HelloWorld">
> > >            <result>/example/HelloWorld.jsp</result>
> > >        </action>
> > >
> > >        <action name="Login_*" method="{1}" class="example.Login">
> > >            <result name="input">/example/Login.jsp</result>
> > >            <result type="redirectAction">Menu</result>
> > >        </action>
> > >
> > >        <action name="*" class="example.ExampleSupport">
> > >            <result>/example/{1}.jsp</result>
> > >        </action>
> > >    </package>
> > >
> > >    <!-- Add packages here -->
> > >
> > > </struts>
> > >
> >
>

Reply via email to