You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Rodrigo Reyes <ro...@instaservi.com> on 2003/02/17 18:46:30 UTC
Session problems...
I am having problems with sessions. I am storing some object references in
my session, but they dissapear when I jump to a specific action. I send the
contents of the session to catalina.out as soon as the action starts, so
there is very little possibility (0.000001%) of overwritting or deleting the
reference. Still, the session is there but it no longer contains the
references I stored. Any idea what is going on? The session doesn't seem to
be invalid since it is not throwing any exceptions when asked for
attributes. Thanx
Rodrigo
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: getByPosition()
Posted by pavel <pa...@icecentric.com>.
Thank you for reply Fabio. This question is related to Torque. I am
trying to get a a field from the object by position as specified in a
database schema. The method is in a class BaseObject and needs to be
implemented. The way I have implemented this method is that I used
switch and am returning the field based on the position. There is
definitely a better way to do it. Thank you.
pavel kusch
Fabio Daprile wrote:
> Hello,
>
> i think this is a little bit generic question.
> Can you specify a little bit more..
>
> greetings
>
> Fabio
>
>
> pavel wrote:
>
>> Hello,
>>
>> Please could you tell me what is the best way to implement a method
>> public Object getByPosition(int pos)?
>>
>> Thank you in advance.
>>
>> Pavel Kusch
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: getByPosition()
Posted by Fabio Daprile <fa...@wuerth-phoenix.com>.
Hello,
i think this is a little bit generic question.
Can you specify a little bit more..
greetings
Fabio
pavel wrote:
> Hello,
>
> Please could you tell me what is the best way to implement a method
> public Object getByPosition(int pos)?
>
> Thank you in advance.
>
> Pavel Kusch
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
--
************************************
Würth Phoenix S.r.l.
Fabio Daprile
Via Kravogl 4
I-39100 Bolzano
Phone: +39 0471 564111 (direct 564066)
Fax: +39 0471 564122
mailto:fabio.daprile@wuerth-phoenix.com
http:// www.wuerth-phoenix.com
*************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: getByPosition()
Posted by pavel <pa...@icecentric.com>.
Please, disregard this email, it belongs to Torque, and anyway it is not
detailed enough.
Thank you.
pavel wrote:
> Hello,
>
> Please could you tell me what is the best way to implement a method
> public Object getByPosition(int pos)?
>
> Thank you in advance.
>
> Pavel Kusch
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
getByPosition()
Posted by pavel <pa...@icecentric.com>.
Hello,
Please could you tell me what is the best way to implement a method
public Object getByPosition(int pos)?
Thank you in advance.
Pavel Kusch
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Session problems...
Posted by peter riegersperger <ri...@subnet.at>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 19 February 2003 20:40, Rodrigo Reyes wrote:
[...]
> By the way, when we don't use the JSP we use the following URL:
> /instaservi/servlet/instaservi. Seems to me that the problem is around the
> changes on the URL's from /servlet/instaservi to
> /instaservi/servlet/instaservi. Could that be?
sounds a bit like a problem i had with tomcats session management.
have you mapped instaservi to "/" ?
/myApp/Servlet
and
/Servlet
may point to the same servlet, but are considered two different "locations"
for tomcat (and probably other servlet containers as well, but i just know
tomcat).
take a look at the session cookie you get from the server. probably the path
for the cookie is set to "/", in which case it is not used by the browser for
accessing "/instaservi"
rick
- --
|-
| peter riegersperger <ri...@subnet.at>
|-
| ein windows switcher tagebuch:
| http://forum.subnet.at/viewforum.php?f=22
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+VKhIIMP39JYOy9IRAvNoAKCYZhiD0znMqlmKN6Zcy0OYW4/VCgCeL9cy
PDoGnLlDii4RJ6Qw2TeNtQE=
=HyFQ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Session problems...
Posted by Rodrigo Reyes <ro...@instaservi.com>.
Eric
I know what is happening with this action now. I still don't know why,
but now I what is happening. We had a index.jsp on the server root which
redirected to the login screen. When we used that JSP, the information of
the session got lost. So we are not using it right now and everything seems
to be working fine. I am going to include here the JSP code, since it is
very small. Let me know if you find anything unusual.
<%
RequestDispatcher dispatcher =
request.getRequestDispatcher("/servlet/instaservi");
if (dispatcher != null)
{
try
{ dispatcher.forward(request, response);
}catch (Exception e) {e.printStackTrace();}
}
%>
By the way, when we don't use the JSP we use the following URL:
/instaservi/servlet/instaservi. Seems to me that the problem is around the
changes on the URL's from /servlet/instaservi to
/instaservi/servlet/instaservi. Could that be?
Rodrigo
----- Original Message -----
From: "Eric Emminger" <er...@ericemminger.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Wednesday, February 19, 2003 2:30 PM
Subject: Re: Session problems...
> Rodrigo
>
> > I am having problems with sessions. I am storing some object references
in
> > my session, but they dissapear when I jump to a specific action. I send
the
>
> Are you storing them directly in the HTTPSession in the Servlet API, or
> in a Turbine way like data.getUser().setTemp()?
>
> > contents of the session to catalina.out as soon as the action starts, so
> > there is very little possibility (0.000001%) of overwritting or deleting
the
> > reference. Still, the session is there but it no longer contains the
> > references I stored. Any idea what is going on? The session doesn't seem
to
> > be invalid since it is not throwing any exceptions when asked for
> > attributes. Thanx
>
> Why just this specific action? Is it special in some way? Are you doing
> something different with authentication/authorization? Send more info.
>
> Eric
>
> --
> Eric Emminger
> eric@ericemminger.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Session problems...
Posted by Eric Emminger <er...@ericemminger.com>.
Rodrigo
> I am having problems with sessions. I am storing some object references in
> my session, but they dissapear when I jump to a specific action. I send the
Are you storing them directly in the HTTPSession in the Servlet API, or
in a Turbine way like data.getUser().setTemp()?
> contents of the session to catalina.out as soon as the action starts, so
> there is very little possibility (0.000001%) of overwritting or deleting the
> reference. Still, the session is there but it no longer contains the
> references I stored. Any idea what is going on? The session doesn't seem to
> be invalid since it is not throwing any exceptions when asked for
> attributes. Thanx
Why just this specific action? Is it special in some way? Are you doing
something different with authentication/authorization? Send more info.
Eric
--
Eric Emminger
eric@ericemminger.com
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org