>>I would solve it by adding a 1 minute refresh in a hidden frame in your page
>>to a action which just delivers next refresh header. As long as the user has
>>the page open, the session will never expire. After he closes the browser,
>>the session expires normally.
I think this is the simplest s
On Apr 6, 2005, at 9:55 PM, Frank W. Zammetti wrote:
Looks interesting! I'm going to have to look at this in much more
detail first chance I get. One question... I saw this comment on the
overview...
"For reasons cited by many, JSF has fallen short of our needs and we
were disappointed to see
Looks interesting! I'm going to have to look at this in much more
detail first chance I get. One question... I saw this comment on the
overview...
"For reasons cited by many, JSF has fallen short of our needs and we
were disappointed to see Struts choose JSF as its basis going forward."
What
We are pleased to announce the 0.6 release of the Simple Web Framework
(SWF), including a standalone port of the IPU/Ajax capabilities to
Struts. Now you can IPU enable Struts for a richer user experience.
(The port will also work with other similar Web application frameworks,
though not JSF.)
Was wondering if anyone has successfully loaded JPetStore Demo into
JBuilder 2005. After trying and compiling not all the classes were
compiled
Struts
JBuilder
JDK 1.5
Tomcat 5
iBatis DAO
iBatis SQLMapper
-
To unsubscribe, e-ma
I started setting up this page just to show a few examples of the
and tags in response to a question on this
list. Got a bit carried away and wrote a bit of an essay. Its been updated
since I posted the link in response to someone, so here it is again.
http://www.niallp.pwp.blueyonder.co.uk/Help
Here's a better mask to use:
mask
^\$?\d+(,\d{3})*(\.\d{2})?$
This mask:
--allows (but does not require) a leading dollar sign (if you want to remove
this feature, get rid of the "\$?" at the beginning (but leave the "^")
--allows (but does not require) a decimal point + 2 trailing dig
I'm useless with regex. However, I found this on the web some time
ago and seemed to match what I needed back then:
mask
^(?:\d+|\d{1,3}(?:,\d{3})*)(?:\.\d{1,2}){0,1}$
This allows them to include the ".00" if they so desire.
hth,
Hubert
On Apr 6, 2005 5:08 PM, Wendy Smoak <[EMAIL PRO
I have a form with a required "amount". The users like to enter things like
$50k which thoroughly confuses the system that tries to send a different
email if the amount is over or under $25,000. I think I can make them stop
entering dollar signs and letters... but I don't think they'll part with
Hooray, I found it, thanks to Allen and Niall.
Messages:
Since it was finding messages present when it should, but wasn't finding
the messages themselves, it should have dawned on me that if
logic:messagesPrese
James,
Does your JDBCResources differ greatly from the one that is in
Commons-resources already? (I'm trying to remember which version of CR I
checked out but I cant heh) i.e. does it take advantage of any container
connection pooling etc? The one I see in cr basically does a connection
to the db
- Original Message -
From: "Fogleson, Allen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" ;
<[EMAIL PROTECTED]>
Sent: Wednesday, April 06, 2005 2:40 PM
Subject: RE: RESEND: RE: Load message resources from DB???
Yes there is the OJBMessageResource class and I believe the same autho
Michael,
Are you capturing exceptions in the jsp? (i.e. do you wrap a giant try
catch block or something?) I ask this because it must be finding the
message since if a key is not found you should get an exception along
the lines of "Cannot find message resource for key " (I cant
remember the e
Thanks,
But ARG That wasn't it. I changed the
however I am still not displaying any messages not even the ???null???
there are also no exceptions in the log.
Is there some other package I can add a logger for that might yield a
hint as to what's going on?
Michael Oliver
CTO
Alarius System
Yes there is the OJBMessageResource class and I believe the same author wrote a
HibernateMessageResource class. The class I wrote is mostly a
"JNDIJDBCMessageResource" which has a timeout cache attached to it. The config
is comprised of three elements (comma separated)
1) The JNDI Name of the d
Ramaiah, Sunil wrote:
function displayRemovePackageMessage( )
{
returnValue = confirm("You are about to permanently
remove this package.");
if( returnValue == true )
{
alert(document.forms[0].name.value);
document.for
I am trying to debug why I cannot get ActionMessages to display.
I have set my struts-config.xml as follows:
AJDocManResources.properties is located in:
/WEB-INF/classes/AJDocManResources.properties
My log shows:
656 INFO [main] util.PropertyMessageResources - Initializing,
config='AJDocM
If you want the page to do refreshes while waiting for the operation to
complete, why not implement a progress bar?
http://www.onjava.com/pub/a/onjava/2003/06/11/jsp_progressbars.html
Here, each time the page refreshes, a progress bar is updated, showing the
user how the long-running operation is
I got the answer.
I was using "submit" as the property value.
Changed it to something else and it works
-Original Message-
From: Ramaiah, Sunil [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 11:16 AM
To: user@struts.apache.org
Subject: Javascript with gives document.for
Niall Pemberton wrote:
I just committed a new feature (available now in the nightly build, coming
soon in 1.2.7 hopefully) where you can specify a message directly, so you
don't actually need message resources in the JSP. I don't know if that helps
you or not?
Yes; that's it exactly; a pint on m
The problem is with how you've configured your messages resources. Because
you've specified a key your message resources are not being stored under the
"default" messages resources key. There being stored under the bundle key
"ApplicationResources". You just need to remove that (and the id, its
unn
Actually, this is similar to something that happens when I do my online
banking at www.bmo.com
Their page has a timer in it that creates a popup notifying you that the
session is about to expire. If you click the button in the popup, the page
does a refresh and resets the timer.
Wiebe
-Origi
Perhaps a different approach can be used for processes that are time
consuming.
Some form of batch process.
The user can submit a request... this is queued... and then processed by a
DB trigger (as an example).
The results of the processing is stored and the user can view the status
of their req
Hi I have a Java Script code like this -
function displayRemovePackageMessage( )
{
returnValue = confirm("You are about to permanently
remove this package.");
if( returnValue == true )
{
alert(document.forms[0].name.value);
I just committed a new feature (available now in the nightly build, coming
soon in 1.2.7 hopefully) where you can specify a message directly, so you
don't actually need message resources in the JSP. I don't know if that helps
you or not?
You simply construct an ActionMessage with the actual messag
I would solve it by adding a 1 minute refresh in a hidden frame in your page
to a action which just delivers next refresh header. As long as the user has
the page open, the session will never expire. After he closes the browser,
the session expires normally.
Regards
Leon
> -Ursprüngliche Nach
I would solve it by adding a 1 minute refresh in a hidden frame in your page
to a action which just delivers next refresh header. As long as the user has
the page open, the session will never expire. After he closes the browser,
the session expires normally.
Regards
Leon
> -Ursprüngliche Nach
If you are using a Servlet 2.3 container, J2EE provides a
HttpSessionListener class
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession
Listener.html
But it is only for listening; not altering the event's state. If you are
using Tomcat, perhaps you could write some intern
Is it possible to create a listener for the session timeout event? This
listener would check to see if there is an operation in progress. If there
is, reset the timeout counter. If not, let the session expire.
Wiebe
-Original Message-
From: Justin Morgan [mailto:[EMAIL PROTECTED]
Sent: W
Ah. It's good to trim element values, but probably not attribute
values. Does this happen anywhere else?
> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 05, 2005 3:50 PM
> To: Struts Users Mailing List
> Subject: Re: 'value' attribute behav
From: "Wendy Smoak" <[EMAIL PROTECTED]>
> Thanks Nic and David for confirming that I'm not [necessarily] crazy. I
do
> think it's the JavaScript, and will check that next.
And the answer turned out to be a Filter that called chain.doFilter(...)
twice. JSwat (debugger) exposed the problem in a f
Simon MARTIN wrote the following on 4/6/2005 1:26 PM:
I've tried as you told be, but binding to the teacher's id does not work
either.
I'm not sure what you actually ended up trying to implement..
1) What are the pertinent fields in your ActionForm (do you just have
'student' in there, which is f
I think Eain is saying that he has some operations that take a long
time, and he wants to suspend the timeout counter during those
operations.
So suppose the timeout in web.xml is 5 minutes. One particular
operation takes 10 minutes to complete. Do not expire session.
However, if the user is id
Hi,
I've tried as you told be, but binding to the teacher's id does not work either.
It seems as if this part of the form was never populated, because neither the setter
of matTeacher nor the one of teacherId is ever called, as debugging through my
application
told me.
Any further ideas / full st
Niall Pemberton wrote:
I believe you should be able to do this already, since you can define
different factories for different bundles. So you could have your regular
standard properties files, but then define a DB bundle with your own factory
as well.
Something like this in the struts-config.xml..
Reading from the 'Jakarta Struts Cookbook' by Bill Siggelkow, he
discusses this problem. "You want to store all labels,messages, and
other static text in a database rather than a properties file, while
still being able to access the values using the bean:message tag"
If this is what you're look
I got the build working a couple of weeks ago - but I didn't pick up the
recent build changes until after I'd finished the changes I was doing last
night. So I haven't tried the very latest. I have to say though that I think
James has done a great job - after struggling with a few things initially
From: "Niall Pemberton" <[EMAIL PROTECTED]>
> Nightlies for 1.2.x are being created here...
> http://svn.apache.org/builds/struts/maven/STRUTS_1_2_BRANCH/
>
> ...but I think you'll need to wait till the next one to pick up that
change.
Great! I thought the only nightlies were for 1.3. :)
Speaki
I believe you should be able to do this already, since you can define
different factories for different bundles. So you could have your regular
standard properties files, but then define a DB bundle with your own factory
as well.
Something like this in the struts-config.xml
Then you use th
I am guessing in this instance you have not changed the variables I supplied
with the script with your actual form and select names.
var options = document.forms['formName'].elements['selectName'].options;
-Original Message-
From: Anja Friedrichsen [mailto:[EMAIL PROTECTED]
Sent: 06 Apri
Antonio:
That seems counterintuitive to me, but it worked.
Thanks for your help!
Neil
--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMC
Fogleson, Allen wrote:
I did a quick addition to the DB code to allow such things (but did not
check circularity.. the form where a child message includes a parent (or
itself).
Long story short is there any interest in this? I can have a quick patch
to the core source in bugzilla relatively quick
Still not displaying messages, here is what I have so far.
struts-config.xml entry:
...
...
The ApplicationResources.properties file is located at
/WEB-INF/classes/ApplicationResources.properties
it contains:
...
label.phone.number=Phone Number
label.welcome=Welcome back {0} {1}\!
mes
Ashish,
Assuming you have a limited set of changes (for instance set A adds
images 1,2,3 for user type X, setB adds 2,4,7 for user type y, etc) then
I would probably consider creating separate jsps that already have the
enhancements and use my forwards to forward to the correct jsp (along
with the
Nightlies for 1.2.x are being created here...
http://svn.apache.org/builds/struts/maven/STRUTS_1_2_BRANCH/
...but I think you'll need to wait till the next one to pick up that change.
You want the STRUTS_1_2_BRANCH branch if you're going to check it out and
build it yourself. A word of warning c
Niall
I personally agree with you. Its not something I would necessarily use.
It adds complexity to the message resource in my opinion since now one
must check for circularity, and what does one do if there is
circularity?
Secondly I'm not entirely sure the patch really belongs in struts since
i
Hello
My project is sort of screen scrpaer (web facing on
AS400)
In this i want to add some features which are not
available in green screen, like adding some graphics
on the fly by modifying the response generated by web
facing tool
Any guidance on doing so with speed, it will be for
every reques
Its not something I would want and it sounds like its over-complicating the
situation.
You may want to see if there is any interest from any of the other
committers before going to the trouble of coding something. It can be
frustrating to bother to submit patches and then have them ignored - eithe
My code for this (written probably five years ago) looks very similar, but
maybe two versions would help...
function locateDDValue(drop_down, find_me) {
found_it = false;
for (i = 0; (i < drop_down.length) && !found_it; i++) {
if (drop_down.options[i].value == find_me) {
found_it = true;
From: "Niall Pemberton" <[EMAIL PROTECTED]>
> Apologies, this was my fault - I added a trim() to the value when I
> re-factored this tag :-(
>
> I'll change this back.
Thanks, I saw the fix go in. But now... how do I get a 1.2.7-dev (or
whatever it would be called) build? Specifically, what do
Thanks for your answer Mark,
I am new with JavaScripts and I tried your example, but it does not
really work...
I tried to do
alert(options);
after
var options = form.elements['select'].options[i];
but nothing happend. What exactly is that line doing?
Thanks, Anja
Mark Benussi wrote:
Yes
I know last week we had some discussions about MessageResources (mostly
about pulling from a DB). I did a little digging and extending and came
up with a quick hit that pulled the resources from a db. At the same
time I rememebered an earlier discussion about having submessages in
messages. That is
Actually if it is something that occurs on every request im not even
sure I would go the filter route. Post processing the html is going to
be expensive in terms of performance then no matter what you do. I would
probably reconsider the architecture and see if I couldn't somehow
pre-process the htm
If your HTML is valid XHTML, you should be able to apply XSLT
transformations on it without too much trouble. But, this would be an
expensive operation per request, probably a VERY expensive one at that, so
if it is something that is going to happen frequently I wouldn't go this
route. In fact, i
I imagine there are several options here.
1) assuming you know the html is well formatted. And if you use the
struts tags it is not necessarily well formatted (i.e. the base tag does
not include a closing tag it renders as not ) you could simply run the html into jaxp
2) use an object orient
Hi
does any one know a class or utility in java which
will allow to update or modify HTML code on the fly,
Here is what i am trying to do, i have a filter which
which intercepts the response before being send out to
browser, depending on some condition i want to modify
this response which is HTML c
OK Understood, I think. So you have a Tiles definition and, when the form
is submitted and the Action made its work, you want to forward to a page
where only one portion of the Tiles definition changes.
The solution is simple: make another definition! ;-)
You know, as I said a lot of times before,
Haven't got a clue what your problem is, but one thing doesn't seem to add
up. Your stack trace refers to "javax.servlet.jsp.tagext.JspTag" which I
understood was introduced in Servlet 2.4 / JSP 2.0.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/JspTag.html
But you say the versio
This is working fine for me. I run often run jspc against the current app
I'm working on and it works fine with > 500 jsp pages. We use a mixture of
Struts Tags, JSTL, and a few custom tags.
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTe
Greetings,
I have a small problem that I'd like to resolve.
I have just upgraded (sometimes it feels more like a downgrade!) from
WebSphere Studio Application Developer (WSAD) v5.1.1 to v5.1.2.
The issue is that I now have a warning that the hrefs below: targets
cannot be resolved.
It is just a
I have a struts web-app (Struts 1.2.4, J2EE 1.3, Servlet 2.3, JSP 1.2) in
which the JSPs fail to compile. All of the exceptions are of the flavor
"cannot be applied to":
"_jspx_method_some_tag_#(someTag, java.servlet.PageContext) in
org.apache.jsp.xxx.some_jsp cannot be applied to (org.apache.Some
Hi Leon
Leon Rosenberg wrote:
indexId will do
http://struts.apache.org/userGuide/struts-logic.html#iterate
Been there, but somehow didn't get what it was about ... closer now.
">
name="element"/>
Yeehaa! Thanks a lot!
You may also want to look at html:options and html:optionsCollection
Will
Jack,
I seem to remember having problems in a project with similar rqmnts some
time ago.
I *think* your problem lies here:-
target="x"
onsubmit="window.open('',this.target
Where in NS the form appears to submit before the new window is registered, and
hence the window target is not valid.
I coul
indexId will do
http://struts.apache.org/userGuide/struts-logic.html#iterate
">
You may also want to look at html:options and html:optionsCollection
This would make above code a two-liner, and work with action forms.
Regards
Leon
> -Ursprüngliche Nachricht-
> Von: news [mailto:[
indexId will do
http://struts.apache.org/userGuide/struts-logic.html#iterate
">
You may also want to look at html:options and html:optionsCollection
This would make above code a two-liner, and work with action forms.
Regards
Leon
> -Ursprüngliche Nachricht-
> Von: news [mailto:[
Hi!
I am quite new to Struts and to java, but I god hooked (former addicted
perl programmer). Please keep this in mind before newbie-bashing me ;-)
In my project, I have some application wide settings, launched using
web.xml's 1 thing. This loaded class
populates some attributes with values for
Man, you guys are hot and helpful today. Thanks loads! I have
another question from an earlier helpful suggestion regarding
Netscape. I am testing the following code and it works in everything
but Netscape. With Netscape, nothing happens. Anyone know what the
issue is?
Jack
Yes you can select an option in a selection, but you would need to know the
index of the option.
form.elements['select'].options[i].selected = true;
When generating the select using the html:options argument your presentation
layer wont have much knowledge of the data passed so you will have to
r
Hi!
My application is based on stuts and contains among other thing a
dropdown list and a graph. What I want to do, is to change the selected
item in the drop down list, when clicking on the corresponding node in
the graph.
Is it possible to change the selected item in a dropdown list?
My drop
hi, let me explain problem in better way,
using tiles framework i've created a layout page , which embed various
jsp's.Now u can say that each jsp is a region in the layout.say we have divided
our layout into three regions one for header,one for footer and one for content.
Now if in my content ar
Good stuff on LazyList here
http://wiki.apache.org/struts/StrutsCatalogLazyList
Thanks a lot for your help ... I think I'm as confused as you (maybe
more !), even after reading the thread related to your question... I
think I need a simple example (something like a form in a JSP, an
ActionForm -
Please to to http://www.roseindia.net/struts
its nice tutorial
--- Ruben Cepeda <[EMAIL PROTECTED]> wrote:
> Balajj,
>
> I would go to the struts home page and start looking
> thru the documentation
> and tutorial. Here is a link:
> http://struts.apache.org/userGuide/index.html to the
> user
72 matches
Mail list logo