Tom Holmes Jr. wrote the following on 9/11/2004 7:02 PM:
So, I guess the only question I have is:
Is there a problem with a web-site that contains a bunch of links to
various '.do' pages as opposed to '.jsp' pages? Are there any security
concerns? Do I really want to have direct links to '.do'
The values displayed on the page are copied from the form bean, so the
right answer is to set the value of the "schedule" property in your
form bean to true. This can be done in the form bean constructor (if
you want this initial value all the time), or -- more typical for an
update scenario -- yo
As many of you know, I had a problem with my Guestbook, and how to call
a .jsp page and have it auto-submit to the URL. As was stated, calling
my 'guestbooklist.do' directly from the URL worked. I decided to keep
the form in this guestbook page so people could hit the Submit button on
the pag
If you don't specify anything than you will be using the locale set in
your browser (if you don't set this than its usually the locale set in
your O/S).
This behavior usually works good for most apps. If you want to allow a
person to proactively change the Locale you can do it in an Action. Tak
Ruben,
Please include the full error.
Regards,
David
-Original Message-
From: Ruben Cepeda [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 11, 2004 4:46 PM
To: [EMAIL PROTECTED]
Subject: Validation error,
Hey Guys,
I get the following error when tring to use the struts-validator.
Craig,
Thanks. That will do the trick for the database connection. I have a JNDI connection
for another non-Struts application and it does solve the environment problem.
A related question, though: Is there an elegant solution for path variables and LDAP
connections? I see the prevalance o
Hey Guys,
I get the following error when tring to use the struts-validator.tld
org.apache.struts.validator.taglib.html.ErrorsTei'
Can anyone help me with this problem.
*
Ruben Cepeda
[EMAIL PROTECTED]
*
Stuff happens ;-) Good luck!
Chris
[EMAIL PROTECTED] wrote:
Thanks for the help. I wasn't instantiating a new object before adding it
to the list. Just added the same one over & over. Duh!
mail <[EMAIL PROTECTED]> wrote on 09/11/2004 03:48:57 PM:
Well, the snippet below looks fine and should
Thanks for the help. I wasn't instantiating a new object before adding it
to the list. Just added the same one over & over. Duh!
mail <[EMAIL PROTECTED]> wrote on 09/11/2004 03:48:57 PM:
> Well, the snippet below looks fine and should definitely work.
>
> So, if your result doesn't seem t
Well, the snippet below looks fine and should definitely work.
So, if your result doesn't seem to match, I would check the method
populating the
employeeList. Oh, and make sure you're not having another employeeList
in page
or request scope, or add the source scope to the html:options line.
If you
Looking in the code, the tag does not provide any way to set/force the
default value - only by setting the value on the form bean.
A small workaround is to do:
Which works. Still the better way is to work with the form and so anyone
Who reads this don't get the idea that I am aiming at this wa
I am trying to set the default value of a checkbox to 'checked' by
putting:
but somehow it does not check it. The produced HTML gives me
What am I missing here?
Thanks,
Erez
Hi,
do i need to specify validation fields per form in
validation.xml???
Suppose the field "name", for example, many form beans
may use this field. Is there a way i can specify a
global validation for "name", instead of specifying it
for all form beans that have the field name???
__
Hi,
this is very very basic.
When i started learning Java i really never payed
attention to that.
I don't have any one line of code in my struts
application that secifies my "locale". So,
what's actually the default locale i'm using???
if i want to change the locale, how exactly should i
do?? w
I'm having a heck of a time figuring out how to use this trio. I'm so used
to a for loop in a scriptlet.
I've gotten to the point where my jsp sees the collection stored in session
scope. The tags even display the right number of options. However it's
always the last entry in the collection
Can Struts validate more than one level of indexed properties? First
level works great. Love it. I've tried the following (phaseList and
procedureList are two indexed properties) to get more than one level to
work without success:
Is multi-level, indexed property validation supported
Niall,
Thank you very much for your response. I'd seen many people asking this
question, but no definitive answers. I appreciate your help, very much.
TR
Niall Pemberton wrote:
No Struts does not do javascript validation of indexed properties.
The createDynamicJavascript() method in JavascriptV
You can remove reload and window.close from onclick and submit form...
onclick="document.forms[0].Dispatch.value='Save';document.forms[0].submit();"
The Action that receives this form could forward page with the removed
javascript
window.opener.location.reload(true);window.close();
In this way y
(I have not been following this thread)
Are you using JSTL?
The intent of that debug script is for you to include it in whatever pages
you like (or in your layout if using tiles). Did you remember to add the
necessary taglib directives?
--
James Mitchell
Software Engineer / Open Source Evange
Well, I found why I was seeing the behavior. Basically, I have an
index.jsp that is the welcome page of my app. It uses a bean:message tag
to display a message. By default, if the bean:message tag cannot find a
locale in the session; then it uses the locale from the request header.
So even thou
Sounds like you have made some great progress!
Pat yourself on the back :)
Langdon Stevenson wrote:
Hi Bill
Thanks to your advice once again I have solved what was a very simple
problem. You suggestion of running the app with a debugger did the trick.
It took me long enough to get the Tomcat 4.0
Thanks for the info, Craig. I had tried the first option and I did not
seem to "take" but I need to dig a little deeper. The other two options
I will consider -- one you didn't mention that I thought of was using a
plug-in.
Craig McClanahan wrote:
Here's at least three different ways to do wha
No Struts does not do javascript validation of indexed properties.
The createDynamicJavascript() method in JavascriptValidatorTag has the
following code:
// Skip indexed fields for now until there is a good way to handle
// error messages (and the length of the list (could retrieve from
s
Hi all,
Iam connecting to a Application server for sending my XML-RPC requests.I want to
always monitor the connection[weather i can still be able to connect or not] between
my server and the external server which serves my XML-RPC requests.I basically want
information abt at what times the ser
Hi Bill
Thanks to your advice once again I have solved what was a very simple
problem. You suggestion of running the app with a debugger did the trick.
It took me long enough to get the Tomcat 4.0.6 / IDEA integration
working. Initially it wouldn't find the servlets, but would find jsps.
No id
25 matches
Mail list logo