characters in length that would provide that information.
Dave Derry
- Original Message -
From: bachan s [EMAIL PROTECTED]
Can you try removing the required from the depends for password and give
minlength and maxlength. Since minLength is mentioned required is not
necesary.
Try
.. /
Then in validation.xml change form name=logonForm
to form name=/path/to/myLogonAction .
Let us know if this works for you, 'cause like I said, I haven't tried it.
Dave Derry
- Original Message -
From: bachan s [EMAIL
You can also validate based on the action rather than the form. Just use the
action type rather than the form name, and be sure to extend
ValidatorActionForm rather than ValidatorForm.
Dave Derry
- Original Message -
From: bachan s [EMAIL PROTECTED]
Instead of writing different
Andrew,
I appears that you missed one glaring error. In the getAlaskaGroups action,
the vlaidate=false is seriously out of place. It also has a '' without a
''.
Using a utility to validate the file is definately a GOOD idea.
Dave D
- Original Message -
From: Andrew Hill [EMAIL
No. The closing tag for the action follow the input attribute:
action path=/getAlaskaGroups
type=GetAlaskaGroupsAction
name=getAlaskaGroupsForm
scope=request
input=/index.jsp closing tag here
forward name=getAlaskaGroupsDone path=/index.jsp/
validate=false -- an
The Perforce plugin is also real useful (if you're using Perforce that is).
- Original Message -
From: Haseltine, Celeste [EMAIL PROTECTED]
OK, here are the web sites for Eclipse and the Eclipse Plugins, and a list
of the ones we are using. Make sure you check out the entire plugin
is that embedding a scriptlet as a portion of an attribute
value (part of an RTEXPR) is illegal according to the JSP spec. You will
need to rewrite your scriplet so that is composes the entire value.
Dave Derry
- Original Message -
From: Zeitlin, Mike [EMAIL PROTECTED]
I am trying
the final date.
resource=false/
var
var-namedateBefore/var-name
var-valuefinalDate/var-value
/var
/field
The finalDate referenced by var-value is another attribute of my
ValidatorForm.
Does this help?
Dave Derry
- Original Message -
From
( 'someParameter' ) ) {
doSomethingSpecial(); } ).
Dave Derry
- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]
Hi,
Flow :
login.jsp - mainscreen.jsp[ jsp:includes a left panel showing report
parameters]
The parameters are chosen by the user. Forward to the same
; without needing to recompile my
application.
Please explain how this framework provides any added value.
Dave Derry
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Is your form derived from ValidatorForm rather than ActionForm?
- Original Message -
From: Clayson, Jim [EMAIL PROTECTED]
Hi I am attempting to use the date validation provided by the framework -
I
am using struts1.1b2.
I think I must be missing something fairly fundamental but
Monty Python was great..but SOAP was absolutely
FABULOUS!!!
Dave D
- Original Message -
From: Chappell, Simon P [EMAIL PROTECTED]
When America can compete with Monty Python, America may have an opinion on
humour! :-P
Simon
-Original Message-
From: Adam
Another solution is to define a generic message key in the properties file.
Something like error.generic={0}.
Then create your ActionError as new ActionError( error.generic, My
specific error message );
Dave Derry
- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
2.) Ah, now
One obvious problem is that you haven't closed your bean:message tag. Try
bean:message key=my.key.here arg0=literal string/
Also, have you included the directive for the bean tld?
Dave Derry
- Original Message -
From: Avishai Weissberg [EMAIL PROTECTED]
I apologize for the previous
One other thing to consider.what are the changes that this app will
grow? How many times have you coded a quick and dirty solution because it
was just a simple little app, and lived to regret it as the app grew?
Dave
- Original Message -
From: ChangQing Zhou [EMAIL PROTECTED]
He's doing it as a service for those who are filtering you Mark!;-))
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
Hey man! RU refactoring my messages? ;-)
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
For multiple, you also must
That's still Derry.Dave Derry!
But I guess if it's easier for you...you can call be
Jerry ;-)
Dave Derry
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
Thanks a lot, Jerry.
;-)
-Original Message-
From: Dave Derry
OK..Just got another cup of coffee. Want to pass the bagels and
lox?? ;-}
Dave Derry
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
Mine was a reference to yesterday (as I'm sure your changing the subject
line is) and was intentional. Hey, Dave! Wake up
You could attach the form to the request in Action A and retrieve in in
Action B.
Action A: request.setAttribute( ActionAForm, theFormForActionA );
Action B: ActionAForm theForm = (ActionAForm)request.getAttribute(
ActionAForm );
Would that work for you?
Dave Derry
- Original Message
Tryhtml:form action=performLogin.do method=GET
Notice the '.do'; it has to do with the servlet mapping. You apparently have
*.do mapped to the the Struts ActionServlet, but Jasper doesn't know what to
do with performLogin.
Dave Derry
- Original Message -
From: K Br [EMAIL PROTECTED
U...that's Dave...but that's all right. Go get that second cup
of coffee! ;-))
Dave Derry
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
Absolutely right, Jerry! Ironically, I was just writing a non-Struts
helper
class to make a credit card validation
to the appropriate view component.
In our current system, we are closly following this model; presentation is
seperate from behavior, and it is working out very nicely.
Dave Derry
- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]
Hi,
I have actually set up a 'Setup
YKMV ??
;-}
- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
Ah!
No wonder I didnt recognise it.
We use kilometres here.
-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
I think it stands for Your Mileage May Vary.
AFAIK ;)
--
To
I haven't managed to find any.
- Original Message -
From: Jerry Jalenak [EMAIL PROTECTED]
Does anyone have the URL for the Validator JavaDoc on jakarta.apache.org?
Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
Jerry,
Did you see this?
http://home.earthlink.net/~dwinterfeldt/overview.html#comparingTwoFields
This helped me in writing a validator to check that one entered date was
later than another entered date.
Dave Derry
- Original Message -
From: Jerry Jalenak [EMAIL PROTECTED]
Thanks
directly access additional form fields
without having to specify each on as a var.../var in my
application-rules.xml.
Jerry
-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Jerry,
Did you see this?
http://home.earthlink.net/~dwinterfeldt/overview.html#comparin
Ball-Park Franks
- Original Message -
From: Chappell, Simon P [EMAIL PROTECTED]
Personally I eat neither Jellied Eels or Black Pudding. And it always amuses
me when Americans get on their high-horses about food, because what have
they ever given the world? McDonalds!
Simon
--
The second action has access to it; if you mean save.do is 1 edit.do is 2.
If edit .do forwards to somethingelse.do, it also has access to it. The
request 'dies' when the action sends the response to the client.
Dave Derry
- Original Message -
From: [EMAIL PROTECTED]
I want to do
?
Dave Derry
- Original Message -
From: kiuma [EMAIL PROTECTED]
Hello,
how can I have a clean form field the second time I visit it?
It seems it keeps data into session. How can I clean those fields,
without cleaning other informations?
Thanks,
kiuma
--
To unsubscribe, e-mail
A couple of Newbie questionsAdd a hidden field to your jsp page, and a page attribute
to your ActionForm.
html:form
html:hidden property=page
.
.
.
Then you can query your form for the page that was submitted (form.getPage()).
- Original Message -
From: Kevin Roast
Hi,
I
the server receives a request in a session it restarts the timer.
As long as your users are interacting with the system, their session will
not time-out.
Of course, I realize that requirements are requirements, and they sometimes
DO have to be implemented even when they make no sense.
Dave Derry
Add the resource=false attribute
i.e. arg0 key=First name resource=false
Not sure how this translates into ActionErrors 'cause we're not using Struts
for presentation, but it does tell Validator to use the key as a String and
not a look-up key.
Hope this helps,
Dave Derry
- Original
Castor
to retrieve data from mySQL and write it to an XML file. If that's what you
wanted to know.
No problem using both the O/R and XML capabilities of Castor in the same
app. I think you can even do it with just one mapping file.
Hope this helped,
Dave Derry
- Original Message -
From: Day
Agree with your assesment re: 1 should be ProductFB prodFB =
(ProductFB)form;
As written I wouldn't expect to get much usefull info. ;-}
I don't understand why you think 2 would be more efficient tho'. In 1,
prodFB is merely an alias for form. I wouldn't expect any runtime
difference. But since
You could have an entry in your properties file like error.generic={0}
Then use new ActionError( error.generic, The legacy error message );
That what you were looking for?
Dave Derry
- Original Message -
From: Ashish Kulkarni [EMAIL PROTECTED]
Hi,
Does ActionError class read
)read the docs, or c)try something before asking Will this
work?. You won't get far in this business by taking the easy way out, or
expecting someone else to give you the answer/solution to easy
questions/problems.
Sorry for the long post.
Dave Derry
- Original Message -
From: Cliff Rowley
This is a problem that has been brought up several times. I don't know about
b1 since I've just started using Validator (with b2), but I do know that the
problem has been fixed in CVS. It is a very simple patch, that you can
easily make yourself if you don't want to get a nightly build. Check the
Only in our
dreams..
..
- Original Message -
From: Sri Sankaran [EMAIL PROTECTED]
Humor in bodily functions (of dysfunctions) is so slapstick. What are we
... teenagers?
--
To unsubscribe, e-mail: mailto:[EMAIL
He's also easily encouragable ;-))
- Original Message -
From: John Owen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, August 29, 2002 1:44 PM
Subject: Re: [Tag Protocol] How to let newbies know?
I think you mean incorrigible... ;)
-
James that is the funniest thing I have read in a long while!!
Happy Friday to you!
Its funny what a little 'search and replace' can do..LOL
*** HEADLINE NEWS ***
Microsoft Bashing Now Considered a Hate Crime
Washington DC - George W. Bush signed into law yesterday legislation
- Original Message -
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
Subject: RE: blank page
Next time you're not sure if the Action got hit, it's easy to test it by
putting a System.out.println in the class. Watch for the message in the
server console. It's a good thing
As you found, you cannot pass the ResultSet back to your JSP. This would not
be a good thing if you could. That would be coupling your data layer too
closely with your view layer. A better solution is to populate a Collection
object with the data in your ResultSet, and pass that back to your JSP
- Original Message -
From: James Mitchell [EMAIL PROTECTED]
The framework knows nothing of sql.
However, I have also pondered the using the message resources for
something
like this.
I guess if your data layer had access to the message resourcesyou
could
do something like this.
I prefer xemacs myself
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
vi
-Original Message-
From: Chiming Huang [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 8:21 AM
Hi,
Can you please recommend a IDE for working on Tomcat 4.0.3 + Struts
: Please recommend a IDE
Sorry. You're late to the party. This was a mini-flamewar only for the early
risers on the list! :-)
-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 3:42 PM
To: Struts Users Mailing List
Subject: Re: Please recommend
I NEVER pay!!
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, June 05, 2002 5:28 PM
Subject: RE: Please recommend a IDE
Did you have to pay?
-Original Message-
From: Dave Derry [mailto:[EMAIL
several shirts from my employer! :-)
-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 4:30 PM
To: Struts Users Mailing List
Subject: Re: Please recommend a IDE
My deepest apoligies. Been tied up all afternoon and just got
to my email.
It won't
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 30, 2002 7:23 AM
Subject: javax.servlet.jsp.JspException: No getter method for property name
of beanorg.apache.struts.taglib.html.BEAN
html:html locale=true
head
titleResults page/title
Jim,
I'd probably have some interest, and I know several other people who might
as well.
Dave D
[EMAIL PROTECTED]
- Original Message -
From: JM [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, May 24, 2002 3:09 PM
Subject: Struts User Group
Are there
In what country is it a crime to phone someone on a published phone number?
I would really like to know..perhaps I could do something about all
those D**N telemarketers who woun't leave me alone!!
Dave D
- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To:
Probably should check for any legal ramifications first. I'm not a lawyer,
but I've seen some on TV!
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 1:29 PM
Subject: Auto-Replies
Suggestion:
Why don't
Perhaps less of a waste of time than waiting on the debugger (the problem
that started this thread) then stepping through lots of code. Much quicker,
and more enlightening, to think about the problem (as someone else
suggested) then insert a println in a strategic location. Also, using xemacs
to
52 matches
Mail list logo