RE: Question about session time-out using Listener

2006-09-24 Thread Strachan, Paul
perhaps use a servlet filter to do this - you can simply map the filter to whatever urls you wish to apply rather than remembering to include some code in each and every jsp/action class etc e.g. in your doFilter(ServletRequest, ServletResponse, FilterChain) method: 1. HttpSession session = reque

Re: actiondispatch or javascript

2006-09-24 Thread Li
as both do the same job, i will use actiondispatcher, javascript can be disabled or hacked On 9/25/06, Paul Benedict <[EMAIL PROTECTED]> wrote: Use EventActionDispatcher or EventDispatchAction part of Struts 1.2.9+ http://struts.apache.org/1.2.x/api/org/apache/struts/actions/EventActionDispat

Re: Question about session time-out using Listener

2006-09-24 Thread Li
Simply you should: 1. a. create a tag handler "MyTagHandler" by extending " javax.servlet.jsp.tagext.TagSupport" b.create two method : "doStartTag", "doEndTag" c. in "doEndtag(return type int)" you should get "HttpSession" object, if you session object is not null, return "(EVAL_

Re: actiondispatch or javascript

2006-09-24 Thread Paul Benedict
Use EventActionDispatcher or EventDispatchAction part of Struts 1.2.9+ http://struts.apache.org/1.2.x/api/org/apache/struts/actions/EventActionDispatcher.html http://struts.apache.org/1.2.x/api/org/apache/struts/actions/EventDispatchAction.html Paul Tom Jerry wrote: which is better to use ?

actiondispatch or javascript

2006-09-24 Thread Tom Jerry
which is better to use ? 1) [ OR ] 2) use of action dispatch

Re: Question about session time-out using Listener

2006-09-24 Thread mosho
do you have any example to do this? Thanks. Li-3 wrote: > > you can create a taghandler, much simpler and flexible > > On 9/25/06, mosho <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi All, >> >> When session times out I want to forward a request to another page.Is it >> possible to do it with HttpSe

Re: Question about session time-out using Listener

2006-09-24 Thread Li
you can create a taghandler, much simpler and flexible On 9/25/06, mosho <[EMAIL PROTECTED]> wrote: Hi All, When session times out I want to forward a request to another page.Is it possible to do it with HttpSessionListener? How can I get response object so that I can redirect to another pag

Question about session time-out using Listener

2006-09-24 Thread mosho
Hi All, When session times out I want to forward a request to another page.Is it possible to do it with HttpSessionListener? How can I get response object so that I can redirect to another page? Thanks for your help! -- View this message in context: http://www.nabble.com/Question-about-sess

Re: Choosing a Struts-ish framework

2006-09-24 Thread Li
Hi, WW is doing integration work with Struts. WW has more features, their intercepters are powerful. For starting new project, it's up to you. I am currently moving from struts to ww, I dont have any problem. So if you wanna try Struts now and later move to WW, it should be no problem. Or you ca

Choosing a Struts-ish framework

2006-09-24 Thread Henri Yandell
Does anybody have any thoughts on whether somebody starting a new project should use WebWork or Struts 1.x? Any feel for what the upgrade pain will be from each one to Struts 2.0? From what I understand, WW is going to be the much simpler upgrade, but I'm wondering how simple. Also how is the W

RE: what version is best..

2006-09-24 Thread rajeshKota
Hi Maya, Some time it does matters, but most of the application will def., be compatable. For tomcat 5.5 and jvm 1.4, 1.2.9 is the best and you can find lot of books in the net for 1.2.9 struts version. Regards, Rajesh.Kota -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behal

Re: what version is best..

2006-09-24 Thread Frank W. Zammetti
If your main concern is books, then 1.1 is probably your best bet. 1.1 also happens to be in all likelyhood the most-used version even now. Paul is right, 1.3.5 does offer a lot, but you won't find any books on it yet, or even tutorials at this point, so most of what it offers above 1.1 you'll

Re: what version is best..

2006-09-24 Thread Paul Benedict
Go with 1.3.5. It's the best yet and works wonderfully. maya wrote: hi, I started a new job recently where they use struts/tiles for everything, I had never used this technique before and would like to learn it well.. when I go to http://struts.apache.org/downloads.html I see versions 1.0.1

what version is best..

2006-09-24 Thread maya
hi, I started a new job recently where they use struts/tiles for everything, I had never used this technique before and would like to learn it well.. when I go to http://struts.apache.org/downloads.html I see versions 1.0.1, 1.2.9, & 1.3.5.. but all books I have checked out online don't cov

Re: Sort of OT

2006-09-24 Thread Jerome Gagner
It's probably because you're using an rt tag (ignores EL I believe) . On 9/24/06, Monkeyden <[EMAIL PROTECTED]> wrote: Nevermind. As it turns out, it works with a nested tag, but not inline. I'm pretty sure this has something to do with the way struts exposes variables vs. the way JSTL does

Re: Sort of OT

2006-09-24 Thread Monkeyden
Nevermind. As it turns out, it works with a nested tag, but not inline. I'm pretty sure this has something to do with the way struts exposes variables vs. the way JSTL does it. On 9/24/06, Monkeyden <[EMAIL PROTECTED]> wrote: Using Struts 1.2.9, Tomcat 4, tag as such: Getting "I

Sort of OT

2006-09-24 Thread Monkeyden
Using Struts 1.2.9, Tomcat 4, tag as such: Getting "In , value attribute can not be parsed into java.lang.Number: "${result.avgPoints}" "avgPoints" is a Float in the object. Any ideas?

Re: Get real path of an action

2006-09-24 Thread Martin Gainty
apparently retrieveURL is a JavaScript function which passes data to Ajax XMLHTTP when onRequestStateChange event happens http://today.java.net/pub/a/today/2005/10/27/sprinkle-ajax-magic-into-struts-webapp.html?page=2 M- * This e