struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas.Hartm...@fiducia.de
Subject Antwort: Re: Defining dynamic default value for a cookie [*]
Date Tue, 29 Aug 2006 05:36:36 GMT
Hello Puneet,

I tried your solution, but I'm getting now another error:

Generated servlet error:
Integrationmenuform cannot be resolved to a type

I wrote the following in the jsp:

<bean:cookie id="cpname" name="CookieCname"
value='<%=((Integrationmenuform)request.getSession().getAttribute("Integrationmenuform")).getPname()%>'/>
<bean:cookie id="cvrm" name="CookieCvrm"
value='<%=((Integrationmenuform)request.getSession().getAttribute("Integrationmenuform")).getVrm()%>'/>


My web.xml from conf-dir with the init-params:

    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>fork</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>xpoweredBy</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>



I straced the java-container and detected, that there is an attempt to load
Integrationmenuform at another place. Therefore, I created some symlinks in
order to give the java container the requested class. I set the created
directories to the tomcat user. This is, what I can see after I created the
symlinks:

....
5880  stat("/opt/apache-tomcat-5.5.17
/webapps/integration_portalmanagement/WEB-INF/classes/org/apache/jsp/pages/Integrationmenuform.class",
 {st_mode=S_IFREG|0644, st_size=9084, ...}) = 0
5880  access("/opt/apache-tomcat-5.5.17
/webapps/integration_portalmanagement/WEB-INF/classes/org/apache/jsp/pages/Integrationmenuform.class",
 R_OK) = 0
5880  stat("/home/tomcat/org/apache/jsp/pages/Integrationmenuform.class",
0x412501b0) = -1 ENOENT (No such file or directory)
5880  stat("/opt/apache-tomcat-5.5.17
/common/classes/org/apache/jsp/pages/Integrationmenuform.class", 0x41250210) =
-1 ENOENT (No such file or directory)
...

I can't find any open ... . I don't know, why struts doesn't want to load it. Do
you have an idea?


Thanks for your help,
kind regards,
Andreas Hartmann


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message