Re: How To Output the Value Of a Hidden Field?

2003-12-17 Thread Koni Roth
You cannot have two properties with the same name in a form. Try: " size="82" maxlength="25" tabindex="1"/> cheers Koni Caroline Jen wrote: My JSP #2 receives a hidden field passed from JSP #1: In the JSP #2, I have a text field: and I want the value of the hidden field to be the text in the t

Re: requiredif

2003-10-28 Thread Koni Roth
http://cvs.apache.org/builds/jakarta-struts/nightly/ Ruben Orta Magan wrote: - Original Message - From: "Marc Dugger" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> "The new validwhen validation rule, which will be included into the Struts release immediately a

Re: Running struts without servlet

2003-10-22 Thread Koni Roth
As far as I know you can simply configure Struts (web.xml) to use a .jsp extension instead of the .do extension. http://marc.theaimsgroup.com/?t=10648445023&r=1&w=2 Koni Roland Carlsson wrote: Hi! I don't think i missed a line in my question. The only requests that is going to tomcat from

Re: need calendar (maybe popup) calendar

2003-10-14 Thread Koni Roth
Calendar? Sure! Here my bookmarks on this topic. ;-) http://www.mattkruse.com/javascript/calendarpopup/ http://dynarch.com/mishoo/calendar.epl http://www.aoc.nrao.edu/~bwaters/pub/taglib/calendar-taglib.html http://www.servletsuite.com/servlets/calendar.htm http://www.mattkruse.com/javascript/java

Re: view struts tag in Design page(Dreamveaver)

2003-10-13 Thread Koni Roth
Maybe you will find a solution here... http://marc.theaimsgroup.com/?l=struts-user&w=2&r=1&s=dreamweaver&q=b Just a guess. Koni Tim Smal wrote: We're using Adobe Golive for designing purposes. No problems with viewing the struts tags. In Dreamweaver I have no idea how you can enable them. -Ori

Re: validating not "" within a pull-down menu?

2003-10-13 Thread Koni Roth
See commons-validation which comes with struts. The 'required' attribute does it for you. Cheers Koni Mick Knutson wrote: I have a pull-down menu with 3 values "", "gold", and "platinum". How can I validate that "" is not the selected option? --- Thanks Mick Knutson The world is a

Re: [Poll] Action Form data types

2003-10-13 Thread Koni Roth
#3 Mainguy, Mike wrote: Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms and the like... Where does everyone cast their (String) request parameters to the 'proper' datatype? #1 My ActionForms only have Strings, I manually cast stuff somewh

Re: Newbie

2003-10-12 Thread Koni Roth
arter. As what struts is meant for - MVC - I was just wondering if there's a GUI available to generate JSP / Servlets (at least stubs) visually. Cheers, Gaurav - Original Message - From: "Koni Roth" To: "Struts Users Mailing List" <[EMAIL PROTECTED]>

Re: Newbie

2003-10-12 Thread Koni Roth
Hi Gaurav Download and install Struts 1.1 and study the example. http://www.apache.org/dist/jakarta/struts/binaries/jakarta-struts-1.1.zip Additionally I recommend buying a book: http://jakarta.apache.org/struts/resources/books.html Have fun Koni Gaurav Vaish wrote: Hi, I am new to struts (rea

Re: Newbie Struts Questions

2003-10-03 Thread Koni Roth
Hi Rey 1) Struts works with Tomcat standalone. 2) When I deployed my webapp I had to edit the server.xml. I simply added one line: Then I could access the webapp by: http://localhost:8080/ or http://localhost:8080/mystrutsapp Cheers Koni Reynardine wrote: Hello, I've got Java HTTP servlets ru

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 Acti

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: message key on jsp?

2003-09-30 Thread Koni Roth
If I understand you correct, it's easy like this: "> 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 . But I want to store this key in my local variable on a jsp. How can this be p

Re: creating beans.

2003-09-29 Thread Koni Roth
Have a look at the Example witch comes with struts. http://www.apache.org/dist/jakarta/struts/binaries/jakarta-struts-1.1.zip and/or study the UserGuide http://jakarta.apache.org/struts/userGuide/ general_question.equals(general_answer); have_fun; khabot zakaria wrote: Hi, How to create a bean corr

Re: uploading file

2003-09-26 Thread Koni Roth
Hi Kannan Just donne this on a Windows machine ;-) Here a hint for your Action... ... FormFile file = (FormFile)dynaForm.get("theFile"); String fileName = file.getFileName(); String filePath = "E:/apps/webapp/MyApplication/WEB-INF/uploads/"; File newPath = new File(filePath); newPath.mkdirs(); ...

Re: validation failed! please help!!!

2003-09-11 Thread Koni Roth
Your error is: Cannot find bean 'error' in any scope! Where and how do you define 'error'? Do you have something like this in you Action: ActionErrors error = new ActionErrors(); ... error = ... ... saveErrors(request, error); return new ActionForward(mapping.getInput()); ... Koni basebeans wro

Re: deployement issue

2003-09-09 Thread Koni Roth
... I want to test it with the application... -Message d'origine- De : Koni Roth [mailto:[EMAIL PROTECTED] Envoyé : mardi 9 septembre 2003 13:20 À : Struts Users Mailing List Objet : Re: deployement issue I have similar (strange) errors when my database isn't up and runni

Re: deployement issue

2003-09-09 Thread Koni Roth
I have similar (strange) errors when my database isn't up and running. Is your database connection on the production server up and running and can you connect your DB properly? Just a guess... Cheers Koni michel Van Asten wrote: Hi, I got errors when I try to run my application on the productio

Re: Validator cannot find message key

2003-09-04 Thread Koni Roth
Zone newmessage.label.audience=Target Audience ... -Original Message- From: Koni Roth [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 3:56 PM To: Struts Users Mailing List Subject: Re: Validator cannot find message key Paste the faulty part of your validation.xml

Re: Validator cannot find message key

2003-09-04 Thread Koni Roth
Paste the faulty part of your validation.xml file maybe we can see some strange things. I had a similar problem and it was only an error in writing... Yuan, Saul (TOR-ML) wrote: Hi, I am using Struts Validator for validating a multi page form, some how the Validator cannot find the messages

Re: [OT[ voice enable Java IDE

2003-08-28 Thread Koni Roth
This link seems funny but my anti virus tells me something different! WARNING TROJAN HORSE FOUND IN NETSCAPE CACHE - Office.js it's funny but be careful ... Raj Naboti wrote: I find this IDE most rewarding. Compared to crowd it shines with highest regard! Understands language you speak to

Re: How to disable a component based on bean property.

2003-08-26 Thread Koni Roth
You could use or tags: Koni deepaksawdekar wrote: Hi All, I need to disable the html:text component based on some property of bean. Any pointer how can i achive this. Thanks and Regards Deepak . - To unsubscribe, e-mail:

Re: Checkboxes

2003-08-25 Thread Koni Roth
Hi Filip See example on the really cool page of Matt Kruse: http://www.mattkruse.com/javascript/checkboxgroup/ Koni Filip Polsakiewicz wrote: Hi, I have the following problem: I have a list of 71 Checkboxes and want to have one checkbox to select all of them at once. This works fine but I cannot u

Re: suggestion needed

2003-08-25 Thread Koni Roth
Here some of my bookmarks http://www.reumann.net/do/struts/main http://forum.exadel.com/viewtopic.php?t=120 http://www.ninsky.com/struts/ http://jakarta.apache.org/struts/faqs/ http://husted.com/struts/resources/example-spec.html http://developer.novell.com/tech/1126.html and I would also recommen

Re: suggestion needed

2003-08-25 Thread Koni Roth
Here are some of my bookmarks http://www.reumann.net/do/struts/main http://forum.exadel.com/viewtopic.php?t=120 http://jakarta.apache.org/struts/faqs/ http://husted.com/struts/resources/example-spec.html http://developer.novell.com/tech/1126.html and I would also recommend buying a book: http://ja

Re: validator returns blank page

2003-08-25 Thread Koni Roth
Hi Thomas Here what I would do. struts-config.xml: LogonAction.java: ActionErrors errors = new ActionErrors(); errors = form.validate(mapping, request); // Report any errors we have discovered back to the original form if (!errors.isEmpty()) { saveErro

Re: commons-logging.properties

2003-08-18 Thread Koni Roth
Hi Duan I use SimpleLog for logging. Here my configuration for my class LogonAction. You can set individual log levels for each class. commons-logging.properties file: org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog simplelog.properties file: org.apache.commons.logging.si

Re: commons-logging.properties

2003-08-18 Thread Koni Roth
Hi Duan I use SimpleLog for logging. Here my configuration for my class LogonAction. You can set individual log levels for each class. commons-logging.properties file: org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog simplelog.properties file: org.apache.commons.logging.simp

Re: Help or tutorial

2003-08-18 Thread Koni Roth
I recommend buying a book. See http://jakarta.apache.org/struts/resources/books.html -> 'Struts in Action' is very helpful. or read the User Guide at: http://jakarta.apache.org/struts/userGuide/index.html Koni Arindam Bhattacharjee wrote: Hi All, I am a newbie in Struts. Can some one give some

Re: HTTP 404 Not Found on Actions

2003-08-18 Thread Koni Roth
Try struts 1.1 final version. Here it works ;-) Johan Wasserman - CPX Mngd Services wrote: Hi. I'm running struts 1.1-rc2 and get a 404 when entering an unrecognized username & password on the logon page for struts-example (Mailreader demo). It goes to localhost/sruts-example/logon.do but with a

Re: Displaying a single error message for multiple properties

2003-08-18 Thread Koni Roth
At the beginning I had also some problems using validation. Since I understand the power of validation it's one of the coolest thing... Validation displays you automatic one error message for multiple properties. To check if a property is empty or not, use "required" in your validation.xml. To

Re: where is JSESSIONID?

2003-08-15 Thread Koni Roth
If the browser does not accept cookies it is stored in the URL. If the browser accepts cookies it is stored in the memory (session). Koni Billy Ng wrote: Hi folks; Anybody knows where is the JSESSIONID cookie is? I search the whole Cookies folder, I can't find it. Billy Ng ---

Re: persisting session id

2003-08-15 Thread Koni Roth
As far as I know there is not really an easy way to keep the session if you close the browser. If you really want to keep it persistent you would have to save it somehow in a file or in a database. Search at google for more information. Koni Billy Ng wrote: Hi folks, This is really a tomcat r

Re: How to configure commons-logging on JDK1.4

2003-08-14 Thread Koni Roth
Koni Roth <[EMAIL PROTECTED]>: Yes, my commons-logging.properties file is in the CLASSPATH (WEB-INF/classes/myclass/commons-logging.properties). I would like to use org.apache.commons.logging.impl.SimpleLog. What do I have to write in the commons-logging.properties file? How do I t

Re: How to configure commons-logging on JDK1.4

2003-08-12 Thread Koni Roth
-logging.properties file? Any further help with examples would be appreciated. Thanx, Koni Kris Schneider wrote: Is the commons-logging.properties file located in your app's WEB-INF/classes dir? Quoting Koni Roth <[EMAIL PROTECTED]>: No answer until now! It looks like nobody is using comm

Re: How to configure commons-logging on JDK1.4

2003-08-11 Thread Koni Roth
Thanks Craig Since I have my commons-logging.properties file in WEB-INF/classes and *not* in a subdirectory everything works fine! I didn't get this out of the documentation. Cheers Koni Craig R. McClanahan wrote: On Fri, 8 Aug 2003, Koni Roth wrote: Date: Fri, 08 Aug 2003 18:47:41

Re: Text Field property at run time!!!Urgent

2003-08-11 Thread Koni Roth
How does your action mapping in struts-config.xml look like? Is it using the right Action/ActionForm? struts-config.xml: myJsp.jsp: ... ... Hope it helps? Koni Anurag Garg wrote: Hi All, I have a scenario in which the property of my text box will be set at run time. In my action form I hav

Re: How to configure commons-logging on JDK1.4

2003-08-09 Thread Koni Roth
No answer until now! It looks like nobody is using commons-logging! Very frustrating to be the only one using it... Is there really no useful example or documentation? Cheers and enjoy the Friday Beer. Koni Original Message Subject: How to configure commons-logging on JDK1.4 Date

Re: Cannot find bean error in any scope

2003-08-02 Thread Koni Roth
I had the same problem. When I wrote 'errors' it worked for me. Try and ! Hope it helps. Koni Swaroop George wrote: Why don't u use html:errors instead?? Just give -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:07 PM To: 'Struts Users

Validator newbie - server side dynamic validation ??

2003-08-01 Thread Koni Roth
Hi list I'm using the validation framework that comes with Struts 1.1. Client side validation with JavaScript works fine. I read the manuals and the 'Struts in Action' book but somehow I still do not understand how dynamic (automatic?) validation server side works! What exactly do I have to set

Validator - NullPointerException

2003-07-24 Thread Koni Roth
Hello I'm running Netbeans 3.5 with Tomcat 4.0.6 and Struts 1.1. Since I use validation my application sometimes dies at startup. When I restart the server it throws the following exeption: -- java.lang.NullPointerException at org.apache.struts.taglib.html.JavascriptValidat

Re: FW: Migrating from Struts 1.0.2 to 1.1

2003-07-20 Thread Koni Roth
is missing! Gopalakrishnan, Jyothikumar wrote: Hi All, While migrating from Struts 1.0.2 to Struts 1.1 (on Weblogic 6.1SP3, Solaris 6), I am stuck with this problem. This mailing list is now my last resort. Here is my struts-config.xml "-//Apache Software Foundation//DTD