Re: How to pass HTTPRequest between two JSP ?

2010-02-28 Thread Frederik Minatchy
Thank you for your answer ...


Yes... In fact the goal is to pass the request from an action to an other. But 
after having reading the struts's documentation I can only use result 
dispatcher type.

In this part :
http://cwiki.apache.org/WW/redirect-result.html 

they say that, with a redirect result, the last action is lost and the only way 
to pass attributes (or parameters) is to use session or web parameters.


Finally the question may be how to configure the dispatch result?

Regards...

Fred

--- En date de : Lun 1.3.10, Burton Rhodes  a écrit :

> De: Burton Rhodes 
> Objet: Re: How to pass HTTPRequest between two JSP ?
> À: "Struts Users Mailing List" 
> Date: Lundi 1 mars 2010, 1h24
> I think you may want to do a
> 'redirect' to the next action in your xml
> file.  You pass the request from one action to the
> other. Not from jsp
> to jsp.
> 
> On 2/28/10, Frederik Minatchy 
> wrote:
> > Hello...
> >
> > Since a few days I am working with Struts 2. (2.1.6)
> > I am facing a big problem with HttpRequest and JSPs.
> >
> > Well... I have to forward a HTTPRequest from page1.jsp
> to page2.jsp
> >
> > So... How can I pass HTTPRequest attribute betwen 2
> pages?
> >
> > Here is a part my web.xml file :
> >
> > ...
> > 
> >     
>    struts2
> >
> >
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
> >     
> >     
> >    
> struts2
> >        
> /*
> >     
> > ...
> >
> >
> > the struts.xml file :
> >
> > ...
> >
> >  >
> class="fr.bnf.platon.bnf.actions.ConsultationBnfDetailAction">
> >     
>     >
> name="success">/pages/bnf/administration/detailBnf.jsp
> >         
> >
> >
> >
> >          name="bnf-detail_modification"
> >
> class="fr.bnf.platon.bnf.actions.ConsultationBnfDetailAction"
> > method="modificationSubmit">
> >     
>     >
> name="success">/pages/bnf/administration/detailBnf.jsp
> >         
> > ...
> >
> > and a part of the action java file (which
> implementents RequestAware):
> >
> >   public String execute() throws
> Exception
> >    {
> >       request.put("test",
> 58);
> >       return SUCCESS;
> >     }
> >
> >    public String modificationSubmit() throws
> TechniqueException,
> > FonctionnelleException
> >    {
> >       request.get("test"); //
> is null
> >       editMode = true;
> >       return SUCCESS;
> >    }
> >
> >
> >
> > So... How can I pass the request attribute from on
> page to an other?
> >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> -- 
> Sent from my mobile device
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 




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



Re: facebook connect

2010-02-28 Thread Frans Thamura
thx

we are working on it :)

F

On Mon, Mar 1, 2010 at 8:54 AM, Chris Pratt  wrote:

> Frans,
>  Saeed Iqbal posted
> http://code.google.com/p/remove-registration/recently.  I haven't had
> a chance to look into it, but have been meaning to.
>(*Chris*)
>
> On Sun, Feb 28, 2010 at 1:56 PM, Frans Thamura  wrote:
>
> > hi all
> >
> > anyone working with facebook connect, may be can share the code :)
> >
> > sorry, in lazy mode on. to make my development faster
> >
> >
> > --
> > Frans Thamura
> > Meruvian.
> > Experiential Tempation of Java and Enterprise OpenSource
> >
> > Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi
> SMK
> > yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma
> >
> > Mobile: +6287885901958
> > Blog & Profile: http://frans.thamura.info
> >
> > We provide services to migrate your apps to Java (web), in amazing fast
> and
> > reliable.
> >
>


Re: facebook connect

2010-02-28 Thread Chris Pratt
Frans,
  Saeed Iqbal posted
http://code.google.com/p/remove-registration/recently.  I haven't had
a chance to look into it, but have been meaning to.
   (*Chris*)

On Sun, Feb 28, 2010 at 1:56 PM, Frans Thamura  wrote:

> hi all
>
> anyone working with facebook connect, may be can share the code :)
>
> sorry, in lazy mode on. to make my development faster
>
>
> --
> Frans Thamura
> Meruvian.
> Experiential Tempation of Java and Enterprise OpenSource
>
> Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK
> yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma
>
> Mobile: +6287885901958
> Blog & Profile: http://frans.thamura.info
>
> We provide services to migrate your apps to Java (web), in amazing fast and
> reliable.
>


Re: How to pass HTTPRequest between two JSP ?

2010-02-28 Thread Burton Rhodes
I think you may want to do a 'redirect' to the next action in your xml
file.  You pass the request from one action to the other. Not from jsp
to jsp.

On 2/28/10, Frederik Minatchy  wrote:
> Hello...
>
> Since a few days I am working with Struts 2. (2.1.6)
> I am facing a big problem with HttpRequest and JSPs.
>
> Well... I have to forward a HTTPRequest from page1.jsp to page2.jsp
>
> So... How can I pass HTTPRequest attribute betwen 2 pages?
>
> Here is a part my web.xml file :
>
> ...
> 
> struts2
>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
> 
>   
>   struts2
>   /*
>   
> ...
>
>
> the struts.xml file :
>
> ...
>
>  class="fr.bnf.platon.bnf.actions.ConsultationBnfDetailAction">
>name="success">/pages/bnf/administration/detailBnf.jsp
>   
>
>
>
>class="fr.bnf.platon.bnf.actions.ConsultationBnfDetailAction"
> method="modificationSubmit">
>name="success">/pages/bnf/administration/detailBnf.jsp
>   
> ...
>
> and a part of the action java file (which implementents RequestAware):
>
>   public String execute() throws Exception
>{
>   request.put("test", 58);
>   return SUCCESS;
> }
>
>public String modificationSubmit() throws TechniqueException,
> FonctionnelleException
>{
>   request.get("test"); // is null
>   editMode = true;
>   return SUCCESS;
>}
>
>
>
> So... How can I pass the request attribute from on page to an other?
>
>
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-- 
Sent from my mobile device

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



How to pass HTTPRequest between two JSP ?

2010-02-28 Thread Frederik Minatchy
Hello...

Since a few days I am working with Struts 2. (2.1.6)
I am facing a big problem with HttpRequest and JSPs.

Well... I have to forward a HTTPRequest from page1.jsp to page2.jsp

So... How can I pass HTTPRequest attribute betwen 2 pages?

Here is a part my web.xml file :

...

struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


struts2
/*

...


the struts.xml file :

...


/pages/bnf/administration/detailBnf.jsp

 
 
 

/pages/bnf/administration/detailBnf.jsp

...

and a part of the action java file (which implementents RequestAware):

  public String execute() throws Exception
   {
  request.put("test", 58);
  return SUCCESS;
}
 
   public String modificationSubmit() throws TechniqueException, 
FonctionnelleException
   {
  request.get("test"); // is null
  editMode = true;
  return SUCCESS;
   }
 


So... How can I pass the request attribute from on page to an other?





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



Re: facebook connect

2010-02-28 Thread Manos Batsis

Frans Thamura wrote:

hi all

anyone working with facebook connect, may be can share the code :)

sorry, in lazy mode on. to make my development faster


Someone posted an OS library for that recently, currently hosted on 
google code. Search the archives.


hth,

Manos

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



facebook connect

2010-02-28 Thread Frans Thamura
hi all

anyone working with facebook connect, may be can share the code :)

sorry, in lazy mode on. to make my development faster


-- 
Frans Thamura
Meruvian.
Experiential Tempation of Java and Enterprise OpenSource

Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK
yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma

Mobile: +6287885901958
Blog & Profile: http://frans.thamura.info

We provide services to migrate your apps to Java (web), in amazing fast and
reliable.