Wicket in other application

2013-05-16 Thread Alis
Hello! Currently, I have two applications: one wicket and one in struts jsp.

Both need to interact. I keep the same HttpServletRequest and HttpSession in
both apliacaiones.

The solution I thought is to unify the wicket application in another
application.

How do I?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-in-other-application-tp4658859.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket in other application

2013-05-16 Thread Richard W. Adams
What do you mean by unify? Do you want to merge them into a single 
application with only one code base? Or do you mean something else?

If you intend to keep them as two separate applications, there are number 
of techniques for inter-process communication.




From:   Alis ajcalve...@yahoo.es
To: users@wicket.apache.org
Date:   05/16/2013 08:55 AM
Subject:Wicket in other application



Hello! Currently, I have two applications: one wicket and one in struts 
jsp.

Both need to interact. I keep the same HttpServletRequest and HttpSession 
in
both apliacaiones.

The solution I thought is to unify the wicket application in another
application.

How do I?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-in-other-application-tp4658859.html

Sent from the Users forum mailing list archive at Nabble.com.

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




**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**


Re: Wicket in other application

2013-05-16 Thread Jan Riehn

Hello Alis,

the Wicket programming model is based on the typical web application 
request scenario - one thread typically processes one HTTP request using 
the org.apache.wicket.protocol.http.WicketFilter. This filter sets the 
application context using a thread-local, many wicket internals and also 
analogous many wicket applications use this thread-local over a static 
method by Application.get().


For the case that code for different application instances or even 
outside of the WicketFilter contexts request must be executed, you can 
use the following template. It works similar to the WicketFilter.



public ApplicationContextTemplate(Application application) {
final ThreadContext previousThreadContext = ThreadContext.detach();
try {
ThreadContext.setApplication(application);
execute();
} finally {
ThreadContext.restore(previousThreadContext);
}
}

protected abstract void execute();


Best regards,

Jan


On 05/16/2013 04:04 PM, Richard W. Adams wrote:

What do you mean by unify? Do you want to merge them into a single
application with only one code base? Or do you mean something else?

If you intend to keep them as two separate applications, there are number
of techniques for inter-process communication.




From:   Alis ajcalve...@yahoo.es
To: users@wicket.apache.org
Date:   05/16/2013 08:55 AM
Subject:Wicket in other application



Hello! Currently, I have two applications: one wicket and one in struts
jsp.

Both need to interact. I keep the same HttpServletRequest and HttpSession
in
both apliacaiones.

The solution I thought is to unify the wicket application in another
application.

How do I?



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-in-other-application-tp4658859.html

Sent from the Users forum mailing list archive at Nabble.com.

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




**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**




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



Re: Wicket in other application

2013-05-16 Thread Alis
Yes, i want to merge them into a single application with only one code base.

I'm bringing in other wicket application.


I began by:

web.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC quot;-//Sun Microsystems, Inc.//DTD Web
Application 2.3//ENquot;
quot;http://java.sun.com/dtd/web-app_2_3.dtdquot;

web-app id=WebApp_1087847902953

filter id=Filter_1
filter-nameFilterAll/filter-name
   
filter-classcom.consisint.acsele.management.filter.URLFilter/filter-class
init-param id=inicio_100
param-nameinicio/param-name
param-valueindex-alt.jsp/param-value
/init-param
/filter
filter id=Filter_10001
filter-nameUserInfoSetFilter/filter-name
   
filter-classcom.consisint.acsele.management.filter.UserInfoSetFilter/filter-class
/filter
filter id=Filter_10002
filter-nameUserInfoSetFilterFrontEnd/filter-name
   
filter-classcom.consisint.frontend.config.UserInfoSetFilter/filter-class
init-param
param-namefilterName/param-name

param-valueWicketApplication/param-value
/init-param
/filter
   * filter id=Filter_10003*
filter-nameWicketApplication/filter-name

  * 
filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class*
init-param
param-nameapplicationClassName/param-name
   
param-valuecom.consisint.frontend.modules.main.Application/param-value
/init-param
  *  /filter*


filter-mapping id=FilterMapping_10001
filter-nameFilterAll/filter-name
url-pattern*.jsp/url-pattern
/filter-mapping
filter-mapping id=FilterMapping_10002
filter-nameFilterAll/filter-name
url-pattern/servlet//url-pattern
/filter-mapping
filter-mapping id=FilterMapping_10003
filter-nameFilterAll/filter-name
url-pattern//url-pattern
/filter-mapping
filter-mapping id=FilterMapping_1115322486156
filter-nameFilterAll/filter-name
servlet-nameServletGenericFormulaTool/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486157
filter-nameFilterAll/filter-name
servlet-nameaction/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486158
filter-nameFilterAll/filter-name
servlet-nameServletFundTool/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486159
filter-nameFilterAll/filter-name
servlet-nameServletProductTool/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486160
filter-nameFilterAll/filter-name
servlet-nameServletEntryTool/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486161
filter-nameFilterAll/filter-name
servlet-nameStartOperation/servlet-name
/filter-mapping
  filter-mapping id=FilterMapping_1115322486158mob
 filter-nameFilterAll/filter-name
 servlet-nameMobileServices/servlet-name
  /filter-mapping
filter-mapping id=FilterMapping_1115322486162
filter-nameFilterAll/filter-name
servlet-nameAppCoordinator/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486163
filter-nameFilterAll/filter-name
servlet-nameServletUAA/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486164
filter-nameFilterAll/filter-name
servlet-nameServletCashierStand/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486165
filter-nameFilterAll/filter-name
servlet-nameServletFormulaTool/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486166
filter-nameFilterAll/filter-name
servlet-nameServletClaimTool/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486168
filter-nameFilterAll/filter-name
servlet-nameWorkflowController/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486169
filter-nameFilterAll/filter-name
servlet-nameServletReport/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486170
filter-nameFilterAll/filter-name
servlet-nameServletPolicy/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486171
filter-nameFilterAll/filter-name
servlet-nameServletWorkflowTool/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486172
filter-nameFilterAll/filter-name
servlet-nameServletTemplateTool/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486173
filter-nameFilterAll/filter-name
servlet-nameServletClaim/servlet-name
/filter-mapping
filter-mapping id=FilterMapping_1115322486174
filter-nameFilterAll/filter-name
servlet-nameServletTemplate/servlet-name
/filter-mapping