best praktice: preview of a form

2002-10-20 Thread rainer juenger
Hi, I am thinking of a concept how to best realize a WYSIWYIG preview of filed in form values. what's the job? after a struts-from was validated and everything is filled in okay I want to preview the values in a JSP-Site that shows the just filed in values for final verification by the User. If

Struts forms best practice

2002-10-11 Thread rainer juenger
Hi, I was wondering what the best data type for Struts ActionForm class is. According to the design I would say it should be the same as the data type in the application. (e.g. float) But then the associated form already comes with a 0 filed in the form. That's something I don't wont at all! As

AW: Struts forms best practice

2002-10-11 Thread rainer juenger
Hi Craig, Simon and James, thanks! Rainer -Ursprungliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 11. Oktober 2002 19:00 An: Struts Users Mailing List Betreff: Re: Struts forms best practice On Fri, 11 Oct 2002, rainer juenger wrote: Date

AW: Struts forms best practice

2002-10-11 Thread rainer juenger
Mailing List Subject: Re: Struts forms best practice On Fri, 11 Oct 2002, rainer juenger wrote: Date: Fri, 11 Oct 2002 18:38:40 +0200 From: rainer juenger [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Struts forms best practice Hi, I

[TagLib bean:write] nog getter methode for proberty xj found

2002-10-04 Thread rainer juenger
Hi, getting a JspException when I try to access a getter within a bean:write/ Tag. The getter is there and it gives back a value from type String. The coresponding setter is form type float. Can it have something to do with that? Thanks, Rainer

Re: [TagLib bean:write] nog getter methode for proberty xj found

2002-10-04 Thread rainer juenger
yes, the setter and the getter have to give back an have to become the same type. Rainer Hi, getting a JspException when I try to access a getter within a bean:write/ Tag. The getter is there and it gives back a value from type String. The coresponding setter is form type float. Can it have

ServletContext in a Action

2002-09-09 Thread rainer juenger
Hi, how can I get values out of the ServletContext within a Action? such as: ServletContext ctx = getServletConfig().getServletContext(); String dbdriver = ctx.getAttribute(Constants.DBDRIVER); thanks rainer

Re: ServletContext in a Action

2002-09-09 Thread rainer juenger
(the ActionServlet). Check out the javadocs for Action and you will see what he means: http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html Jason -Original Message- From: rainer juenger [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 1:16 PM To: Struts

Re: Connection pool question

2002-08-16 Thread rainer juenger
which Tomcat 4 does, as does any J2EE app server Well Craig, there where many of us who could not get it running with 4.0x The lookup was null! Some succeeded using 4.1x. Rainer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Problem setting up logging with log4j and commons-logging

2002-07-17 Thread rainer juenger
Hi, I am having some probs with setting up the logging with commons-logging and log4j used in struts. 1) I placed the commons-logging.jar and the log4j.jar in the common/lib directory of my tomcat 4.01. 2) placed my commons-logging.properties file within the WEB-INF/classes directory of my

Re: Authentication, Authorization in Struts 1.1

2002-07-16 Thread rainer juenger
Hi, Every container will provide it's own mechanisms to do that sort of thing. But your application just protects things in terms of roles, and will run on any such container. but does that mechanism work sort of automatically? Or do I have to implement it within the Controller? e.g.: if

Dont get it: Logging

2002-07-15 Thread rainer juenger
Hi, need a hint. Struts is using the commons Logging. private Log log = LogFactory.getLog(org.apache.struts.webapp.Example); 1) Where actually can I find the log file?? It should be where it is configured in the package org.apache.commons.logging configured in

how to use Tomcat 4.1x user management with struts?

2002-07-13 Thread rainer juenger
Hi. I want to use the Tomcat user managment with struts. Is there already some sample code or tutorial or so that makes starting somewhat easier??? thanks for any help, Rainer

Re: logic tag to check value of bean

2002-07-13 Thread rainer juenger
could try it without specifying the scope, but I don't think it would make much of a difference. What is the error message? Do you import the logic taglib at the top of your jsp? ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: rainer juenger [mailto:[EMAIL

Re: how to use Tomcat 4.1x user management with struts?

2002-07-13 Thread rainer juenger
Hi, thanks for the hint! So JAAS seams to be the Keyword. Is there a sample somewhere ? JAAS/Tomcat/Strus authentification? Rainer On the Struts resources pages there is a link to Security/JAAS. rainer juenger wrote: Hi. I want to use the Tomcat user managment with struts

logic tag to check value of bean

2002-07-12 Thread rainer juenger
Hi, can I compare an attribute value of a bean with the logic TagLib? eg.: my beans name is myobject and it has session scope Wirthin that bean there is an attribute: boolean myattribute = true; There is of course a setter and a getter for that attribute. How would the logic tag look like??

Re: ActionServlet question

2002-07-12 Thread rainer juenger
Hi Craig, thanks for your answere!! I figured out the right solution!! It works now. I think a small example test case would be really helpful, as I'm having a hard time understanding what the issue is. Of course!! Maybe that makes it more clear: action path=/trinkwasserform

Re: ActionServlet question

2002-07-11 Thread rainer juenger
Hi Craig, thanks a lot for your pations! I think we are getting confused over terminology. The action servlet is configured in web.xml, not struts-config.xml action elements. You are write! I am actually not talking about the ActionServlet but about the Class Action that is a Servlet as well

Re: ActionServlet question

2002-07-10 Thread rainer juenger
Hi Craig, It depends on how you set up your servlet-mapping. The usual practice for Struts is to use a URL pattern like *.do, which means that any URL ending with .do will be sent to the controller servlet. Other URLs (like one ending in foo.jsp) will bypass the controller, and go to

strange things

2002-07-02 Thread rainer juenger
Hi, Everything just used to work fine for weeks! All of a sudden we are getting an error 503 back: Servlet action is currently unavailable. - we checked the rights of the files on our SuSE Linux Server, running Tomcat 4.01 under JDK 1.3.1_02 - restarted the server several times - compiled the

Re: strange things

2002-07-02 Thread rainer juenger
Hi andre, thanks for your answer. By the way, it seems there is an error in your struts-config.xml. I know, it looks like that. But I haven't changed it since some time Or you changed it or you changed this file, or your tomcat config, or your J2SDR or JRE config... no, actually not! thats

Re: strange things

2002-07-02 Thread rainer juenger
, but no opening quote character was found... (replace with forward name=success) Andre Powroznik -Original Message- From: rainer juenger [mailto:[EMAIL PROTECTED]] Sent: 02 July 2002 11:46 To: Struts Users Mailing List Subject: Re: strange things Hi andre, thanks for your answer

No bean found under attribute key

2002-06-27 Thread rainer juenger
Hi, When I change the scope in the strus-config.xml form an action to session I am receiving the below exception. With request-scoupe everything works just fine! So I cannot understand why once the Bean can be found and when the scoupe is session it cannot? My setup is as follows:

Re: DataSource problem

2002-06-14 Thread rainer juenger
Hi Maarten, join the club! There are some more guys having exactliy the same problem as you. To me your configuration looks all right. I saw some samples : parameter namedriverName/name valuejdbc:mysql://localhost/test/value /parameter where the parameter name is not driverName but url. I

Database access design question

2002-06-10 Thread rainer juenger
Hi, I am using the Struts Database pooling. My database connection is realised after the sample in the Struts User's Guide. http://jakarta.apache.org/struts/userGuide/building_model.html#databases But I think the sample is very contradicting. In chapter 2.5 Business Logic Beans is said: For

Re: Database access design question

2002-06-10 Thread rainer juenger
not necessarily following the best practices, they are more like proof of concepts than anything else. Rgs Vikram -Original Message- From: rainer juenger [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 1:45 PM To: Struts Users Mailing List Subject: Database access design question

Re: Database access design question

2002-06-10 Thread rainer juenger
- From: rainer juenger [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 1:45 PM To: Struts Users Mailing List Subject: Database access design question Hi, I am using the Struts Database pooling. My database connection is realised after the sample in the Struts User's Guide

Re: Database access design question

2002-06-10 Thread rainer juenger
the servlet api implement such a method ??) 3. If using a connection pool (which you should really), get the connection object out of the pool and use it to access the database. HTH Vikram -Original Message- From: rainer juenger [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 2:04