struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mustafa Cayci <aca...@yahoo.com>
Subject Re: Newbie: Call a servlet in another application and set attribute
Date Wed, 25 Jun 2008 17:29:16 GMT
Hello Dave,
Let me try to understan what you mean.  Are you saying that I should be doing this
    public ActionForward execute(ActionMapping mapping, ActionForm form, 
                                 HttpServletRequest request,

                                 HttpServletResponse response)
throws Exception {
....
        HttpSession session = request.getSession();
        session.setAttribute("Principal",principal);
        response.sendRedirect("/testsqlservlet/testsqlservlet");
...
Because this did not work.  
Thanks,
Mustafa

----- Original Message ----
From: Dave Newton <newton.dave@yahoo.com>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Wednesday, June 25, 2008 12:58:09 PM
Subject: Re: Newbie: Call a servlet in another application and set attribute

--- On Wed, 6/25/08, Mustafa Cayci <acayci@yahoo.com> wrote:
> I am fairly new to Struts.  I have two applications.  AppA
> is a Struts application and AppB is another application.  I
> have an Action class in AppA.  Within execute() method, I am
> creating some objects.  I would like to call the servlet in
> AppB and somehow I want to pass these objects to the
> servlet in AppB. SO far I have this
> 
>    public ActionForward execute(ActionMapping mapping,
> ActionForm form, 
>                                  HttpServletRequest
> request, 
>                                  HttpServletResponse
> response) throws Exception {
> ...
>        
> response.sendRedirect("/testsqlservlet/testsqlservlet?Object="
> + object);
> ...
> 
> But this is a problem because even if I use SSL (i.e.
> https://) this redirect will be in cleartext and anybody
> can modify the "object".  What are my options? I
> am hope I explained myself clearly.

Put it in the session?

That's not passing the object, either; that's passing the string representation of the object.
A bit different.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message