You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ManiKanta G <ma...@sifycorp.com> on 2008/09/04 11:12:03 UTC
[S2] Adding objects to application context at the application startup
Hi,
How to add an object at the Struts2 based application startup?
And what is the best way to process some logic while S2 application
startup, like parsing XML and storing it in the application context for
further processing in the later actions?
Thanks in advance.
Regards,
ManiKanta G
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@sifycorp.com
One form for some tabbedpane panes
Posted by Francisco Exposito <fc...@hotmail.com>.
Hi,
I want to have two panes in a tabbed pane, each one with its textfields and selects, but only one form including both info panes. Is that possible? I've tried it, but it doesn't work...
<s:form id="crearContrato" action="CrearContrato">
<s:tabbedPanel id="test2" theme="simple">
<s:div id="left" label="Datos" theme="ajax" >
<td><s:datetimepicker name="contrato.fechaInicio" label="Fecha inicio" value="" toggleType="fade" toggleDuration="500"/></td>
<td><s:datetimepicker name="contrato.fechaFinal" label="Fecha final" value="" toggleType="fade" toggleDuration="500"/></td>
</s:div >
<s:div id="middle" label="Actividades" theme="ajax" >
<td><s:textarea label="Observaciones"
name="contrato.observaciones" cols="51"
rows="5"></s:textarea></td>
</s:div >
</s:tabbedPanel>
<s:submit theme="ajax"
href="%{crearContrato}"
targets="divContenedor"
value="Crear"
showLoadingText="false"></s:submit>
</s:form>
Thanks.
_________________________________________________________________
Prueba los prototipos de los Ășltimos en MSN Motor
http://motor.es.msn.com/
Re: [S2] Adding objects to application context at the application
startup
Posted by ManiKanta G <ma...@sifycorp.com>.
Hi Dave,
It is very generous of you. I've implemented this just before. I forgot
to reply again.
Thanks any way.
Regards,
ManiKanta G
Dave Newton wrote:
> --- On Thu, 9/4/08, ManiKanta G wrote:
>
>> How to add an object at the Struts2 based application startup?
>>
>> And what is the best way to process some logic while S2
>> application startup, like parsing XML and storing it in
>> the application context for further processing in the
>> later actions?
>>
>
> http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@sifycorp.com
Re: [S2] Adding objects to application context at the application startup
Posted by Dave Newton <ne...@yahoo.com>.
--- On Thu, 9/4/08, ManiKanta G wrote:
> How to add an object at the Struts2 based application startup?
>
> And what is the best way to process some logic while S2
> application startup, like parsing XML and storing it in
> the application context for further processing in the
> later actions?
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org