RE: [Question] Checkbox multi select problem.

2003-09-30 Thread hari_s
u can give index for every checkbox and then access the value of the records according to this index. it's simple with html-el:checkbox property=chk[${idx}]... -Original Message- From: Rajesh M Vasudevan [mailto:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 11:45 PM To:

RE: dynamic properties in jsp

2003-09-30 Thread Andrew Hill
Have a look at the nested stuff. http://www.keyboardmonkey.com/next/index.jsp -Original Message- From: hari_s [mailto:[EMAIL PROTECTED] Sent: Tuesday, 30 September 2003 14:06 To: 'Struts Users Mailing List' Subject: RE: dynamic properties in jsp I think it will be simple if u handle it

Re: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Caroline Jen
My welcome page is displayed as the very first screen without any problem. The page has logic:present and logic:notPresent tags, which test if any registered user has logged on. The problem occurred after I filled out username, and clicked the Submit button. Thereafter, the welcome page was

Re: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread amind
Your missing html:form My welcome page is displayed as the very first screen without any problem. The page has logic:present and logic:notPresent tags, which test if any registered user has logged on. The problem occurred after I filled out username, and clicked the Submit button.

Re: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread amind
You're missing html:form My welcome page is displayed as the very first screen without any problem. The page has logic:present and logic:notPresent tags, which test if any registered user has logged on. The problem occurred after I filled out username, and clicked the Submit button.

Re: Connection Pooling...

2003-09-30 Thread Navneet Karnani
I think the connection manager that struts ships with has primitive connection pooling built into it. Just read the docs. - Navneet Joseph William said the following on 30/09/2003 4:17 AM: Hello... I am developing a small application using Struts and am trying to connect with MYSQL... I got

message key on jsp?

2003-09-30 Thread muzammil shahbaz
Hello! For example; I have a key defined in ApplicationResources.properties file as msg.key. This can be accessed on jsp as bean:message key=msg.key /. But I want to store this key in my local variable on a jsp. How can this be possible? Thanks in advance. Regards, MMS

Re: change dynamically ApplicationResources path

2003-09-30 Thread Caroline Lauferon
Thanks a lot!! I used the second method (see code below). Caroline in struts-config.xml : message-resources parameter=do.not.care.about.this factory=fr.capgemini.webihm.struts.ExternPropertyMessageResourcesFactory / public class ExternPropertyMessageResourcesFactory extends

Re: message key on jsp?

2003-09-30 Thread Koni Roth
If I understand you correct, it's easy like this: input type=hidden name=myKey value=bean:message key=msg.key/ Greets Koni muzammil shahbaz wrote: Hello! For example; I have a key defined in ApplicationResources.properties file as msg.key. This can be accessed on jsp as bean:message

Re: message key on jsp?

2003-09-30 Thread Thomas Cornet
Here is how you can do it : bean:define id=variableName bean:message key=msg.key/ /bean:define HTH, Thomas At 10:20 30/09/2003, you wrote: Hello! For example; I have a key defined in ApplicationResources.properties file as msg.key. This can be accessed on jsp as bean:message key=msg.key /.

RE: message key on jsp?

2003-09-30 Thread muzammil shahbaz
I don't how is it working at your side, I am using struts 1.0 and gives me parsing exception that Tag 'define' cannot have a body. Any confirmations?? -- From: Thomas Cornet [SMTP:[EMAIL PROTECTED] Sent: Tuesday,

No bean specified

2003-09-30 Thread sujithp
Hi all, Does anybody know what causes this exception?? javax.servlet.ServletException: BeanUtils.populate org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254) org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:821)

Re: BUTTON element

2003-09-30 Thread Graham Leggett
Thomas Cornet wrote: http://jakarta.apache.org/struts/userGuide/struts-html.html#button I suppose this is what you're searching for... Nope, the link describes the input type=button tag, not the button tag. Regards, Graham -- - [EMAIL PROTECTED]

How to do a refresh ?

2003-09-30 Thread Herve AGNOUX
Hi, I should want to do a META HTTP-EQUIV=refresh CONTENT=0;URL=xxx, to produce an action (a LookupDispatchAction idealy), then a forward with the result of this action. How is it possible ? Thanks in advance for your help. -- SARL diaam informatique - 04 50 44 26 54 Ingenierie,

multi-step form

2003-09-30 Thread Florent LOTHON
LO I need to make a multi-step form. I have a problem between 2 step (2 JSP Form). the user fill the form of step 1 (1.jsp) and submit to Action1 Action1 stores the data provided by the user and this same action have to fill a second form data shown by the second JSP (2.jsp). i made this

RE: [struts workflow extension]workflow problem incase of validation errors.

2003-09-30 Thread shirishchandra.sakhare
Hi Mattias, We have run into another problem with the workflow extension. We are not using the auto validation mechanism of struts(We set validate=false in action mapping.) Following is the scenario where we run into problem.The relevant workflow action mapping parameters are indicated in

RE: No bean specified

2003-09-30 Thread Mike Jasnowski
This generally means that somewhere you named a bean, either in a tag or a call to some BeanUtils method. However the bean name specified could not be located, perhaps it's in the wrong scope, perhaps it's using a wrong value for the name attribute on a tag. -Original Message- From:

Re: [struts workflow extension]workflow problem incase of validation errors.

2003-09-30 Thread Matthias Bauer
Shirish, I really like your mails, because you always seem to be answering your questions for yourself. :-) It does not make any difference whether the validation checks are done in the form or the action: The workflows' states have already been updated before. Thus, you need to point your

Re: No bean specified

2003-09-30 Thread Caroline Lauferon
or maybe you didn't define which bean to use for this action (name parameter of action in struts-config) Hope it helps Caroline - Original Message - From: Mike Jasnowski [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 3:38 PM

Servlet action is currently unavailable

2003-09-30 Thread Parthasarathy Kesavaraj
Hai I am using Tomcat 4.1.27 and struts 1.1.When i call a .do from my browser i am getting the following error HTTP Status 503 - Servlet action is currently unavailable type Status report message Servlet action is currently unavailable description The requested service (Servlet action is

Re: Servlet action is currently unavailable

2003-09-30 Thread Sgarlata Matt
Try checking in the Tomcat log. You can usually find the source of the error there. The Tomcat log is in tomcat_home\logs. If your Tomcat is set up like mine, the correct log file will be localhost_log.2003-09-30.txt Matt - Original Message - From: Parthasarathy Kesavaraj [EMAIL

Re: Servlet action is currently unavailable

2003-09-30 Thread Koni Roth
Hi Partha Rarely I run into the same error. Until now I couldn't exactly localize the reason. My guess is the the database connection. I use Struts 1.1 data-sources with MS SQL-Server and it seems the database connection suddenly dies... After restarting Tomcat everything works fine again.

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Karr, David
I would want to see your web.xml, and any information that shows up in the Tomcat console (not log file). -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] I am experimenting a basic application - logon. I got the first two screens working without problem. However,

Re: BUTTON element

2003-09-30 Thread Robert Leland
Graham Leggett wrote: Thomas Cornet wrote: http://jakarta.apache.org/struts/userGuide/struts-html.html#button I suppose this is what you're searching for... Nope, the link describes the input type=button tag, not the button tag. This one:

Re: Connection Pooling...

2003-09-30 Thread Joseph William
Hi... This is what I have done in my application... I had specified the datasource in the struts config file... data-sources data-source set-property property=autoCommit value=false/ set-property property=description value=MySQL/ set-property property=driverClass

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Srinivas Gunturu
I have seen this behavior when the jsp page I am forwarding to is not found such as in wrong location, wrong case (Welcome.jsp vs welcome.jsp). But we are using tiles so not sure if it is tiles specific or not. Hope this helps. [EMAIL PROTECTED] 09/30/03 10:28AM I would want to see your

[POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Mainguy, Mike
Next in my series of struts-user polls (please complain if this gets old). What sort of ActionForms does everyone use? #1 ActionForm #2 DynaActionForm Personally, I'm an advocate of the DynaActionForm as it seems to be able to do 80-90% of everything I need to do and everything else can be done

Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Sgarlata Matt
Definitely not old; I love the polls! There is not a single regular ActionForm in my project. #2 all the way. I will also mention that Craig McClanahan did some speed tests of ActionForms vs. DynaActionForms and since ActionForms use reflection whereas DynaActionForms do simple method calls on

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Wendy Smoak
Next in my series of struts-user polls (please complain if this gets old). What sort of ActionForms does everyone use? #1 ActionForm #2 DynaActionForm DynaValidatorForm, and what do you mean you can't do custom validation? I just override validate(...) and do my thing, then call

html:errors indexed?

2003-09-30 Thread Matthias Fraass
Hi, I've got a JSP page with some elements which are drawn by iterating through a collection. Each of these elements can be validated individually. The problem is that html:errors doesn't handle the indexed tag as the other controls (e.g. html:text) do. How can I show specific error messages

Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Koni Roth
#2 DynaActionForm I don't think custom validation is difficult. We use commons validation together with custom validation and it works fine. Koni Mainguy, Mike wrote: Next in my series of struts-user polls (please complain if this gets old). What sort of ActionForms does everyone use? #1

books and tutorials

2003-09-30 Thread Carlos Llona
Hello Im new in Struts but its very interesting,but I dont find goob books or tutorials to download, please if anyone knows links send me plz byte - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Richard J. Duncan
In my experience, this is because your execute/perform is returning null as the result of findForward(forwardname) not finding anything. Usually, this is because I misspelled the forward name. Returning null from execute/perform tells struts that your method wrote the response itself.

Re: books and tutorials

2003-09-30 Thread Sergey Smirnov
Try to start from http://jakarta.apache.org/struts/resources/tutorials.html Carlos Llona [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Im new in Struts but its very interesting,but I dont find goob books or tutorials to download, please if anyone knows links send me plz

RE: books and tutorials

2003-09-30 Thread Mark Galbreath
http://www.catb.org/~esr/faqs/smart-questions.html The Definitive Answer. -Original Message- From: Carlos Llona [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 1:07 PM Im new in Struts but its very interesting,but I dont find goob books or tutorials to download, please if

Websphere and Struts modules

2003-09-30 Thread Ruben Carvalho
Hello everybody, I have a stupid error which I think is because of IBM but I can't prove it. I'm trying to use modules with IBM, I've configured web.xml like: init-param param-nameconfig/param-name param-value/WEB-INF/conf/struts-default.xml/param-value /init-param

Retrieving value of java script variable in a Scriplet

2003-09-30 Thread Raghu.Ramakrishnan
Hi, Does any one know how I could retrive a Java script variable between a scriplet code Eg: for (var i = 0; i= (listSize-1); i++) { var pay = '%= orgAmcStmt %'; alert (The current Index is Before the Scriplet is: + pay);

RE: Retrieving value of java script variable in a Scriplet

2003-09-30 Thread Mike Jasnowski
The two are evaluated at different times, one on the server, and one on the client -Original Message- From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 1:19 PM To: Struts Users Mailing List Subject: Retrieving value of java script variable in a Scriplet

Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Brandon Goodin
#1 Reasons: -Dynas massive struts configs are annoying and the runtime errors bite. -DynaForm time saving is insignificant (how long does it take for your ide to generate getters/setters?). -Refactoring is easier is traditional ActionForms -Also, for all the time that you spend restarting your

RE: Retrieving value of java script variable in a Scriplet

2003-09-30 Thread Karr, David
I'm afraid you've misunderstood the lifecycle of scriplet code vs. JavaScript code. Scriptlets are executed on the server side, and generate output which is processed on the client side, which includes the JavaScript that you've generated. The JavaScript is then executed on the client side.

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Chen, Gin
#2 any chance I get. +1 on Wendy's validation comments too. Custom validation couldn't be easier in a dynaform -Tim -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 12:57 PM To: Struts Users Mailing List Subject: RE: [POLL] ActionFrom vs

RE: books and tutorials

2003-09-30 Thread Ventin, Vince
A couple of good books: Programming Jakarta Struts by Chuck Cavaness - published by O'Reilly Struts in Action by Ted Husted - published by Manning (No one book has everything you will need but these two have been helpful to me.) Also go to the Struts site: http://jakarta.apache.org/struts/

Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Michael Ruppin
+1 (#1). m --- Brandon Goodin [EMAIL PROTECTED] wrote: #1 Reasons: -Dynas massive struts configs are annoying and the runtime errors bite. -DynaForm time saving is insignificant (how long does it take for your ide to generate getters/setters?). -Refactoring is easier is traditional

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Mark Galbreath
As Linus Tovalds said about SCO, You must be smokin' crack. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 1:28 PM #1 Reasons: -Dynas massive struts configs are annoying and the runtime errors bite. -DynaForm time saving is

Re: books and tutorials

2003-09-30 Thread Adolfo Miguelez
Carlos, definitly Struts is absolutely interesting. It pays back its not so flat learning curve. In the front page of the project you will find books and resources enough to learn. You will find indeed a link to the following page plenty of good Struts stuff:

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Steve Raeburn
#2 - It was I revelation when I realised I didn't need to write ActionForms! (But one day soon I'm going to look at XDoclet to see what that can do for me). Steve -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: September 30, 2003 9:52 AM To: [EMAIL PROTECTED]

RE: books and tutorials

2003-09-30 Thread Jay Zylstra
So far, I've learned all I need from four sources: 1. _Programming Jakarta Struts_ by Chuck Cavaness, O'Reilly http://www.oreilly.com/catalog/jakarta/ 2. The Struts User Guide http://jakarta.apache.org/struts/userGuide/ 3. The Struts-User mailing list archive

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Chen, Gin
You'll love Xdoclet. Unfortunately it doesn't provide anything more than a merge point for DynaForms but still very very cool. Try a simple struts app using it (I think there's an example one on the site). -Tim -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent:

Re: Websphere and Struts modules

2003-09-30 Thread Susan Bradeen
Is your application really not working? I get these same errors for my default module (I'm not using different modules), but my application is correct and works fine. It seems that WebSphere tries to get overly helpful with its syntax validation at times. Susan Bradeen On 09/30/2003 01:24:17

Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Nick
What else would you like the DynaForms for XDoclet to do? Since I released the patch to 1.2b3 (or beta 4?), I haven't had any feedback about it. On Tue, Sep 30, 2003 at 02:06:11PM -0400, Chen, Gin wrote: You'll love Xdoclet. Unfortunately it doesn't provide anything more than a merge point

RE: Websphere and Struts modules

2003-09-30 Thread Ruben Carvalho
My application is working fine. The problem is I can't look at those errors :) Are there any other opinions? Rben Carvalho -Mensagem original- De: Susan Bradeen [mailto:[EMAIL PROTECTED] Enviada: ter 30-09-2003 19:17 Para: Struts Users Mailing List

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Gandle, Panchasheel
I agree with Marks reasons for using the ActionForms, They are cleanly organized in cleanly organized in package structures. If you have a nice naming convention for ActionForm matching JSPs, you know rightaway which form bean is used. In #2 you have to search for it in configs and the property

Problems executing an action twice ...

2003-09-30 Thread Michel Bertrand
Hello ! I'm facing something I call strange struts behavior. I have the following situation : 1) I have a list iterator on a form. Each list member has a link calling a href=./someAction.do?parameter=value. 2) When I execute the action once everything works fine. It goes to the URL set by

RE: Problems executing an action twice ...

2003-09-30 Thread Karr, David
-Original Message- From: Michel Bertrand [mailto:[EMAIL PROTECTED] I'm facing something I call strange struts behavior. I have the following situation : 1) I have a list iterator on a form. Each list member has a link calling a href=./someAction.do?parameter=value. 2)

message-resources in Struts 1.0?

2003-09-30 Thread Bob Lee
Is it possible to cleanly patch Struts 1.0 to use a custom message resources factory? Thanks, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Chen, Gin
For starters: If you have a dynaform defined like so: form-bean name=searchForm type=com.foo.ui.form.SearchForm form-property name=userName type=java.lang.String/ /form-bean You have to define the above in the merge file and then define the java supporting class with no Xdoclets

an exception problem!!!

2003-09-30 Thread khabot zakaria
Hi, I have this exception message and don't know the source of the problem : 500 Internal Server Error javax.servlet.jsp.JspException: Exception creating bean of class mypackage5.Book: {1} void org.apache.struts.taglib.html.FormTag.initFormBean() FormTag.java:563

Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread José Ventura
+1 (#1) IMHO, especially because of IDE auto-completion (wich works with normal ActionForms but not with Dynas). It really helps me when I don't remember the exact spelling of a displayed field -- or when I don't remember WHAT is displayed on screen :P The time to generate new getters and

Re: message-resources in Struts 1.0?

2003-09-30 Thread James Mitchell
It is only possible if you have the source code ;) -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 770.822.3359 AIM:jmitchtx - Original Message - From: Bob Lee [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Ted Husted
As mentioned, you can subclass DynaActionForm and create whatever custom validations you need for a particular set of fields. What's trickier is using different Validator validations without defining a new DynaActionForm. Here, the trick is that the Validator goes by the attribute property,

Websphere AS 5.0.2 problems with Struts 1.1... No getter for member of bean of type java.sql.TimeStamp...

2003-09-30 Thread Teddy Wang
I get a weird error when trying to hit a struts based JSP in my application. The app server claims that no getter exists for a class even though I'm positive one exists and yes I double-checked spelling and capitalization. The type is TimeStamp... Has anybody else ever run into this error? Is

Websphere AS 5.0.2 problems with Struts 1.1... No getter for member of bean of type java.sql.TimeStamp...

2003-09-30 Thread Teddy Wang
I get a weird error when trying to hit a struts based JSP in my application. The app server claims that no getter exists for a class even though I'm positive one exists and yes I double-checked spelling and capitalization. The type is TimeStamp... Has anybody else ever run into this error? Is

configure default error page in web.xml

2003-09-30 Thread Zhang, Larry (L.)
HI, I have a request to catch a Java Exception in the servlet and display an error page. The functionality requires that we display different error message for different exception. A way to do this is to put try and catch logic in servlet, and if an Exception is caught, I do

RE: configure default error page in web.xml

2003-09-30 Thread Mike Jasnowski
It's too bad you couldn't forward that to an Action, which could then forward it to a custom page, or rethrow so a Struts exception handler could grab it. -Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 3:13 PM To: Struts Users

Re: [Poll] action mappings

2003-09-30 Thread Ted Husted
I use ActionMappings to represent a use-case or client story, rather than an atomic operation. The form-bean and validator collect the data the story needs, and an Action passes those to the business layer, and return the outcome. The business layer class is specified as a parameter so that I

Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Nick
Okay, you missed the message I sent out a few days ago regarding this. I've patched XDoclet to allow you to specify your DynaForm configs as XDoclet tags. An example: /** @struts.dynaform name=testForm type=org.example.form.BaseDynaForm */ public class Test { /** *

externalizing the button hashmap for the LookupDispatchAction?

2003-09-30 Thread Mick Knutson
I am just wondering if anyone has already made a nicer way to manage the hashmap for the button labels on the LookupDispatchAction? I hate having to continually add elements in the code when I add a new button. --- Thanks Mick Knutson coming soon: Your SOS: Your personal emergency contact

RE: externalizing the button hashmap for the LookupDispatchAction ?

2003-09-30 Thread Matt Raible
I've done it with a LookupMethods.properties file that contains the following: button.add=add button.cancel=cancel button.copy=copy button.edit=edit button.delete=delete button.save=save button.search=search Then I have the following method in my BaseAction class: /** * Provides the

Re: externalizing the button hashmap for the LookupDispatchAction?

2003-09-30 Thread Mick Knutson
Thanks. That is heaps easier than hacking the code each time. Much appreciated! --- Thanks Mick Knutson coming soon: Your SOS: Your personal emergency contact system. http://YourSoS.com +001(805) 563-0666 Office +001 (708) 570-2772 Fax --- - Original Message - From: Matt Raible [EMAIL

Application Resources Error messages

2003-09-30 Thread Fenderbosch, Eric
I'm confused on how error messages work. I've created a properties file TrackMessageResource.properties in the proper package structure and specified it in my struts-config like this: message-resources null=false parameter=com.*.cc.track.struts.TrackMessageResources/ I'm using the

RES: Problems executing an action twice ...

2003-09-30 Thread Michel Bertrand
Hello again ... Why not using ./ ? Using this I can run my action once, without, it's not possible ... I have an wrong mapping printed in the URL bar ... -Mensagem original- De: Karr, David [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 30 de setembro de 2003 15:40 Para: Struts

RE: configure default error page in web.xml

2003-09-30 Thread Kris Schneider
You can certainly combine approaches to let a Struts action handle pretty much any exception in the app. In web.xml: error-page exception-typejava.lang.Exception/exception-type location/do/error/location /error-page Where /do/error is obviously a Struts action mapping path. Quoting Mike

RE: externalizing the button hashmap for the LookupDispatchAction ?

2003-09-30 Thread Chen, Gin
But if your adding a new button then you will have to add the new code for it anyways. So would this help? If it was something that would allow you to not have to redeploy then it might make sense but really we are just talking about one more line of code ;) -Tim -Original Message- From:

RE: configure default error page in web.xml

2003-09-30 Thread Zhang, Larry (L.)
I am thinking not to use struts. I have this in my web.xml, but when there is an Exception in servlet, I couldn't see the error page as expected. Did you guys have any luck to have this work? Thanks. error-page exception-typejava.lang.Exception/exception-type

RE: Application Resources Error messages

2003-09-30 Thread Fenderbosch, Eric
Agh! I just didn't have it in the right location. It was in the package structure alright, just in the war root, not WEB-INF/classes. Now, however, I'm getting this: User name can not be less than null characters. Why doesn't it know how many characters? -Original Message- From:

[maybeOT] multi-select drop down list value?

2003-09-30 Thread Julie . Huang
Hi, if I use multi-select option box in my action form, after I select some options and submit the form, the selected values are stored in a array of String. My question is : is that possible to get both selected values labels instead of only values? thanx! = = = = = = = = = == = = = = =

RE: [maybeOT] multi-select drop down list value?

2003-09-30 Thread Chen, Gin
One way to do this is to make your values a combination of value/label. You can do something like: html-el:option value='${foo.label}|${foo.value}'/ Another way is just to have a lookup utility class to look up labels from values after the submit. Ie. LookupUtil.getLabel( value ); Like

RE: configure default error page in web.xml

2003-09-30 Thread Chen, Gin
The path should be context relative (starting with /) According to the Servlet Spec: The location element contains the location of the resource in the web application relative to the root of the web application. The value of the location must have a leading '/'. Used in: error-page -Tim

RE: Application Resources Error messages

2003-09-30 Thread Chen, Gin
This has to do with your validation xml. You should have an arg0 and an arg1 that represent {0} and {1} in your message respectively. Check how you have it defined. -Tim -Original Message- From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 4:11 PM To:

RE: Application Resources Error messages

2003-09-30 Thread Fenderbosch, Eric
I just came to the same conclusion a coupld of minutes ago. Now the question is, if I define both a minlength and a maxlength, do I have to define it like this: field property=userName depends=required,minlength,maxlength arg0 key=label.userName/ arg1 key=4 resource=false/

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Caroline Jen
I am very grateful for the overwhelming help that I have received. I followed the advices given by all of you and paid special attention to possible mis-spelling in forward mapping. I did not find any mis-spelling or mixing up of lower case/upper case. Finally, I re-typed all the key words in

RE: Application Resources Error messages

2003-09-30 Thread Fenderbosch, Eric
I finally got smart and downloaded the storefront example from O'Reilly. This is working just fine: field property=userName depends=required,minlength,maxlength arg0 key=label.userName/ arg1 name=minlength key=${var:minlength} resource=false/ arg2 name=maxlength

Re: message-resources in Struts 1.0?

2003-09-30 Thread Bob Lee
Thanks, James. ;) If anyone out there has done this and could tell me if this is a one class change or if I will have to make changes in 15 different places, it would be much appreciated. Thanks, Bob James Mitchell wrote: It is only possible if you have the source code ;) -- James Mitchell

RE: Application Resources Error messages

2003-09-30 Thread Steve Raeburn
Take a look at the validator example application that comes in the Struts distribution. There is an example of referencing the variable so you don't define it twice. In your case, it should be: field property=userName depends=required,minlength,maxlength arg0 key=label.userName/

accessing indexed field in action

2003-09-30 Thread david.ballard
I've been googling for information on how to access indexed form fields, but haven't found much. I'm thinking i'm going about the problem the wrong way. I have a table of addresses with a textbox on each row, so a user can enter their ID's for an address. I want to pass my ID (saved in the

Argument Type mismatch Exception...(Nested Tags)

2003-09-30 Thread Rajanala, Srinivas
Hi, I am getting the following error when I submit the html form: Sep 30, 2003 5:10:01 PM EDT Error HTTP 101017 [ServletContext(id=7779161,name=omr,co ntext-path=/omr)] Root cause of ServletException java.lang.IllegalArgumentException: argument type mismatch at

[OT] JAVA_OPTS option starting Catalina/JBoss?

2003-09-30 Thread Mick Knutson
sorry for the OT message... I have been suggested to add -Xrs to JAVA_OPTS to help with Catalina shutting down on me after 30 minutes of inactivity. Do I just add JAVA_OPTS=-Xrs to my global profile in /etc/profile and Catalina will automatically add those arguments? --- Thanks Mick Knutson

already committed response error

2003-09-30 Thread tarun.matai
Hi All, I am getting this error (see the stack trace), any idea why this happens. ServletException in:/tiles/tjspProvideChallengeAnswersConfirmTiles.jsp] Cannot forward a response that is already committed' javax.servlet.jsp.JspException: Cannot forward a response that is already

RE: Proper Steps to Start Coding Struts

2003-09-30 Thread Marco Tedone
Well, depending on what your application does, there could be also the possibility to plan the business framework (i.e. where the logic is contained and/or the database information exchange). The logic should contain any code not directly interacting with the web (in a work it should be portable

Validator problem: html:messages tag and NullPointerException

2003-09-30 Thread Davide Bruzzone
Hello... I'm using the Struts Validator, and have come across some strange behavior: On only one of the pages that uses the Validator (Not all of them... Some of the pages that use the Validator work fine, which makes the problem even more confusing), the following code causes a

Re: an exception problem!!!

2003-09-30 Thread Adam L
the source of the problem is detailed in the exception you posted. - Original Message - From: khabot zakaria [EMAIL PROTECTED] To: Struts-user [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 11:54 AM Subject: an exception problem!!! Hi, I have this exception message and don't know

Re: Websphere and Struts modules

2003-09-30 Thread Paul Rashidi
Did you make sure your jsp is located withing the module1 subdirectory of your jsp directory? They must be located here in order for your module to be able to reference them correctly. On Tue, 2003-09-30 at 12:24, Ruben Carvalho wrote: Hello everybody, I have a stupid error which I think is

Re: books and tutorials

2003-09-30 Thread virupaksha
Hi, Welcome to struts .. I suggest u , its better to buy a book, u can learn more in books then any other online documents.. best book i felt is, 'Programming Jakarta Struts - Chuck Cavaness'. and u can download struts IDE from http://www.exadel.com its realy very good.. some other

Same JSP for view and edit

2003-09-30 Thread Coppack Alun
I want to use a single JSP for view and edit functionality. I have no problems using the one page for edit and add functionality (and a single action as well) as these both require input fields. The issue with view is that I don't want input fields, I only want labels/text but I want to display

RE: Same JSP for view and edit

2003-09-30 Thread Chappell, Simon P
Don't do it. It seems like a good idea, but it gets very messy, very quickly. Simon -Original Message- From: Coppack Alun [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 9:05 PM To: [EMAIL PROTECTED] Subject: Same JSP for view and edit I want to use a single JSP for view

RE: books and tutorials

2003-09-30 Thread Shane Mingins
- Original Message - From: Carlos Llona [EMAIL PROTECTED] Im new in Struts but its very interesting,but I dont find goob books or tutorials to download, please if anyone knows links send me plz First port of call -- the Struts site http://jakarta.apache.org/struts/

Re: Same JSP for view and edit

2003-09-30 Thread Chris Gastin
Alun, I have the same issue, but currently Struts does not support this feature, and I don't know if they will. I might get blasted for the next few statements, but I have seen some people extend the the struts custom tag to do the same thing you are indicating. I am not saying it is the best way

RE: No bean specified

2003-09-30 Thread sujithp
Thanks all, the problem was solved. I had the same name attribute for the html:image in two different pages. When I changed one of those, the exception vanished..though I didn't know the reason. I think the message provided is quite misleading.. sujith. -Original Message- From: Caroline

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Andrew Hill
Call me old fashioned but I always use good old hand coded ActionForms. Guess I like having something my compiler can get its teeth into. :-) Now that Im using Eclipse getters and setters are no problem at all. I love that generate getter setter menu option. :-) (Validation isnt an issue for

RE: Servlet action is currently unavailable

2003-09-30 Thread Parthasarathy Kesavaraj
Hai Koni, Thanks for ur reply.I am not using any database stuff.Still i am getting the same message.I am trying to sort out.I'll let u know if i find any solution. Regards Partha -- From: Koni Roth[SMTP:[EMAIL PROTECTED] Reply To: Struts Users Mailing List Sent:

  1   2   >