I use the SessionAware interface to retrieve a Map of the session. Then to
invalidate the Session, I do this:
if (session instanceof
org.apache.struts2.dispatcher.SessionMap) {
// it is possible that the session will have timed-out
between the
--- Ray Clough [EMAIL PROTECTED] wrote:
Then to invalidate the Session, I do this [code]
Oh, I had no idea! If you have wiki karma maybe add a
FAQ entry, otherwise with your permission I'll do it.
d.
Please go ahead.
- Original Message -
From: Dave Newton [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: [S2] Session Invalidation through SessionAware interface
Date: Sun, 1 Jul 2007 10:47:18 -0700 (PDT)
--- Ray Clough [EMAIL PROTECTED] wrote:
Wouldn't it be cleaner if
(1) the setSession(Map session) signature of SessionAware was changed to
setSession(SessionMap session) and
(2) the implementation of the invalidate method on internally took care of
dealing with already timed out sessions? (if one really wanted to know if
the session
Hi,
I have one classic HttpServlet for dynamically rendering an image from given
(database retrieved) data. Actually this servlet takes data from session
(previously retrieved from database and put inside session) and renders the
image. Since this is not Action but classis servlet it is
Before anything try model driven interface if you are
not doing any portlet developments.
Thanks,
--- [EMAIL PROTECTED] wrote:
Hi All,
As there is no concept of Action form beans in
struts 2.0 we have to define
the field attributes in the Action class.
I am using the same action class
I did further investigation,
I think this is a bug, I think this is a very scary
bug.
You dont need three iterators, I could reproduce this
very easily,
In your action class have the following,
String[] testArray = new String[5];
testArray[0]=test0;
Yes this definitely is a bug to me,
How can I make a JIRA issue for this, what is the URL,
I Dont think we can go to production with this issue,
Is there a way to get a patch for this,
Should we have to wait for the next release ?
Thanks,
--- Dave Newton [EMAIL PROTECTED] wrote:
--- tom
Hi,
What did you mean by
is an issue iff you're
using an id
What else can I use to get the value inside an
Iterator?
Thanks
--- Dave Newton [EMAIL PROTECTED] wrote:
--- tom tom [EMAIL PROTECTED] wrote:
WHAT it prints is following Issue is for the 4th
index also it prints test, it
--- tom tom [EMAIL PROTECTED] wrote:
What did you mean by
is an issue iff you're using an id
What else can I use to get the value inside an
Iterator?
Stack notation, like [0].foo etc. It's a kludgy
workaround for this situation but it should work.
d.
index is variable, without introducting a scriptlet
with int i=0 and the have i++, Is there any other
inbuild way?
Thanks
--- Dave Newton [EMAIL PROTECTED] wrote:
--- tom tom [EMAIL PROTECTED] wrote:
What did you mean by
is an issue iff you're using an id
What else can I use to
What?
[n] accessing the stack at the given level: [0] is the
root, [1] is the previously-pushed item, etc.
s:iterator...
s:iterator...
s:property value=[0]/ %-- inner it. value
--%
s:property vlaue=[1]/ %-- outer it. value
--%
/...
(AFAIK, anyway; can't test at the moment.)
d.
---
Have you tried this?
s:iterator value=#session.testArray
Value of the arry is
s:property /
br
/s:iterator
tom tom wrote:
I did further investigation,
I think this is a bug, I think this is a very scary
bug.
You dont need three iterators, I could reproduce this
very easily,
In your
hai,
when trying to open my jsp page in browser i get this error. can anyone
plas help me.
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException:
check your struts jar file see if the tag handler classes there ...
On 7/2/07, bindhu [EMAIL PROTECTED] wrote:
hai,
when trying to open my jsp page in browser i get this error. can
anyone
plas help me.
type Exception report
message
description The server encountered an internal error
Hai Bindhu,
This org.apache.struts.taglib.html.FormTag is in struts core jar file..
Check if this jar and all its dependents exist in your web-inf/lib..
Kiran
bindhu wrote:
hai,
when trying to open my jsp page in browser i get this error. can
anyone plas help me.
type Exception
hi kiran,
thank u for ut reply. i have all the dependencies in my WEB-INF\lib
directory. struts-trmplate, struts-logic, struts-form, struts-bean, struts.
still i face thsi same error.
and my class path is as follows
CLASSPATH=C:\apache-tomcat-6.0.13\lib\servlet-api.jar;C:\Program
Thanks,
As I mentioned earlier, I need to have id,
because I got if statements and logic inside, it is
not merely diplaying the value.
This bug needs to be fixed.
Till then be carefull
--- Adam Ruggles [EMAIL PROTECTED] wrote:
Have you tried this?
s:iterator value=#session.testArray
18 matches
Mail list logo