You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Vladimir Coutinho <vl...@gmail.com> on 2006/02/01 13:40:52 UTC
Integration of jsp and jsf
How to use in a jsf page a session object created in a jsp page?
--
Vladimir M Coutinho
Re: Integration of jsp and jsf
Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi Vladimir,
maybe i don't understand what you want!
Would you say that the following did not work on your system?
-------------Begin JSP code----------------------------------
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%
session.setAttribute("test", "TestString in session");
%>
<f:view>
<html>
<body>
<h1>
<h:outputText value="#{test}"/>
</h1>
</body>
</html>
</f:view>
-------------End JSP code----------------------------------
Regards,
Volker
Vladimir Coutinho wrote:
> How do I put the object disponible to JSF? I tried to put the object in
> the session, but I could not access in JSF like other JSF beans.
>
> On 2/2/06, *Pierpaolo Follia * <pierpaolo.follia@wavegroup.it
> <ma...@wavegroup.it>> wrote:
>
> You can get the object from the facescontext using
> FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("YOUR_OBJECT")
>
> bye
>
>
> Vladimir Coutinho wrote:
>
>> There is a way to put this object disponible in facescontext?
>>
>> On 2/1/06, *Pierpaolo Follia* <pierpaolo.follia@wavegroup.it
>> <ma...@wavegroup.it>> wrote:
>>
>> use an expression like
>> #{sessionScope.YOUR_OBJECT_HERE.YOUR_PROPERTY_HERE}
>>
>> bye
>>
>> Vladimir Coutinho wrote:
>>> How to use in a jsf page a session object created in a jsp page?
>>>
>>>
>>> --
>>> Vladimir M Coutinho
>>
>> --
>> Pierpaolo Follia
>> Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
>> Telefono: +39 030 687561
>> Fax: +39 030 6875690
>>
>>
>>
>>
>> --
>> Vladimir M Coutinho
>
>
> --
> Pierpaolo Follia
> Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
> Telefono: +39 030 687561
> Fax: +39 030 6875690
>
>
>
>
> --
> Vladimir M Coutinho
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.
Re: Integration of jsp and jsf
Posted by Vladimir Coutinho <vl...@gmail.com>.
How do I put the object disponible to JSF? I tried to put the object in the
session, but I could not access in JSF like other JSF beans.
On 2/2/06, Pierpaolo Follia <pi...@wavegroup.it> wrote:
>
> You can get the object from the facescontext using
> FacesContext.getCurrentInstance
> ().getExternalContext().getSessionMap().get("YOUR_OBJECT")
>
> bye
>
> Vladimir Coutinho wrote:
>
> There is a way to put this object disponible in facescontext?
>
> On 2/1/06, Pierpaolo Follia <pi...@wavegroup.it> wrote:
> >
> > use an expression like #{
> > sessionScope.YOUR_OBJECT_HERE.YOUR_PROPERTY_HERE}
> >
> > bye
> >
> > Vladimir Coutinho wrote:
> > > How to use in a jsf page a session object created in a jsp page?
> > >
> > >
> > > --
> > > Vladimir M Coutinho
> >
> > --
> > Pierpaolo Follia
> > Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
> > Telefono: +39 030 687561
> > Fax: +39 030 6875690
> >
> >
>
>
> --
> Vladimir M Coutinho
>
>
> --
> Pierpaolo Follia
> Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
> Telefono: +39 030 687561
> Fax: +39 030 6875690
>
>
--
Vladimir M Coutinho
Re: Integration of jsp and jsf
Posted by Pierpaolo Follia <pi...@wavegroup.it>.
You can get the object from the facescontext using
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("YOUR_OBJECT")
bye
Vladimir Coutinho wrote:
> There is a way to put this object disponible in facescontext?
>
> On 2/1/06, *Pierpaolo Follia* <pierpaolo.follia@wavegroup.it
> <ma...@wavegroup.it>> wrote:
>
> use an expression like
> #{sessionScope.YOUR_OBJECT_HERE.YOUR_PROPERTY_HERE}
>
> bye
>
> Vladimir Coutinho wrote:
> > How to use in a jsf page a session object created in a jsp page?
> >
> >
> > --
> > Vladimir M Coutinho
>
> --
> Pierpaolo Follia
> Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
> Telefono: +39 030 687561
> Fax: +39 030 6875690
>
>
>
>
> --
> Vladimir M Coutinho
--
Pierpaolo Follia
Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
Telefono: +39 030 687561
Fax: +39 030 6875690
Re: Integration of jsp and jsf
Posted by Vladimir Coutinho <vl...@gmail.com>.
There is a way to put this object disponible in facescontext?
On 2/1/06, Pierpaolo Follia <pi...@wavegroup.it> wrote:
>
> use an expression like #{sessionScope.YOUR_OBJECT_HERE.YOUR_PROPERTY_HERE}
>
> bye
>
> Vladimir Coutinho wrote:
> > How to use in a jsf page a session object created in a jsp page?
> >
> >
> > --
> > Vladimir M Coutinho
>
> --
> Pierpaolo Follia
> Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
> Telefono: +39 030 687561
> Fax: +39 030 6875690
>
>
--
Vladimir M Coutinho
Re: Integration of jsp and jsf
Posted by Pierpaolo Follia <pi...@wavegroup.it>.
use an expression like #{sessionScope.YOUR_OBJECT_HERE.YOUR_PROPERTY_HERE}
bye
Vladimir Coutinho wrote:
> How to use in a jsf page a session object created in a jsp page?
>
>
> --
> Vladimir M Coutinho
--
Pierpaolo Follia
Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
Telefono: +39 030 687561
Fax: +39 030 6875690