You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rafael Muneton <ra...@hotmail.com> on 2009/12/24 16:52:35 UTC
Forwarding to a Java Application
In a Web Application I need to redirect the flow of the information to a Java class nor to a Servlet or a JSP.
However in the web i have found a lot of material but none mentions what i am looking for.
How is this achieved?
Any idea is welcome.
Rafael
_________________________________________________________________
Keep your friends updated—even when you’re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010
RE: Forwarding to a Java Application
Posted by Rafael Muneton <ra...@hotmail.com>.
OK Wes:
I am trying to understand you.
I will test my Appl and will keep you posted.
Thanks a lot.
Rafael
> Date: Thu, 24 Dec 2009 13:48:49 -0500
> Subject: Re: Forwarding to a Java Application
> From: wesw@wantii.com
> To: user@struts.apache.org
>
> On Thu, Dec 24, 2009 at 12:52 PM, Rafael Muneton
> <ra...@hotmail.com> wrote:
> >
> > Hi Vitor:
> >
> > What I am trying to achieve is that , after a user can log in to the Web Application, this user receives the MainMenu screen of the Application, where there are several options, that he/she can choose from.This MainMenu is a Java application not a Servlet.
> >
> > And after reading your answer, I think that maybe I need to upgrade to Struts 2.
> >
> > I am using Struts 1.1
> >
>
> I don't think an upgrade is necessary. I think you just need to
> understand a little better how things work in a JSP/Servlet
> environment... The page that launches the MainMenu application is
> bound to have either an <applet... or <object... tag. It has been a
> while for me, I can't remember which. But, if there is information
> that needs passed to the MainMenu, then you need to make that
> information into params. Then, when the page that launches the
> MainMenu is rendered, pass the information to the MainMenu by
> rendering the appropriate <param... tags.
>
> -Wes
>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010
Re: Forwarding to a Java Application
Posted by Saeed Iqbal <sa...@gmail.com>.
An action bean is similar to a java bean
just point in struts xml the java bean name
On Monday, December 28, 2009, Rafael Muneton <ra...@hotmail.com> wrote:
>
> Hi Wes:
>
>
>
> Thanks for your answer.
>
> I am a little bit confused now.
>
> What I am trying to do is uncommon?????
>
> The fact that I want to launch a Java class(Nor a Servlet) from a Java Server Page is something odd???
>
> Or is it against the rules of Struts????
>
> The question is now ===> How would you do something like that????
>
>
>
> Thanks again.
>
>
>
> Rafael.
>
>> Date: Thu, 24 Dec 2009 13:48:49 -0500
>> Subject: Re: Forwarding to a Java Application
>> From: wesw@wantii.com
>> To: user@struts.apache.org
>>
>> On Thu, Dec 24, 2009 at 12:52 PM, Rafael Muneton
>> <ra...@hotmail.com> wrote:
>> >
>> > Hi Vitor:
>> >
>> > What I am trying to achieve is that , after a user can log in to the Web Application, this user receives the MainMenu screen of the Application, where there are several options, that he/she can choose from.This MainMenu is a Java application not a Servlet.
>> >
>> > And after reading your answer, I think that maybe I need to upgrade to Struts 2.
>> >
>> > I am using Struts 1.1
>> >
>>
>> I don't think an upgrade is necessary. I think you just need to
>> understand a little better how things work in a JSP/Servlet
>> environment... The page that launches the MainMenu application is
>> bound to have either an <applet... or <object... tag. It has been a
>> while for me, I can't remember which. But, if there is information
>> that needs passed to the MainMenu, then you need to make that
>> information into params. Then, when the page that launches the
>> MainMenu is rendered, pass the information to the MainMenu by
>> rendering the appropriate <param... tags.
>>
>> -Wes
>>
>>
>>
>> --
>> Wes Wannemacher
>>
>> Head Engineer, WanTii, Inc.
>> Need Training? Struts, Spring, Maven, Tomcat...
>> Ask me for a quote!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> _________________________________________________________________
> Windows Live: Keep your friends up to date with what you do online.
> http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Forwarding to a Java Application
Posted by mu...@aol.com.
The <Object> tag previously referred to is where you can launch a java app from
a jsp (or even an ordinary html page). Check out Java Web Start.
Your java app can be an ordinary swing app and the server sends
a .jnlp file with instructions to the browser to download the necessary classes.
Your client needs to either have a full JDK installed (not just a JRE) or have
Java Web Start installed.
Chris
-----Original Message-----
From: Rafael Muneton <ra...@hotmail.com>
To: Struts Mailing list <us...@struts.apache.org>
Sent: Mon, Dec 28, 2009 12:39 pm
Subject: RE: Forwarding to a Java Application
i Wes:
Thanks for your answer.
I am a little bit confused now.
What I am trying to do is uncommon?????
The fact that I want to launch a Java class(Nor a Servlet) from a Java Server
age is something odd???
Or is it against the rules of Struts????
The question is now ===> How would you do something like that????
Thanks again.
Rafael.
Date: Thu, 24 Dec 2009 13:48:49 -0500
Subject: Re: Forwarding to a Java Application
From: wesw@wantii.com
To: user@struts.apache.org
On Thu, Dec 24, 2009 at 12:52 PM, Rafael Muneton
<ra...@hotmail.com> wrote:
>
> Hi Vitor:
>
> What I am trying to achieve is that , after a user can log in to the Web
pplication, this user receives the MainMenu screen of the Application, where
here are several options, that he/she can choose from.This MainMenu is a Java
pplication not a Servlet.
>
> And after reading your answer, I think that maybe I need to upgrade to
truts 2.
>
> I am using Struts 1.1
>
I don't think an upgrade is necessary. I think you just need to
understand a little better how things work in a JSP/Servlet
environment... The page that launches the MainMenu application is
bound to have either an <applet... or <object... tag. It has been a
while for me, I can't remember which. But, if there is information
that needs passed to the MainMenu, then you need to make that
information into params. Then, when the page that launches the
MainMenu is rendered, pass the information to the MainMenu by
rendering the appropriate <param... tags.
-Wes
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
________________________________________________________________
indows Live: Keep your friends up to date with what you do online.
ttp://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010=
RE: Forwarding to a Java Application
Posted by Rafael Muneton <ra...@hotmail.com>.
Hi Wes:
Thanks for your answer.
I am a little bit confused now.
What I am trying to do is uncommon?????
The fact that I want to launch a Java class(Nor a Servlet) from a Java Server Page is something odd???
Or is it against the rules of Struts????
The question is now ===> How would you do something like that????
Thanks again.
Rafael.
> Date: Thu, 24 Dec 2009 13:48:49 -0500
> Subject: Re: Forwarding to a Java Application
> From: wesw@wantii.com
> To: user@struts.apache.org
>
> On Thu, Dec 24, 2009 at 12:52 PM, Rafael Muneton
> <ra...@hotmail.com> wrote:
> >
> > Hi Vitor:
> >
> > What I am trying to achieve is that , after a user can log in to the Web Application, this user receives the MainMenu screen of the Application, where there are several options, that he/she can choose from.This MainMenu is a Java application not a Servlet.
> >
> > And after reading your answer, I think that maybe I need to upgrade to Struts 2.
> >
> > I am using Struts 1.1
> >
>
> I don't think an upgrade is necessary. I think you just need to
> understand a little better how things work in a JSP/Servlet
> environment... The page that launches the MainMenu application is
> bound to have either an <applet... or <object... tag. It has been a
> while for me, I can't remember which. But, if there is information
> that needs passed to the MainMenu, then you need to make that
> information into params. Then, when the page that launches the
> MainMenu is rendered, pass the information to the MainMenu by
> rendering the appropriate <param... tags.
>
> -Wes
>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010
Re: Forwarding to a Java Application
Posted by Wes Wannemacher <we...@wantii.com>.
On Thu, Dec 24, 2009 at 12:52 PM, Rafael Muneton
<ra...@hotmail.com> wrote:
>
> Hi Vitor:
>
> What I am trying to achieve is that , after a user can log in to the Web Application, this user receives the MainMenu screen of the Application, where there are several options, that he/she can choose from.This MainMenu is a Java application not a Servlet.
>
> And after reading your answer, I think that maybe I need to upgrade to Struts 2.
>
> I am using Struts 1.1
>
I don't think an upgrade is necessary. I think you just need to
understand a little better how things work in a JSP/Servlet
environment... The page that launches the MainMenu application is
bound to have either an <applet... or <object... tag. It has been a
while for me, I can't remember which. But, if there is information
that needs passed to the MainMenu, then you need to make that
information into params. Then, when the page that launches the
MainMenu is rendered, pass the information to the MainMenu by
rendering the appropriate <param... tags.
-Wes
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Forwarding to a Java Application
Posted by Rafael Muneton <ra...@hotmail.com>.
Hi Vitor:
What I am trying to achieve is that , after a user can log in to the Web Application, this user receives the MainMenu screen of the Application, where there are several options, that he/she can choose from.This MainMenu is a Java application not a Servlet.
And after reading your answer, I think that maybe I need to upgrade to Struts 2.
I am using Struts 1.1
Thanks.
Rafael
> From: vitorsouza@gmail.com
> To: user@struts.apache.org
> Subject: Re: Forwarding to a Java Application
> Date: Thu, 24 Dec 2009 18:38:33 +0100
>
> On Thursday 24 December 2009 16:52:35 Rafael Muneton wrote:
> > In a Web Application I need to redirect the flow of the information to a
> > Java class nor to a Servlet or a JSP.
> >
> > However in the web i have found a lot of material but none mentions what i
> > am looking for.
> >
> > How is this achieved?
>
> When information are sent to the web server, they are always directed towards
> a Servlet, but it can be intercepted by a Filter or Listener. Even with JSP,
> we're talking about a Servlet that was created automatically by the container
> from the JSP page. AFAIK, these are the only classes that can interact
> *directly* with the web application.
>
> Then come the frameworks, which deliver a set of classes (again, Servlets,
> Filters, Listeners...) that abstract all the complexity for us and we can
> develop simpler classes that interact with the WebApp. But in reality, they
> are interacting with the classes the framework provides.
>
> With Struts2, you can create Actions, register them with the framework and
> they can receive the data directly from the web pages. Struts2 will
> automatically convert and inject them in the action's properties, given the
> rules have been followed correctly.
>
> I don't know if I understood your question right, so I don't know if I
> answered it well.
>
> Ciao,
>
> Vítor Souza
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009
Re: Forwarding to a Java Application
Posted by "Vitor E. Silva Souza" <vi...@gmail.com>.
On Thursday 24 December 2009 16:52:35 Rafael Muneton wrote:
> In a Web Application I need to redirect the flow of the information to a
> Java class nor to a Servlet or a JSP.
>
> However in the web i have found a lot of material but none mentions what i
> am looking for.
>
> How is this achieved?
When information are sent to the web server, they are always directed towards
a Servlet, but it can be intercepted by a Filter or Listener. Even with JSP,
we're talking about a Servlet that was created automatically by the container
from the JSP page. AFAIK, these are the only classes that can interact
*directly* with the web application.
Then come the frameworks, which deliver a set of classes (again, Servlets,
Filters, Listeners...) that abstract all the complexity for us and we can
develop simpler classes that interact with the WebApp. But in reality, they
are interacting with the classes the framework provides.
With Struts2, you can create Actions, register them with the framework and
they can receive the data directly from the web pages. Struts2 will
automatically convert and inject them in the action's properties, given the
rules have been followed correctly.
I don't know if I understood your question right, so I don't know if I
answered it well.
Ciao,
Vítor Souza
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Forwarding to a Java Application
Posted by Rafael Muneton <ra...@hotmail.com>.
Hi Wes:
Well, this web application is the entry to a whole application, it is the MainMenu screen where I have several menu options the user can choose from.And depending on the User , I allow some options or allow all the options.
Rafael
> Date: Thu, 24 Dec 2009 11:37:42 -0500
> Subject: Re: Forwarding to a Java Application
> From: wesw@wantii.com
> To: user@struts.apache.org
>
> Will the Java App(let) be up and running, or will you need to launch
> it with the information passed to it?
>
> -Wes
>
> On Thu, Dec 24, 2009 at 10:52 AM, Rafael Muneton
> <ra...@hotmail.com> wrote:
> >
> > In a Web Application I need to redirect the flow of the information to a Java class nor to a Servlet or a JSP.
> >
> > However in the web i have found a lot of material but none mentions what i am looking for.
> >
> > How is this achieved?
> >
> >
> >
> > Any idea is welcome.
> >
> >
> >
> > Rafael
> >
> > _________________________________________________________________
> > Keep your friends updated—even when you’re not signed in.
> > http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010
>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010
Re: Forwarding to a Java Application
Posted by Wes Wannemacher <we...@wantii.com>.
Will the Java App(let) be up and running, or will you need to launch
it with the information passed to it?
-Wes
On Thu, Dec 24, 2009 at 10:52 AM, Rafael Muneton
<ra...@hotmail.com> wrote:
>
> In a Web Application I need to redirect the flow of the information to a Java class nor to a Servlet or a JSP.
>
> However in the web i have found a lot of material but none mentions what i am looking for.
>
> How is this achieved?
>
>
>
> Any idea is welcome.
>
>
>
> Rafael
>
> _________________________________________________________________
> Keep your friends updated—even when you’re not signed in.
> http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org