0

[Solved]pass parameter from ProA to ProB ? [closed]

asked 2015-03-05 12:35:43 +0800

unitcell gravatar image unitcell
28 4

updated 2015-03-06 04:41:49 +0800

Hi all,

I have two projects put on tomcat, path like below,

/tomcat/webapps/projectA/index.zul

/tomcat/webapps/projectB/index.zul

Could I pass parameter from projectA to projectB ?

Thanx.

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by cor3000
close date 2015-03-06 05:56:02

Comments

One option via database . If two different two database, then using triggers

Senthilchettyin ( 2015-03-05 16:43:54 +0800 )edit

Thank you.

unitcell ( 2015-03-06 04:41:32 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-03-06 01:52:06 +0800

cor3000 gravatar image cor3000
4571 2 7
ZK Team

There are many ways of communication between to applications (e.g. JMS, sending a request to a servlet in the other application).

Or simply calling the index page of the other application with a parameter in the URL http://myserver/projectB/index.zul?param=abc

then read the parameter from the execution:

Execution exec = Executions.getCurrent();
String param=exec.getParameter("param"); //will give "abc"

So there is always a way just depends on when you want to send something, and what you want to send.

link publish delete flag offensive edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-03-05 12:35:43 +0800

Seen: 16 times

Last updated: Mar 06 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More