I dont think there is a way. You can refactor it by moving the JSP init code to a java bean and have both JSP and PlugIn to call the java bean
is it okie? -D ----- Original Message ----- From: "Brian Buckley" <[EMAIL PROTECTED]> To: "Struts Users" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 10:12 AM Subject: initialize application-scope variables > Hello, > > I am writing a PlugIn (subclass of org.apache.struts.action.PlugIn ) to > initialize a bunch of application-scope variables. > > Several of my JSP snippets also initialize application-scope variables > (using either <c:set ..scope="application" />, <jsp:useBean > ...scope="application" />, <bean:define... />, and/or <% > application.setAttribute(...); %>) and I would like to reuse these. > > Is it possible to call JSPs from the init() method of a PlugIn? > > One could of course just translate the JSP snippets to java for the PlugIn, > but the JSP is already written and some of the initializations are more > easily written in JSP than java anyway. > > Any tips appreciated. > > Brian > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]