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()%> HTH Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Wed, 12 May 2010 04:43:13 -0700 > From: andy....@roslin.ed.ac.uk > To: user@struts.apache.org > Subject: RE: Some Spring/Struts questions > > > > > James Cook-13 wrote: > > > > In the past I have done this for accessing beans in a servlet. > > > > <bean > > class="org.springframework.web.context.support.ServletContextAttributeEx > > porter"> > > <property name="attributes"> > > <map> > > <entry key="organisationService" > > value-ref="myOrganisationServiceBeanRef"/> > > </map> > > </property> > > </bean> > > > > OrganisationService organisationService = (OrganisationService) > > getServletContext().getAttribute("organisationService"); > > > > > OK. Thanks. I'll try that. > > Is it possible though to use Spring to push objects onto the Struts OGNL > stack? That would be neater? > > Later, > > Andy > -- > View this message in context: > http://old.nabble.com/Some-Spring-Struts-questions-tp28533505p28534868.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 > _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3