There's no such notion of this in the standard tags. You specify
exactly which bean you want to reference.
-Original Message-
From: David Morris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: Self reference in optionsCollection
I think you might be misunderstanding what the error means by key (unless I'm
off base here)
Can you post the code that you are using to find the key 'ui'
You might also try this. Add this to your default resource file:
ui=test
See if that clears up your error.
--
James Mitchell
Software
I think (hope?) that it's a joke Andrew. Although the subject line makes me think that it might be real and therefore very, very worrying.
I'm sad to say, it's very real. He found it debugging a problem that
was coming out in the stacktrace as a NullPointerException. Since
Pressing 'Enter' inside a text form, the form is submited,
and the 'method' parameter that is the name of all my submit buttons,
takes no value, and so the LookupDispatchAction fails
Any solution?
Thanks.
Example
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
Friday-Eve link inspired by How to tell when a project you are on is in
trouble...
You may have all seen this before but Jeff's post this morning made me
think of it...
http://mindprod.com/unmain.html
It still kills me...
mark
Jeff Caddel [EMAIL PROTECTED] on 11/21/2002 01:01:01 PM
I think there's an even handler in the html:form tag which lets you assign
a javascript action to be executed when the form is submitted.
-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Enviado el: Jueves, 21 de Noviembre de 2002 01:07 p.m.
Para: [EMAIL PROTECTED]
sounds like you only have one input of type text on your form.
believe it or not, this is actually a feature =)
http://ppewww.ph.gla.ac.uk/%7Eflavell/www/formquestion.html
what you'll want to do is either inhibit the enter press
or put a hidden inside the form that duplicates the
default method.
Yes, but how I knows if it was a button or a text what send the submit event.
And in case I know that it was a button, which one.
html:submit property='method' onclick=doSomethind()
doSomething
/html:submit
html:submit property='method' onClick=doOtherthing()
doOtherThing
/html:submit
How about Eclipse on old hdwr?
I already know how much NB struggles :)
(though in its defense, it's really Swing that struggles, NB does more
working w/in Swings performance constraints than any app I've seen)
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent:
Well, for whatever reason, this seemed kind of entertaining (sad, huh?) so I
fleshed it out a bit and actually gave it a test run. Since both JSTL and Struts
taglibs can deal with a Map (JSTL doesn't have a clue about DynaBeans), that
seemed like a better way to go. So, the reflection can be done
Hi,
I would like to have your opinion on following design I intend to implement
in my web-pages:
In all my pages I have a list of hidden fields.
= Hidden fields must be part of a form.
= For that reason I intend to make forms of all my web pages.
The behavior of an action will depend on the
Hi.
I encounter a strange behaviour of the Struts-Validator (Struts 1.1b2):
In validator.xml I set up the following rules:
field property=glEmpId
depends=required,long
arg0 key=ab/
arg1 key=error.required/
/field
field property=name
depends=required
arg0 key=global.name/
arg1 key=error.required/
I think thats kinda it. I think whats happening is that the jsp was
being called before the webapp had ever touched the servlet (i.e. the
user could go straight to the jsp). Therefore maybe the form doesn't
know which servlet its talking to.
Is there a way to get the context attribute without
The code we are using to locate the properties files associated with the
ui key is subclassed from org.apache.struts.util.PropertyMessageResources.
We have modified the loadLocale method to be able to find the message
resource in a directory other than one in the class path. As I stated
before,
Good stuff to all of you regarding overcoming the 64kb limitation in a single method.
JBoss 3.0.4 uses Tomcat 4.1.12, though we may want to try the version with integrated
Jetty (JBossWeb) first.
Thanks a lot.
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
JuanPedro wrote:
Pressing 'Enter' inside a text form, the form is submited,
and the 'method' parameter that is the name of all my submit buttons,
takes no value, and so the LookupDispatchAction fails
Any solution?
My solution is below... override the 'execute' method and check to see if
Hi,
I'm working on this application where I get resultsets in jsp pages from
business objects. The dbtags taglib is of no use here since the bo's handle
the sql connections and statements. And the struts logic taglib will only
iterate through collections. So I procede like this:
I'm working on this application where I get resultsets in jsp pages from
business objects.
I do a similar thing, but I have a DAO layer return a Collection of Value
Objects. (How's that for getting a bunch of pattern buzzwords into one
sentence?) The VO's are beans, so I can get at the
You got it exactly right Wendy :-). Your jsp should never see a ResultSet
object. The pattern Wendy is using is very common and considered a best
practice. A ResultSet object maintains a database connection throughout its
life so you should only hold onto it long enough to populate a
In addition to rolling your own disconnected storage or using the oft-mentioned
RowSet, here are a couple of other possibilities.
Check out JSTL's javax.servlet.jsp.jstl.sql.ResultSupport class. It has a couple
of utility methods for converting a ResultSet into a
I am actually a little new to struts functionality, but I do have several of my own
works up and running on their own.
My dilema is that I have started requirements for my next project, which is to
implement struts on our system, and thus far I have seen only a page down approach,
meaning,
This is not an Struts specific question:
Somebody knows an posible optimization to Weblogic 6.1 on Windows 2000 to accelerate
the JSP compilation time. Because, in my configuration it takes a lot...
Thanks.
Cristian.
On Thu, 21 Nov 2002, Chen, Gin wrote:
that makes sense.
but how about including an attributes tag that allows a map of attribute
name/values?
that might be helpful while maintaining the whole not render any client
specific attributes.
One of the main reasons Struts will not support
Greetings all...
Has anyone ever seen something like this happen?
java.lang.NullPointerException
at java.beans.Introspector.addMethod(Introspector.java:741)
at
java.beans.Introspector.getTargetMethodInfo(Introspector.java:705)
at
Having successfully mastered vboxLayout and classicLayout, I'm trying to
learn about tabsLayout now. The only examples I can find in the
tiles-documentation webapp are done by configuring the contents of the tabs
in the tiles-examples-defs.xml file. I'm not quite ready for that yet.
I tried
On Thu, 21 Nov 2002, Davide Bruzzone wrote:
Date: Thu, 21 Nov 2002 15:39:27 -0700
From: Davide Bruzzone [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Mysterious PropertyUtils problem...
Greetings all...
Not sure if I my problem is clear but I would be happy to elaborate...Any
thoughts?
Herb
-Original Message-
From: Watkins, Herb [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 10:14 AM
To: '[EMAIL PROTECTED]'
Subject: muliple select lists and DynaActionForms
Hello,
I am
Does anyone know if Jakarta is got a tab lib that performs paging, like
the one jsptags.com offers?
thanks
-gus
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Never mind... Deleting, then regenerating the BeanInfo class fixed it. Most
likely the BeanInfo class somehow got out of sync with the object, and it
took deleting it, then regenerating it (and not simply updating it) to fix
the problem.
Cheers...
Dave
-Original Message-
From: Davide
I want to have a checkbox use the HTML checked attribute. I want to do this
without referring to a bean or a property or a value, separate from the
Struts architecture (except that I still want to have Struts fill in my form
values). Is it possible?
I have tried many things. In the form object, I
On Thu, 21 Nov 2002, Andy Kriger wrote:
Date: Thu, 21 Nov 2002 18:43:30 -0500
From: Andy Kriger [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: how do i set a checkbox as checked w/o referring to a bean?
I
Shakeel wrote:
In your example for Struts beta2 you show that the collections of
label and value is initialized in the Action.
Is it better to perform this functionality in the ActionForm
bean?
You could, but by keeping it in a context instead, you have the
option of placing the list in
edgar writes:
Unfortunately, an innordinately large percentage of development
time is spent with the tag library, as even a casual perusal
of this list reveals.
I think that's mostly about not understanding how to develop with
tags, especially in a Model 2 architecture. It's a very different
Axel Stahlhut wrote:
By the way, does anybody know, why the validator example in the newest
Struts nightly builds (which iI don't use) is broken? Will it be fixed?
Thanks
Axel
There is a know problem with the commons-validator:
See:
Does the form name in the action mapping match the form name defined in
validation.xml?
Does the mapping for the action include validate=true?
-Original Message-
From: Axel Stahlhut [mailto:[EMAIL PROTECTED]]
Sent: Friday, 22 November 2002 6:49 AM
To: 'Struts Users Mailing List'
Subject:
Hi all,
I have one dull question but I really don't know how to do it..
I have yield attribute in form trading.
The yield getting from database is 0.10 But I want to display it in JSP
page as 10 %
Can I use bean:write tag to display this attribute * 100 ?
Thank in advance
Sutiwan Wannapongsai
Are you precompiling your pages?
Dave
-Original Message-
From: Cristian Cardenas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 2:59 PM
To: Struts Users Mailing List
Subject: Weblogic Page Compilation.
This is not an Struts specific question:
Somebody knows an posible
On Thu, 21 Nov 2002, Watkins, Herb wrote:
Hello,
I am having trouble with the submitted results of the html:select where
multiple=true. I have the form defined as a DynaActionForm with the
property in question defined as an ArrayList of the ids to pre-select. The
pre selection works
I'd just like to point out that the reason the chapters of Chuck's book
were made available on TheServerSide was for public *review*, not as a
public give-away. Given that the book is now in production, the review
period is clearly over, so I'm not at all surprised that these chapters
are no
Hi,
I was trying to figure out the best version of Tomcat for using
Struts 1.0.2. Some people told me that it is best to use tomcat 3.2.2.
Any ideas or suggestions are welcome.
Regards
Rajib
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
Hi,
getServlet().getServletContext() );
I have code like this in my reload action. Now this gets hold of the
application context and refreshes it from the database. Since actions are
reused we think there might be some problem with thread safety.
Does it make sense to use code like
contactrajib wrote:
Hi,
I was trying to figure out the best version of Tomcat for using
Struts 1.0.2. Some people told me that it is best to use tomcat 3.2.2.
Any ideas or suggestions are welcome.
Regards
Rajib
If you are just starting to learning Struts, I would --Highly--
recommend
Its sad just how many people seem to have the confusion that struts is just
a bunch of taglibs, and spend forever asking what cool dhtml UI widgets it
provides and wondering what all the fuss is about when they find it
doesnt...
Ive found struts absolutely invaluable in my project, but I
It depends...
-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 13:20
To: Struts Users Mailing List
Subject: Thread-safety
Hi,
getServlet().getServletContext() );
I have code like this in my reload action. Now this gets
You cant.
Once your page has been rendered to the client from the JSP your request is
finished. Over. Finito. Dead. Pining for the fjiords. Joined the choir
invisible...
You will need to use the session.
(Unless you want to make your ActionForm serializable, write it out as text
to a hidden
Hi,
Yes. We use this code from within a controller stored in the user
session. Now each user will get the controller from his session and call
this code from within the controller but even then this might be a bit
tricky. Our controller doesn't solve the problem. Isn't it ?
Thanks,
Mohan
Nicely said!!
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 2:29 AM
To: [EMAIL PROTECTED]
Subject: RE: future of struts
edgar writes:
Unfortunately, an innordinately large percentage of development
time is spent with the tag library, as
Well Im not an 'expert' on threads so if anyone else reading this spots me
making a mistake please shout! But heres the way I see the problem:
The issue is that the data that you have in your Servlet Context will be
accessed from multiple threads at the same time. What this usually means is
that
I'm with you, I think that I will put it in the session finally. Thanks!
Miguel
-Mensaje original-
De: Andrew Hill [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 22 de noviembre de 2002 7:09
Para: Struts Users Mailing List
Asunto: RE: Durability of a ActionForm
You cant.
Once
101 - 149 of 149 matches
Mail list logo