Hi All,
How can I detect that session has expired and so throw the user out of
system after showing him a message that Your session has expired. Please
login again.
Thanks,
BS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
When a session restarts, its context is empty, so all objects stored in
the session context have disappeared. To detect if a session has restarted,
you need first to store an object in the session context, then each time
you need to know if the session has restarted, you test its presence
Hi
In our current project we are using an adapted version of the LinkXTag
class provided with the struts example application. Check out this class
and I hope it is what you need.
Kind regards
Dennis Hunziker
-Original Message-
From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED]
I am facing this problem that I couldn't figure out the cause.
We have an web based application (built using struts 1.0).
After login to the application for the first time, if you relogin again
OR the session times out and you try to re login again
I have the following exception
Hi,
I have a need to define multiple Image Input Button within an Iterate tag and I am
experimenting with the use
of ImageButtonBean. I would like to know that having defined the ImageButtonBean, how
does one declare it
within the html:img tag. An example would be great.
Secondly, how does
Thomas,
You mean to say that I should put this logic in ActionClass. But then I
would need to put it in all my Action Classes. Can't I do something similar
in JSP because then I would do it in a common JSP which is included in all
other JSPs of mine. Or is there a common solution which can take
On Sun, 07 Dec 2003 12:39:46 +0530, Baljinder Singh wrote:
How can I detect that session has expired and so throw the user out of
system after showing him a message that Your session has expired. Please
login again.
javax.servlet.http.HttpSessionListener
Seems this is not supported by many containers yet(J2EE 1.4). You could use
a filter to check for session expiry but what if it expires after it passes
the filter. Then each JSP should have a check in the beginning.
Mohan
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of
The philosphy is that the Actions (controller) move bean properties
from form bean(s) into business beans, and pass the business bean into a
business object to perform an operation. I.e., the action should
contain all of (and only) the web-specific portion of the application.
I.e., the latter
Inheritance is your friend. If you need processing common to all your
Action classes, extend the Struts Action class.
Ed
- Original Message -
From: Baljinder Singh [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 5:41 AM
Subject: RE: How
HI
if u are using servelt 2.3 , then u can use servelt
filter, in this filter u can have logic to check
session before each request so u dont need to add any
code in jsp or action class
Ashish
--- Ed Dowgiallo [EMAIL PROTECTED] wrote:
Inheritance is your friend. If you need processing
common
Ashish,
Can you provide me with more details about how to use Servlet Filter ?
Thanks,
BS
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 9:15 PM
To: Struts Users Mailing List
Subject: Re: How to detect that session has expired ?
HI
You ought not to refer directly to any jsp pages anyway. Always refer
to an action which forwards to your jsp. Then you can put your JSPs
inside WEB-INF if you want (insures they can never be directly accessed)
and you never have to add any tag(s) to check for valid user.
As Ed points out,
Tks for the reply Tim.
I now see the advantages of my latter case.
But being my form bean a DynaActionForm, can I still use
BeanUtils.populate()??
If not, what would be the alternative?
Tks
Felipe
-Mensagem original-
De: Tim Lucia [mailto:[EMAIL PROTECTED]
Enviada em: domingo, 7 de
Hi,
there's the preview release available from
http://wwws.sun.com/software/products/jscreator/
now. Anybody here who had a closer look at it?
-- Chris.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
http://java.sun.com/products/servlet/Filters.html
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters-p2.html
http://securityfilter.sourceforge.net/
-Mensagem original-
De: Baljinder Singh [mailto:[EMAIL PROTECTED]
Enviada em: domingo, 7 de dezembro de 2003 13:16
Para: Struts
After 2 days of trying to figure it out, it decided to start working.
- Original Message -
From: [EMAIL PROTECTED]
Date: Sunday, December 7, 2003 1:05 am
Subject: Config help
I am using MappingDispatchAction and am attempting to pre-populate
a DynaValidatorForm in a setup action.
Shakti,
I suggest you visit http://support.bea.com
http://support.bea.com/ and do a search, use google.com, or buy the BEA
WebLogic Server Bible. Perhaps javaranch.com could be helpful here.
You have all the information you need to get it working, at the
moment, with
Hi,
I am using Tile, and getting the error
javax.servlet.ServletException:
org/apache/jsp/Registration_jsp (wrong name:
org/apache/jsp/registration_jsp)
I found one solution in one web site, said:
Remove the cached JSP's and restart.
But how to Remove the cached JSP's? please help, thank
you
stop tomcat
start tomcat
-Martin
- Original Message -
From: Julia Weaver [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 4:49 PM
Subject: how to Remove the cached JSP's?
Hi,
I am using Tile, and getting the error
Is there any single utility method that returns a message resource just like
the RequestUtils.message() method, without having to use a PageContext
object? Assume all other Servlet-related objects are available
(HttpServletRequest, Response, etc).
Lukas
Martin-
Can you point me to the correct docs for how this works? I don't find
anything regarding using maps within beans this way.
Tx
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper
Sent: Friday, December 05, 2003 3:58 PM
To: [EMAIL PROTECTED]
a complete example on how to use this concept is located at
http://www.orionserver.com/tutorials/taglibs/8.html
viel Glueck,
Martin
- Original Message -
From: Joe Hertz [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 5:58 PM
Subject: RE:
What is cached JSP's? Please let me know.
thanks
-Original Message-
From: Julia Weaver [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 1:49 PM
To: Struts Users Mailing List
Subject: how to Remove the cached JSP's?
Hi,
I am using Tile, and getting the error
This example relates how to _implement_ things in your own taglibs. It
doesn't mention Maps at all (the part I'm being befuddled by). It's not
even specific to struts.
Actually, all I need is a reference on usage of the struts taglibs
beyond the foo.bar.baz example. I want to see how one can
My servlet has a String called 'category'. I want to
pass the String to a JSP. Therefore, I have the code
shown below in the servlet:
session.setAttribute( c, category );
OR
request.setAttribute( c, category );
And, I do the following in my JSP:
% String keyValue =
Remove the .java and .class file for that JSP from
%Tomcat_home%\work\Standalone\localhost\%virtualdirectory%
Although path depends upon the version of tomcat..you wont find exact path
as shown above but try to remove java n class from 'WORK' directory under
your tomcat installation.
Regards,
I want to pass two hidden fields; username and keyName
from a JSP via a SUBMIT button:
req:isUserInRole role=editor
html:form action=/find/Category
% String username = request.getRemoteUser();%
html:hidden property=keyName
value=journal_category/
html:hidden property=username
value=%=username%/
Are you using the input type=hidden or html:hidden attributes? I
didn't see it in your email.
If you do, the values will be available in the request.
Regards,
Richard
At 08:20 PM 12/7/2003, you wrote:
I want to pass two hidden fields; username and keyName
from a JSP via a SUBMIT button:
My code was shown in my original message. I used two
html:hidden ... tags to pass two hidden fields, one
is successfully passed while the other shows null. By
the way, I do not use 'request' to retrieve the value
of the hidden field because my Java class is a
scaffold.ProcessAction type. I
Hi All,
What is the best Hierarcy (framework) for handling exceptions in a
J2EE project.
I am thinking of some roughly the following Hierarcy consisting
broadly of three categories :
+ MyApplicationException extends Exception ( For
Hello,
How to add linefeeds to a property file within struts?
This thread
(http://forum.java.sun.com/thread.jsp?forum=31thread=400653)
says that we can add \n to a String.
However, if I put \n to a resource property line
e.g.
my.key = my value 1 \n my value 2
and then I use html:textarea tag
Good question, I'm thinking about the same sort of thing myself.
I usually find it easier to give each server side component its own
exception, and to throw all exceptions up to the client side with an
appropriate message or error code. Obviously, exceptions fatal to the system
have to be sent to
Make use of nested exceptions.
Higher layers 'wrap' exceptions caught from lower layers if they cant handle
them.
ummm... Ted explains it better than I do:
http://husted.com/struts/tips/015.html
-Original Message-
From: Nick Faiz [mailto:[EMAIL PROTECTED]
Sent: Monday, 8 December 2003
Hi Jim
Remove your second servlet mapping in your web.xml. I had the same problem.
I've defined two mappings:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameaction/servlet-name
hi, there,
has anybody tried to use SQL Maps framework with struts? i am now using
the struts with SQL Maps framework, all is convenient. i have tried to use
ActionForm instead of create a new javaBean passed to SQL Map parameter.
just like this:
AuthorForm authorForm = (AuthorForm)
Ricky,
You might have a problem using ibatis SQL Maps with Struts DynaForms. I
think that Ibatis is going to try and look for a method called
getAuthor_name() when it would need to use
DynaForm.get(author_name). You might try emailing
[EMAIL PROTECTED] to get a definitive answer.
-Richard
37 matches
Mail list logo