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
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
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_
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 ?
which is better to use ?
1)
[ OR ]
2) use of action dispatch
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
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
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
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
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
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
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
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
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
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
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
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?
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
18 matches
Mail list logo