Re: Question on calling .do's directly

2004-09-11 Thread Rick Reumann
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'

Re: html:checkbox default value

2004-09-11 Thread Craig McClanahan
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

Question on calling .do's directly

2004-09-11 Thread Tom Holmes Jr.
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

Re: basic locale question

2004-09-11 Thread Bill Siggelkow
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

RE: Validation error,

2004-09-11 Thread David G. Friedman
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.

RE: Moving from environment to environment

2004-09-11 Thread Dave Bender
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

Validation error,

2004-09-11 Thread Ruben Cepeda
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] *

Re: Collections, mental block

2004-09-11 Thread mail
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

Re: Collections, mental block

2004-09-11 Thread bmf5
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

Re: Collections, mental block

2004-09-11 Thread mail
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

RE: html:checkbox default value

2004-09-11 Thread Erez Efrati
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

html:checkbox default value

2004-09-11 Thread Erez Efrati
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

Specifying validation field per Form, only way????

2004-09-11 Thread Leandro Melo
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??? __

basic locale question

2004-09-11 Thread Leandro Melo
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

Collections, mental block

2004-09-11 Thread bmf5
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

Validation for Two Levels of Indexed Properties

2004-09-11 Thread Terry Roe
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

Re: JavaScript Validation of Indexed Properties

2004-09-11 Thread Terry Roe
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

Re: [OT] synchronous form submit in a popup so parent refreshes prope rly

2004-09-11 Thread João Vieira da Luz
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

Re: Help - struggling this for days !

2004-09-11 Thread James Mitchell
(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

[SOLVED] Is it possible to ignore the browser's locale?

2004-09-11 Thread Bill Siggelkow
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

Re: Bean tag and session data issue

2004-09-11 Thread Bill Siggelkow
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

Re: Is it possible to ignore the browser's locale?

2004-09-11 Thread Bill Siggelkow
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

Re: JavaScript Validation of Indexed Properties

2004-09-11 Thread Niall Pemberton
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

HTTP connection monitoring!!!

2004-09-11 Thread Prashanth.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

Re: Bean tag and session data issue

2004-09-11 Thread Langdon Stevenson
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