Martin,


mgainty wrote:
> 
> 
> jsp:useBean for quite some time
> <jsp:useBean id="query" scope="application"
> class="enterprise.criteriaQuery.ejb.StatelessSessionBean" />
> 
> in your jsp if you have a method called getCriteria the jsp could call the
> bean method directly via
> 
> <%=query.getCriteria()%>
> 
> 


OK. This looks like it could well be a good route to take except that I
can't work out how to make the jsp:useBean tag actually specify the copy of
the object that it wants to come from Spring. There is bean configuration
going on inside of the Spring configuration and so having instantiated a
singleton inside of the Spring config, I then want to tell the jsp to access
that instance. Th class specification that I'm working to is also an
Interface and I don't want to hard-code the specific implementation name
inside of the jsps as I need to configure that in Spring so I can plug in
alternative implementations in different instances of the application.

Is any of that possible?

Later,

Andy
-- 
View this message in context: 
http://old.nabble.com/Some-Spring-Struts-questions-tp28533505p28535778.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to