You cannot have two properties with the same name in a form.
Try:
html:hidden property=creator_1/
input type=text name=creator vlaue=bean:write name=beanName
property=creator_1/ size=82 maxlength=25 tabindex=1/
cheers
Koni
Caroline Jen wrote:
My JSP #2 receives a hidden field passed from JSP
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 after the
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=10648445023r=1w=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
Maybe you will find a solution here...
http://marc.theaimsgroup.com/?l=struts-userw=2r=1s=dreamweaverq=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.
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
#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
See commons-validation which comes with struts. The 'required' attribute
does it for you.
form name=myForm
field property=pull-down-property depends=required
arg0 key=prompt.choose.gold.or.platinum/
/field
/form
Cheers
Koni
Mick Knutson wrote:
I have a pull-down menu with 3 values ,
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
.
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 koniroth
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 15:20
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:
Context path= docBase=mystrutsapp debug=0
reloadable=true/Context
Then I could access the webapp by:
http://localhost:8080/ or
http://localhost:8080/mystrutsapp
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
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.
#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
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
Hi Kannan
Just donne this on a Windows machine ;-) Here a hint for your Action...
snip
...
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();
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
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
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 running.
Is your database
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
=Message Name
newmessage.label.zone=Distribution 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
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
You could use logic:equal or logic:notEqual tags:
logic:equal name=myForm property=method scope=request value=update
html:text disabled=true property=username size=30/
/logic:equal
Koni
deepaksawdekar wrote:
Hi All,
I need to disable the html:text component based on some property of bean. Any
Hi Thomas
Here what I would do.
struts-config.xml:
actionpath=/logon/action/logon
type=test.web.struts.action.logon.LogonAction
name=logonForm
scope=request-- !!!
validate=false -- !!!
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:
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
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
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
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
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
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:
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:
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
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
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 tell my
-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 commons-logging
How does your action mapping in struts-config.xml look like? Is it using
the right Action/ActionForm?
struts-config.xml:
action path=/myAction type=org.foo.bar.MyActionForm
name=myActionForm ...
myJsp.jsp:
html:form action=/myAction
...
html:text property=fieldname /
...
/form
Hope it helps?
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 +0200
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
I had the same problem. When I wrote 'errors' it worked for me.
Try html:messages id=errors and bean:write name=errors/!
Hope it helps.
Koni
Swaroop George wrote:
Why don't u use html:errors instead??
Just give /html:errors
-Original Message-
From: Altug B. Altintas [mailto:[EMAIL
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
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
/action-mappings 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
?xml version=1.0
42 matches
Mail list logo