please help, using logic:iterate and html:form

2004-03-15 Thread Mu Mike
Hi, all, last week, I spent a whole day trying to figure the below problem out, and you warmhearted guys just came and helped me,but to greatly disappiont you, I m still at a loss to know where the problem is ,so I decided to explain detailedly and completely of what I did and hope you nice

RE: Re: How can IIS and Tomcat share data?

2004-03-15 Thread Michel Van Asten
I think that a build in solution doesnt exist... do you mean that a part of your application is developped in asp ? in this case you have separate session... Have you tried to store your shared data in a database... Note if you find a simple solution let me know... Regards, Michel Van Asten

RE: error message display

2004-03-15 Thread anant.parnami
In your property file after the error message specify BR For e.g. Your property file should look like Validation.err = input data must be entered BR -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 1:30 PM To: [EMAIL PROTECTED] Subject:

Re: Re: How can IIS and Tomcat share data?

2004-03-15 Thread dream_and_yang
Thank u very much,Martin! I follow the howto.html and I do get iis and Tomcat5 work together,using the jk2.properties file. Now I can directly call Http://localhost to get the Tomcat help page. My real problem still here:Can Tomcat and IIS share data?For example,data in session,cookie,in other

Example commons_logging.properties

2004-03-15 Thread jmutonho
Hi Can someone show me(or a pointer to a good example on the web) an example commons_logging.properties file with logging set to INFO only jeff mutonho - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

help in java script

2004-03-15 Thread Shobhana.S, ASDC Chennai
Hi ! I'm getting a problem when i use java script in my struts application. My code runs as follows: SCRIPT funtion change(value) { alert(value); } /SCRIPT BODY ... ,,, % String value=hello;% html:text size=20 property=userId onchange=javascript:find(%=value%)//TD the problem is the

RE: help in java script

2004-03-15 Thread Andrew Hill
Should not that be: html:text size=20 property=userId onchange=javascript:find('%=value%')//TD (note the ' around value) -Original Message- From: Shobhana.S, ASDC Chennai [mailto:[EMAIL PROTECTED] Sent: Monday, 15 March 2004 17:27 To: Struts Users Mailing List Subject: help in java

RE: help in java script

2004-03-15 Thread Shobhana.S, ASDC Chennai
Hi! If my value is an int variable then how shld i pass the value? Say, % int value=10; % I want to pass this value to my onchange event. Unliek this case where i've defined the value in my program the value is determined dynamically. Thank you Shobhana

AW: help in java script

2004-03-15 Thread Andreas Solarik
Hi Andrew and Shobhana, As far as I know, you cant mix static text and dynamic text within a JSP. If I remember correctly, something like the following code should work. % String tempString=javascript:find( + value + \;; // Not sure about the semicolon... % and then: html:text size=20

AW: form class isn't populated

2004-03-15 Thread Otto, Frank
Hello, thanks, it's the solution. Regards, Frank -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 12. Marz 2004 14:39 An: Struts Users Mailing List Betreff: Re: form class isn't populated Here's a link to a post that may have your

Form Validation

2004-03-15 Thread Nina Bertilsdotter
Hi People, I'm pulling my hair out trying to get form validation to work through the validator, any help will be much appreciated. In this example I'm trying to validate a single field (year of type int), should be pretty easy, one might think, but alas, I'm stuck and I can't get it to work. I'm

AW: Form Validation

2004-03-15 Thread Otto, Frank
Hi Nina, you had to set validation=true in your action definition (struts-config.xml). Regards, Frank -Ursprungliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. Marz 2004 11:09 An: 'Struts Users Mailing List' Betreff: Form Validation Hi People,

RE: help in java script

2004-03-15 Thread Shobhana.S, ASDC Chennai
Hi Andreas! It worked..Thank you. Shobhana -Original Message- From: Andreas Solarik [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 3:27 PM To: 'Struts Users Mailing List' Subject: AW: help in java script Hi Andrew and Shobhana, As far as I know, you cant mix

RE: help in java script

2004-03-15 Thread Andrew Hill
Remember the JSP script is evaluated server side and its result is what is rendered to the browser. Only the resulting html is what is evaluated by the browser which knows nothing of the original scriptlets. To check this out just do 'view source' in your browser on the page so you can see what

Problem in deploying the Struts Examples war in tomcat.

2004-03-15 Thread Biswajit Jena
Hi Frnds, I downloaded the struts examples from apache and tried to deploy it on tomcat 5.0. Got a error. SEVERE: Parse error in application web.xml java.net.UnknownHostException: java.sun.com Can anyone tell me how to solve it. Thanks and Regards, Biswajit Jena

SV: Form Validation

2004-03-15 Thread Nina Bertilsdotter
Thank you, Frank, I was indeed missing the validation='true' but that didn't seem to fix my problem... must be something else; I guess I've got to keep digging. Nina -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:13 Till: 'Struts

Re: dtd validation of tld's

2004-03-15 Thread Adam Hardy
On 03/15/2004 12:52 AM hanasaki wrote: I am using whatever is in tomcat 4.1.24. Not sure what version of xerces that is or how to find out. Neither am I, I'm afraid. Perhaps someone can jump in with the answer. Funny thing is it worked some time ago. The project just came out of 5mo

RE: Form Validation

2004-03-15 Thread Budi Rostiarso
Try putting max arg, because i think range validation must be supplied with min and max (range) value. arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ var

RE: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Jesse Alexander (KAID 11)
+ 1 Struts 2 or Struts v2 say what it is: a new major version of struts. Struts2 or Struts2EE imply: It is not Struts. It may be based on Struts, or is something similar. Jericho, or whatever other name choosen, just say nothing at all... regards Alexander -Original Message- From:

SV: Form Validation

2004-03-15 Thread Nina Bertilsdotter
Thanks Budi, but that didn't seem to do the trick either. When I enter 4 (min range is 1900) in the year field I still don't get an error. -Ursprungligt meddelande- Från: Budi Rostiarso [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:31 Till: Struts Users Mailing List Ämne:

AW: Form Validation

2004-03-15 Thread Otto, Frank
Does your form class extend the ValidatorForm? -Ursprüngliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. März 2004 11:39 An: 'Struts Users Mailing List' Betreff: SV: Form Validation Thanks Budi, but that didn't seem to do the trick either. When

SV: Form Validation

2004-03-15 Thread Nina Bertilsdotter
No, it extends ValidatorActionForm. -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:41 Till: 'Struts Users Mailing List' Ämne: AW: Form Validation Does your form class extend the ValidatorForm? -Ursprüngliche Nachricht- Von:

Re: security framework!!!

2004-03-15 Thread Adam Hardy
Right, I get it. So you not only want the higher level user to take on the lower level user's role, you want them to have their complete ID or username etc. Tricky! I think alot depends on what kind of use you have for the user info. Is it purely roles that are important here? Or is there

SV: Form Validation

2004-03-15 Thread Nina Bertilsdotter
Sorry, yes, it does extend ValidatorForm : ) -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:41 Till: 'Struts Users Mailing List' Ämne: AW: Form Validation Does your form class extend the ValidatorForm? -Ursprüngliche

RE: Why is it so difficult to unsubscribe?

2004-03-15 Thread McCormack, Chris
You spelt incompetent wrong -Original Message- From: Kenneth Kalmer [mailto:[EMAIL PROTECTED] Sent: 15 March 2004 04:30 To: [EMAIL PROTECTED] Subject: Why is it so difficult to unsubscribe? Guys I've been trying to get my name off the stuts user digest for more than a week now! How

Re: SV: Form Validation

2004-03-15 Thread Jignesh Patel
I am trying to use min length in javascript for password, but it is not working. I am just wondering why it works for all the fields but not password. Can I have any input. -Jignesh On Monday 15 March 2004 16:14, Nina Bertilsdotter wrote: Sorry, yes, it does extend ValidatorForm : )

AW: Form Validation

2004-03-15 Thread Otto, Frank
I use ValidatorForm, but I think it's not the solution. -Ursprüngliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. März 2004 11:42 An: 'Struts Users Mailing List' Betreff: SV: Form Validation No, it extends ValidatorActionForm. -Ursprungligt

Re: AW: Form Validation

2004-03-15 Thread Jignesh Patel
R u passing input value in struts-config. If implement as per mail say it has to work. On Monday 15 March 2004 16:23, Otto, Frank wrote: I use ValidatorForm, but I think it's not the solution. -Ursprüngliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet:

SV: Form Validation

2004-03-15 Thread Nina Bertilsdotter
Yeah, I've tried both. I use my form bean across several actions, that's why I tie the validation to the action instead of the form bean. -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:54 Till: 'Struts Users Mailing List' Ämne: AW:

RE: Form Validation

2004-03-15 Thread Budi Rostiarso
Ok, next try... i think it'll be because you haven't put the onsubmit javascript code on the html:form tag? something like html:form action=MyAction.do onsubmit=return validateMyForm(this); and put this tag after the end of html:form: html:javascript formName=myForm/ also check if the

Re: SV: Form Validation

2004-03-15 Thread Joe Hertz
Check the Bugzilla. I believe it works in the html:errors tag, but you won't get a javascript popup. If memory serves, there's a security concern about using minlength in password fields -- basically the logic goes something like, Do you really want to be providing a front end validation that

SV: AW: Form Validation

2004-03-15 Thread Nina Bertilsdotter
I'm not sure I understand what you mean -Ursprungligt meddelande- Från: Jignesh Patel [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 12:00 Till: Struts Users Mailing List; Otto, Frank Ämne: Re: AW: Form Validation R u passing input value in struts-config. If implement as per

Re: SV: AW: Form Validation

2004-03-15 Thread Jignesh Patel
OK I am giving working code map it with your app 1 .in Validation.xml following code field property=userName depends=required, minlength,maxlength,mask msg name=mask key=registrationForm.userName.maskmsg/ arg0

Handling multiple submits from a single form

2004-03-15 Thread sajith
Hi I have multiple actions possible from a single JSP page. How can I handle it using struts? I have single form with multiple buttons and I am using the html tag library. How can I handle it without using _javascript_? Regards Sajith

Pl. help urgent Using optionsCollection - LabelValueBean

2004-03-15 Thread ddd ddd
On Mon, 15 Mar 2004 ddd ddd wrote : Hi All I am new bie and learning to populate the drop box by all different ways . 1. By Collections of strings 2. By collections beans 3. Hard coding I am unable to achieve even first way tried a lot but failed can any body suggest me

Re: Re: Using optionsCollection - LabelValueBean

2004-03-15 Thread ddd ddd
Hi Timo I am new bie and learning to populate the drop box by all different ways . no body has replied for alomst a 4-5 days pl. help me... population of data by different ways which are as below 1.By Collections of strings 2.By collections beans 3.Hard coding I am unable to

RE: Handling multiple submits from a single form

2004-03-15 Thread shirishchandra.sakhare
use findForward action to dispatch the request to different actions depending upon the button pressed or use DispatcherAction -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 1:16 PM To: [EMAIL PROTECTED] Subject: Handling multiple submits

RE: Handling multiple submits from a single form

2004-03-15 Thread Shobhana.S, ASDC Chennai
You can use Dispatch Action. IXT_5_720IXT_5_719The purpose of the IXT_5_722IXT_5_721DispatchAction class is to allow multiple operations that normally would be scattered throughout multiple Action classes to reside in a single class. The idea is that there is related functionality for a service,

[INFO] RequestProcessor

2004-03-15 Thread jmutonho
Hi guys Please help me with this. How do i turn the following logs off [INFO] RequestProcessor - -Processing a 'GET' for path '/signonInit' [INFO] RequestProcessor - -Processing a 'GET' for path '/signonCompleted' [INFO] RequestProcessor - -Processing a 'GET' for path '/cutoffInit' I've

Re: Handling multiple submits from a single form

2004-03-15 Thread Geeta Ramani
Sajith: This very question was asked and answered recently (just within the past couple of weeks, I think??).. Maybe you can search the archives..? Here's the url for the archives: http://www.mail-archive.com/[EMAIL PROTECTED]/ Write back to the list if you cannot find what i am referring to

validation

2004-03-15 Thread Otto, Frank
Hi, is there any possibility to use another resource bundle in validaton.xml? Or can I set somewhere which resources validation should use? Regards, Frank

RE: validation

2004-03-15 Thread Shobhana.S, ASDC Chennai
you can hve more than one resource bundle ..In struts-config file: message-resources parameter=org.apache.struts.webapp.example.ApplicationResources/ message-resources parameter=org.apache.struts.webapp.example.AlternateApplicationResources key=alternate /message-resources

Re: Using optionsCollection - LabelValueBean

2004-03-15 Thread Dean A. Hoover
I'm also a newbie, but here is an example of what I found by getting some help from the people on the list plus experimentation. Here is a helper class I wrote: package fi.els.form; import java.util.*; import org.apache.struts.util.LabelValueBean; public class CreditCardOptions { public static

Re: SV: Form Validation

2004-03-15 Thread Jignesh Patel
Ok then what is the solution, you mean to say I will handle through back end only. Also in validation-rule.xml what I need to modify. -Jignesh On Monday 15 March 2004 16:32, Joe Hertz wrote: Check the Bugzilla. I believe it works in the html:errors tag, but you won't get a javascript popup.

Re: SV: Form Validation

2004-03-15 Thread Christoph Kutzinski
Joe Hertz wrote: Check the Bugzilla. I believe it works in the html:errors tag, but you won't get a javascript popup. If memory serves, there's a security concern about using minlength in password fields -- basically the logic goes something like, Do you really want to be providing a front

Re: SV: Form Validation

2004-03-15 Thread Max Cooper
If the hacker thinks that 7 character passwords may be allowed, they might waste a considerable amount of time trying all 1-to-7 character combinations. If you tell them the minimum is 8 chars, they can save a lot of time by not trying those shorter passwords. Also, if the minimum length is

Re: SV: Form Validation

2004-03-15 Thread Jignesh
Ok Christophe, Guide me what part of validation-rule.xml, I will modify to make it validate clientside. Jignesh Patel Bang Software Technologies Pvt Ltd [EMAIL PROTECTED] (O) 022 –28304761 Ext. 17 022- 28343742 Ext. 17

Re: SV: Form Validation

2004-03-15 Thread Christoph Kutzinski
Max Cooper wrote: If the hacker thinks that 7 character passwords may be allowed, they might waste a considerable amount of time trying all 1-to-7 character combinations. If you tell them the minimum is 8 chars, they can save a lot of time by not trying those shorter passwords. I still can't see

RE: security framework!!!

2004-03-15 Thread David Friedman
Adam, I should have explained this a bit better. Each level is like a company or organization. It has it's own group of parties to maintain but can be managed by one or more managers. The managers share group responsibility. Only the user at the very bottom rung has an interface which only

RE: Example commons_logging.properties

2004-03-15 Thread Julio Cesar De Salvo
My version is set to work with log4j, that's where you set the logging level to INFO. Commons-logging.properties -- # Directly selects log4j logging implementation class. org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Lo g4jFactory # Maps to a

AW: SV: Form Validation

2004-03-15 Thread Andreas Solarik
Hi guys! Just something I believe to be true: Aren't most systems compromised by incorrect configuration? I believe the second most common weakness must be the postponement of patches to buggy software - see for example the whole alphabet of worms working their way through IIS and Outlook

Re: [SwitchAction] How do you switch in between application contexts?

2004-03-15 Thread Mike Zatko
Ok, I don't think SwitchAction is going to do what I thought it was meant for. I need to know how to forward control to another web application. Right now, in my action, I'm doing a response.sendRedirect and returning null to the action forward. I figure there has to be a more graceful way

RE: Someone out there must have done this with Struts 1.0

2004-03-15 Thread Au-Yeung, Stella H
Thanks Niall. That's it. Puttingthe 'attrbute' in html:select solve my problem. Thanks. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 10:54 AM To: Struts Users Mailing List Subject: Re: Someone out there must have done this with

RE: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Joe Germuska
At 11:33 AM +0100 3/15/04, Jesse Alexander (KAID 11) wrote: + 1 Struts 2 or Struts v2 say what it is: a new major version of struts. Struts2 or Struts2EE imply: It is not Struts. It may be based on Struts, or is something similar. Jericho, or whatever other name choosen, just say nothing at

Re: iBatis, displaytag, and 10,000 rows

2004-03-15 Thread Andy Engle
Vic Cekvenich [EMAIL PROTECTED] wrote: That is bad design. Oh, I totally agree. There is no way I would want to shlep through 10,000 rows, nor would I want anybody else to have to do the same. But for some reason (as I mentioned in my initial post on this thread) my friend at work wanted to

AW: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Andreas Solarik
Yeah, you're right, its just a name. Something similar can be said for the following slogans: 1. Electrolux (vacume cleaners / hoovers) tried to enter the American market with the ingenious slogan Nothing sucks like an Electrolux (I'm so not kidding) 2. Chevrolet tried selling Chevy Nova's in

RE: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Paul, R. Chip
I guess the Nova is the antithesis of the Yugo? -Original Message- From: Andreas Solarik [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 8:47 AM To: 'Struts Users Mailing List' Subject: AW: [OT] Jericho == Struts 2.0? Yeah, you're right, its just a name. Something similar can be

FW: [Servlet Error]-[No form found under name logonForm, locale e n_US]:

2004-03-15 Thread Adedokun, Bisi
-Original Message- From: Adedokun, Bisi Sent: Friday, March 12, 2004 3:18 PM To: '[EMAIL PROTECTED]' Subject: FW: [Servlet Error]-[No form found under name logonForm, locale en_US]: I am getting the following errors when the servlet engine tries to load the

extending using struts

2004-03-15 Thread Rajat Pandit
Hello All, let me present a case where i want to extend an old web application by adding modules built on struts. i had an initial review of the struts users on this but i still have some issues. let me attempt to explain the same by providing a sample case which is similar to what i want to

RE: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Brandon Goodin
I'm thinking Titanic, Soddom, Gommorah, Hindenburg are equally excellent names. :D [EMAIL PROTECTED] 3/15/2004 8:15:06 AM I guess the Nova is the antithesis of the Yugo? -Original Message- From: Andreas Solarik [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 8:47 AM To:

Re: security framework!!!

2004-03-15 Thread Adam Hardy
On 03/15/2004 03:00 PM David Friedman wrote: I should have explained this a bit better. Each level is like a company or organization. It has it's own group of parties to maintain but can be managed by one or more managers. The managers share group responsibility. Only the user at the very

RE: [SwitchAction] How do you switch in between application contexts?

2004-03-15 Thread Robert Taylor
Mike, I don't believe the Servlet spec. allows you to forward to another web application. You will have to redirect. robert -Original Message- From: Mike Zatko [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 9:14 AM To: Struts Users Mailing List Subject: Re: [SwitchAction]

RE: Multibox and selected values

2004-03-15 Thread Saul Q Yuan
I am not sure you can get the session directly in the form bean, however, you can get the current session in your action class, and in your action class, try get the current user and set it in the form bean. -Original Message- From: Amish Patel [mailto:[EMAIL PROTECTED] Sent: Sunday,

RE: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Paul, R. Chip
On a more on-topic note, where can I get info on the new features / differences in Struts 1.1 and 2.0? This page http://jakarta.apache.org/struts/status.html has a small bit of info, but I wanted a bit more. Is there a page set up with all the info or is it just making rounds in the dev list?

RE: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Larry Meadors
Doing a google search for struts jericho might be a good start. :) [EMAIL PROTECTED] 03/15/04 8:40 AM On a more on-topic note, where can I get info on the new features / differences in Struts 1.1 and 2.0? - To unsubscribe,

RE: Multibox and selected values

2004-03-15 Thread Amish Patel
How can I do what you are telling me do. Look at my code logic:iterate name=associateUserRoleForm property=allRoles id=element html:multibox property=selectedRoles bean:write name=element / /html:multibox bean:write name=element / br / /logic:iterate How can I pass the user

Re: [SwitchAction] How do you switch in between application contexts?

2004-03-15 Thread Mike Zatko
I know, I'm sorry I meant redirect. I'm just wondering if struts allows an elegent way to create redirects to other applications without hardcoding it? Robert Taylor wrote: Mike, I don't believe the Servlet spec. allows you to forward to another web application. You will have to redirect.

RE: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Ted Husted
The Apache convention is to give proposals a codename. Once a working implementation is available, then, and only then, do we start making decisions that might ultimately lead to assigning version numbers. Absolutely no one is saying that this proposal is going to be Struts 2.0. It's just a

Re: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Jignesh Patel
http://raibledesigns.com on this it is available find out.But not difference just download test build1.2 and make difference note and post it. -Jignesh On Monday 15 March 2004 21:14, Larry Meadors wrote: Doing a google search for struts jericho might be a good start. :) : [EMAIL

Re: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Brandon Goodin
no hablar engles? [EMAIL PROTECTED] 3/15/2004 9:15:54 AM http://raibledesigns.com on this it is available find out.But not difference just download test build1.2 and make difference note and post it. -Jignesh On Monday 15 March 2004 21:14, Larry Meadors wrote: Doing a google search for

RE: Multibox and selected values

2004-03-15 Thread Craig Tataryn
I've done this in the past within an ActionForm like so: this.servlet.getServletContext() Craig. tataryn:craig/ On Mon, 15 Mar 2004 10:40:09 -0500, Saul Q Yuan wrote: I am not sure you can get the session directly in the form bean, however, you can get the current session in your action

RE: [SwitchAction] How do you switch in between application contexts?

2004-03-15 Thread Robert Taylor
In your struts-config.xml file you can define forwards to redirect instead of forwarding. robert -Original Message- From: Mike Zatko [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 11:11 AM To: Struts Users Mailing List Subject: Re: [SwitchAction] How do you switch in

RE: Multibox and selected values

2004-03-15 Thread Amish Patel
And then how do I get the session from there? I looked at the API and the servlet context object does not have access to the HttpSession object. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Multibox and selected

RE: Multibox and selected values

2004-03-15 Thread Saul Q Yuan
Well the idea is rather than accessing this jsp page directly, try accessing it through an action mapping, say /userInfo.do, so it goes through an Action first before landing on the jsp page. In the Action class, you can do all the data preparation work as discussed in previous emails.

FW: Insert arguments into Validator error messages?

2004-03-15 Thread Brendan Richards
Hi, I'm getting exactly this problem posted last year. I've seen many posts on validator resource bundles including this patch: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868 But have not found THE universally adopted solution. Just to restate the problem: I have a resource

RE: Multibox and selected values

2004-03-15 Thread Craig Tataryn
this.servlet.getServletContext().getAttribute() should give you access to beans in the user session. Craig. On Mon, 15 Mar 2004 11:53:13 -0500, Amish Patel wrote: And then how do I get the session from there? I looked at the API and the servlet context object does not have access to the

RE: Multibox and selected values

2004-03-15 Thread Wendy Smoak
From: Craig Tataryn [mailto:[EMAIL PROTECTED] this.servlet.getServletContext().getAttribute() should give you access to beans in the user session. Application/Context scope != Session scope -- Wendy Smoak - To

RE: validator validwhen error (Repost)

2004-03-15 Thread Betty Koon
Anyone has any idea? I haven't seen anyone's reply. Thanks. -Betty -Original Message- From: Betty Koon [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 8:07 PM To: [EMAIL PROTECTED] Subject: validator validwhen error Hi, I got the following validator error, but not sure why.

No warnings logged for missing forward

2004-03-15 Thread Wendy Smoak
I've just spent too much time trying to find out why, when I did findForward(standard), I was being sent to a blank page. Turns out that I should have been doing getInputForward(), I don't have a 'standard' forward in struts-config.xml. Fine, it was all my fault. But *no* warnings appeared in

ActionForm necessary?

2004-03-15 Thread Frank Burns
I have a jsp form which has fields that require no validation. So I don't need to validate the form input. If I don't include an ActionForm, I get a ... null form ... error message. Does this mean that I MUST create ActionForms, even if they are empty -- i.e., no validate() method and no

RE: ActionForm necessary?

2004-03-15 Thread Johann Reyes
Hello Frank ActionForm in no necesary if you don't use the html:form tag.. if you use it then you have to use an actionform even if you don't have any validation on it. Hope it helps, Johann -Original Message- From: Frank Burns [mailto:[EMAIL PROTECTED] Sent:

RE: ActionForm necessary?

2004-03-15 Thread Wendy Smoak
From: Frank Burns [mailto:[EMAIL PROTECTED] I have a jsp form which has fields that require no validation. So I don't need to validate the form input. If I don't include an ActionForm, I get a ... null form ... error message. Does this mean that I MUST create ActionForms, even if they

RE: extending using struts

2004-03-15 Thread Qureshi, Affan
How are you transferring control from ServletA to ServletB? The request objects will only be shared if you do a server-side forward or include (using requestDispatcher for example). Otherwise if both the servlets belong to the same application the session and servletContext object will be

server side date validation

2004-03-15 Thread Jignesh Patel
Can anybody give me example code to validate date towards server side? -Jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Accessing boolean attribute using logic

2004-03-15 Thread Theodosios Paschalidis
Hi all, I have unsuccessfuly spent all this time trying to figure this and it must be very simple... In my JSP I have code like this: logic:equal scope=session name=userid property=Admin value=false for a bean boolean property defined like this: private boolean admin = false; public boolean

RE: Accessing boolean attribute using logic

2004-03-15 Thread Robert Taylor
Try this: logic:equal scope=session name=userid property=admin value=false robert -Original Message- From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 2:04 PM To: [EMAIL PROTECTED] Subject: Accessing boolean attribute using logic Hi all, I

Context relative URL

2004-03-15 Thread Joao Batistella
Hello! I have the following HTML img tag: html:img page=/images/inicial.gif border=0 onmouseover=this.src='/images/inicio-over.gif' onmousedown=this.src='/images/inicio-down.gif' onmouseout=this.src='/images/inicio.gif'/ The problem is that the page attribute is ok,

RE: Multibox and selected values

2004-03-15 Thread Craig Tataryn
Oh right, sorry yeah my code looks in the Application scope in this instance. For getting the request scope variables I needed I had subclassed DispatchAction for my project and set the properties on my form bean which were grabbed from the request from within an overriden dispatchMethod

RE: error message display

2004-03-15 Thread Paul, R. Chip
There's also header and footer properties that you can set to avoid having this on every line. For instance in our project we display them as a list: errors.header=font color=redul errors.prefix=li errors.suffix=/li errors.footer=/ul/font Header goes before the first error,

dynamic javascript forms

2004-03-15 Thread mike barretta
thanks in advance for any help... i have a form where i let the user choose how many text input fields they want and then via javascript, the inputs are displayed. ex: user has a select box to make a choice of 1-10. after selection is made, the onChange event will fire and write however many

Re: Context relative URL

2004-03-15 Thread Geeta Ramani
Hi JP: I believe you can use html:rewrite for this. As in: onmouseover=this.src='html:rewrite page=/images/inicio-over.gif /' etc. Hope this helps, Geeta Joao Batistella wrote: Hello! How can I have this generated with all the images with myapp before the source of the image? Like this:

Re: dynamic javascript forms

2004-03-15 Thread Geeta Ramani
How about usng more Javascript and using onFocus() (or is it onChange()?) to populate hidden fields which can be picked up by your form bean..? (Not a solution I like but then i hate most all Javascript..) regards, Geeta mike barretta wrote: thanks in advance for any help... i have a form

RE: dynamic javascript forms

2004-03-15 Thread Hookom, Jacob
http://www-106.ibm.com/developerworks/web/library/wa-resc/ -Original Message- From: mike barretta [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 1:35 PM To: [EMAIL PROTECTED] Subject: dynamic javascript forms thanks in advance for any help... i have a form where i let the user

Re: Users logs off

2004-03-15 Thread mike barretta
you can monitor sessions by writing a session listner that extends javax.http.servlet.HttpSessionListener also, you'll need to add a descriptor to web.xml: listener listener-classyour.listener/listener-class /listener just include some debugs in the sessionCreate() and sessionDestroy

RE: Fundamental Struts Concept

2004-03-15 Thread Robert Nocera
Ed, I'm not sure I understand your question exactly, but I'll answer the best I can. The only information that is sent to the client is the HTML that you see in the browser. The JSP gets converted to a servlet and the servlet just writes to the HTTPResponse, not the HTTPRequest. The request

RE: dynamic javascript forms

2004-03-15 Thread Robert Nocera
I'm pretty sure you can do it if the text inputs are set up in the form as an Array of Strings and if you create your input tags to match what struts would expect from an array. If you do that, you can have your javascript create the fields dynamically as you said. It sounds like you tried this

Re: [OT] Jericho == Struts 2.0?

2004-03-15 Thread Nadeem Bitar
Which role will struts play when JSF matures, and JSF 2.0 is released is what interests me more than the proposed name of struts 2.0. On Mon, 2004-03-15 at 09:26 -0700, Brandon Goodin wrote: no hablar engles? [EMAIL PROTECTED] 3/15/2004 9:15:54 AM http://raibledesigns.com on this it

RE: server side date validation

2004-03-15 Thread Anderson, James H [IT]
formset form name=ActivityViewForm field property=starting depends=date arg0 key=ActivityViewForm.starting.displayname/ var var-namedatePatternStrict/var-name var-valueMM/dd//var-value /var

[OT] Search string tokenizer

2004-03-15 Thread Robert Taylor
I did a google search on this and didn't really come up with anything useful. Before I implement this myself, is there an existing implementation of parsing a search string which would produce tokens similar to how Google or other search engines parse search strings. For example, I would like to

Re: [OT] Search string tokenizer

2004-03-15 Thread Larry Meadors
String.split() may be able to do that if you are a regex stud (or know one...or are good with google).. Larry [EMAIL PROTECTED] 03/15/04 2:20 PM I did a google search on this and didn't really come up with anything useful. Before I implement this myself, is there an existing implementation of

  1   2   >