struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Struts in Servlet 2.4
Date Fri, 13 Apr 2007 20:48:15 GMT
Sounds as if your ejb compiler didnt generate and compile the necessary 
interfaces
for what its worth here is a sample of a build for my wl env

Note the easiest path is to run the build.xml target to build the ear
cd %WL_HOME%
cd samples
cd server
cd examples
cd src
cd examples
cd webservices
cd complex
cd statelessSession
ant build-ejb

Note: you can also run all of this by going to 
/samples/server/medrec/src/medrecEar
and running the targets which will run the wlcompile such as build.split.dir 
or build.web.service

Note: I dont have WL version 9 on any of my boxes so I'll let other folks 
provide help for that specific version
(being mindful that whatever solution is provided should run the ejb 
compiler)

HTH/
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.


----- Original Message ----- 
From: "Slattery, Tim - BLS" <Slattery.Tim@bls.gov>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Friday, April 13, 2007 1:31 PM
Subject: RE: Struts in Servlet 2.4


> <c:forEach items="${RespData}" var="resp">
>
> Andit points to "items" and gives this message:
>
> This attribute does not support request time values.

Well, I've made some progress, I guess.

I removed the jstl.jar and standard.jar that came with the Struts
distribution. I deleted the <taglib> tags for c: and fmt: in web.xml.
And I got rid of references to -el tags, since in this brave new world,
EL should be built-in.

And now the page gets past the compiler. But it stops at my first Struts
tag:

<html:link href="/CES/contactForm.do" paramId="solicitationNumber"
paramName="Contact"
       paramProperty="solicitationNumber" styleClass="menu"
title="Respondent Information"
       onClick="Javascript:return contact_window(this,
'Contact','false')">
          Update Respondent Information</html:link>

The error message is: Root cause of ServletException.
javax.servlet.jsp.JspException: Cannot find bean Contact in any scope

Now the Action module that runs and invokes this JSP page uses
session.setAttribute to store a bean under the name "Contact". I have
some debug print in that module, and there's *no* doubt at all that it's
running that statement. So why can't my struts tag find my bean?


--
Tim Slattery
Slattery_T@bls.gov


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



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


Mime
View raw message