All,
We're a Struts 1.1 shop using a weblogic container. Occasionally we see
that the struts controller re-initializes itself when we are performing
a (seemingly) unrelated Mbean call to refresh some cached system
properties. Here's the output struts produces when the init starts:
<--> <
I did the same, but extended the request processor, and did all my setup
there. I did this using Struts 1.24, possibly things have changed since
then. That way, each request that came through, I would check for
cookie, and if it did not exist create and move along.
Just throwing out another option
It does indeed... populates from JSON -or- XML, and provides output in
both formats.
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
That will be coming up next, I need the JSON result of other things and
didn't have time to do the whole result/interceptor thing, so this is
just the first part :)
thanks
musachy
Ian Roughley wrote:
Have you looked at http://issues.apache.org/struts/browse/WW-1330? It
might be a great compa
Have you looked at http://issues.apache.org/struts/browse/WW-1330? It
might be a great companion for your result type. I believe it allows an
action to be populated from a JSON request.
/Ian
Musachy Barroso wrote:
The JSON plugin has been added to the registry. Hosted here:
http://code.go
Thank you, Leon! In essence, you are confirming what I have been doing
until now. I don't have a "flag" as such, but it's similar to what you
suggest: I basically read the cookies and extract the relevant info that I
store in the session --- setAttribute(USER_PREFS, relevantInfoFromCookies).
F
It may sound weird, but will do the job perfectly:
At first request you read the cookies and put a flag into session,
that you already read them:
Action (best in a base action of course):
execute(HttpServlet req,
HttpSession session = req.getSession();
if (session.getAttribute(MY_COOKIE
I would like to read the cookies at the very beginning of a user's session,
in order (for example) to customize the presentation according to his
preferences from his previous sessions.
I imagine that overriding the sessionCreated() method of an
HttpSessionListener would be ideal for my purpose.
Struts 1 extension projects were an important part of Struts 1, as
they extended the framework into new, innovative areas that Struts 1
proper wasn't ready to head into. We embraced and formalized the
extension mechanism in Struts 2 by introducing plugins [1]. To make
it easier to search and le
The JSON plugin has been added to the registry. Hosted here:
http://code.google.com/p/jsonplugin/
regards
musachy
Ted Husted wrote:
On 1/8/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
Soon we will have a "json" result type,
that will take care of serializing the action to a json string for
From: Don Don [mailto:[EMAIL PROTECTED]
> Hum...its strange am looking to see if struts has got anything to do
> with it, or if setting a field to obtain the focus automatically when
> the form is loaded has any effect on how the rest of the fields deal
> with focus etc.
>
> Dave Newton <[EMAIL PR
Is anyone working on updating CE for S2?
We can't bring it into the ASF project, due the the LPGL issues, but
we could still set it up on Struts SourceForge and have at it --
unless there are other plans.
I'm also thinking of comitting the Spring JPetstore to Struts SF.
Clinton Begin did a Strut
Hum...its strange am looking to see if struts has got anything to do with it,
or if setting a field to obtain the focus automatically when the form is loaded
has any effect on how the rest of the fields deal with focus etc.
Dave Newton <[EMAIL PROTECTED]> wrote: From: Frank W. Zammetti [mailto
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> This is working for me just fine, IE 6 and 7 anyway.
Works for me too, IE 6 and 7.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
Guys,
I'd like to up this thread if you don't mind, cause I need this info very
urgently.
Am I correct in assuming that the Tiles servlet that could be found in
Struts 1.1
disappeared in a subsequent 1.2.x version ? If so, which one ?
Does this mean that without that Tiles servlet, I cannot use Ti
I see you guys were two posts ahead of me while I typed my last reply :)
On the same wavelength though.
If you just throw a simple alert(''); in the event handler instead, in the
fullblown Struts version, do you get the popup as expected? I'm grasping
at the same pack of straws Christopher is, j
Hmm, curious... I just tried the following:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
This is working for me just fine, IE 6 and 7 anyway. I also tried
changing onfocus to onFocus, and it still worked. I definitely would have
been with Christopher in thinking doctype was the culpr
Hi I noticed it working in an html only environment (i.e. not struts) when
struts is applied it fails to work still only in IE
Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED
MESSAGE-
Hash: SHA1
Don,
Don Don wrote:
> in IE (all versions from 5 to 7) this just does not
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Don,
Don Don wrote:
> in IE (all versions from 5 to 7) this just does not work.
I tried this exact file in MSIE 6.0.2900.2180 and it works just fine
(after you tell MSIE that it's okay to run scripts from a file you
grabbed off your own disk):
http:
Hi guys here's what am tryin to do
in IE (all versions from 5 to 7) this just does not work. Maybe as Chris said
it has to do with the doc type, here's the doctype am using http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
What could be wrong ?
"Frank W. Zammetti" <[EMAIL PROTECTED]> wr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Frank,
Frank W. Zammetti wrote:
> In which version of IE do you observe this behavior? I just verified in
> IE 5.5, 6 and 7 that onfocus with a lower-case 'f' works just fine.
Just out of curiosity, what DOCTYPE were you guys using? I know that
XHT
Hi all here is a link to a very good struts resource wiki for those of us
wanting links to resources etc. am sure most of you will have seen it already.
http://wiki.apache.org/struts/FrontPage
-
Have a burning question? Go to Yahoo! Answers and get answers from
Hi Don,
In which version of IE do you observe this behavior? I just verified in
IE 5.5, 6 and 7 that onfocus with a lower-case 'f' works just fine.
AFAIK, case does not matter to any browser with event handler names,
whether Struts is involved or not... any chance the problem your seeing is
caus
I believe what you need to do is start your tomcat service as a
tomcat-user who specifically has access to the file server.
-Original Message-
From: Priya Khanna [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 1:39 AM
To: user@struts.apache.org
Subject: Accessing files from fi
Hi all,
I've noticed an issue with the above versions of struts and the javascript
onfocus function when using IE. Struts uses the function in lower case (e.g.
"onfocus()") and even renders the generated code in lower case as well, IE on
the other hand requires the function to be in this f
The best idea is to keep an eye on the dev list. Absolutely all the
development decisions and planning are done on the dev list, to which
anyone can subscribe.
* http://mail-archive.com/dev%40struts.apache.org/
-T.
On 1/6/07, Nagraj Rao <[EMAIL PROTECTED]> wrote:
Thanks Ted,
Please dont take
That's true, I was thinking about it yesterday, I will roll it into a
plugin today.
musachy
Ted Husted wrote:
On 1/8/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
Soon we will have a "json" result type,
that will take care of serializing the action to a json string for you.
Why wait? Someo
As I know, it's possible...
As you have mentioned I suppose you are using hyperlinks to initiate those
Actions. So that you can prepare your action URL's as to initiate relevant
actions.
Thanks & Regards,
Mano
-Original Message-
From: Krishna, Hari (FTT-CInternet) [mailto:[EMAIL PROTECTED
On 1/8/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
Soon we will have a "json" result type,
that will take care of serializing the action to a json string for you.
Why wait? Someone could convert WW-1604 and WW- 1330 to a plugin, post
it to the registry, and people could start using it today.
Fabien COPPENS ha scritto:
Hi.
Will Tiles 2 be backwards compatible with webapps
developed using Tiles 1.x ?
No, but it can (pretty) easily converted:
http://struts.apache.org/struts-sandbox/tiles/faq.html
(sorry with the problems with the characters, and sorry for the missing
part of DTD).
Hi.
Will Tiles 2 be backwards compatible with webapps
developed using Tiles 1.x ?
Fabien
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intende
Hi all.
I'm currently designing a webapp based on JSF 1.1 and I want to use Tiles,
but not the Struts controller or Actions. So far I've been able to do this
with Struts 1.1 since that release contains an independent Tiles servlet.
I had a look at Struts 1.3.5 and couldn't find the equivalent. Doe
Hi
> i have a jsp where i put 2 forms and 2 actions which belong to two action
> classes.But i am getting does not contain specified
> method:java.lang.NoSuchMethodException:
>
> Is it possible in one jsp to have 2 different actions and making switch over
> based on the hyperlink we are clicking?
Hi All,
In struts 2 if we can have some prefixed methods that can be call
automaticaly following a convertion.
If we have a method name save,
the methods prepareSave, prepareDoSave, validateSave and
validateDoSave will be called before the method save...
Is there some convetion
I've looked on the net for a solution, but I couldn't find one.
The problem is, I want to use an image as a button. I've used a simple
solution with the -tag and thus far, it worked fine. But in
Firefox we've encountered a problem with the reset button. There's a
html-form, with two "but
Hi
i have a jsp where i put 2 forms and 2 actions which belong to two action
classes.But i am getting does not contain specified
method:java.lang.NoSuchMethodException:
Is it possible in one jsp to have 2 different actions and making switch over
based on the hyperlink we are clicking?
Regard
36 matches
Mail list logo