How set array of properties?

2001-02-09 Thread Michael Grushko
Hello! I want to show in my JSP some table. Number of rows form dynamically. Each row have checkbox with unique value created dynamically. How I can set properties in corresponding JavaBean automatically (not using request.getParameterValues("some_name")). Michael Grushko, RedStar Software.

Re: Can I use struts for this ???

2001-02-09 Thread Maya Muchnik
A good example is in "Web Development with JavaServer Pages" by D. Fields, M. Kolb, Manning press, chapter 9. Use for MVC struts. Maya majid kamal wrote: we used to have a small project all done using html, it's about all the employees who got reward since 1976, what they did is: for every

JspException: Must specify type attribute if name is specified

2001-02-09 Thread Neal Kaiser
I just upgraded to last nights build and get the following error: javax.servlet.jsp.JspException: Must specify type attribute if name is specified at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:669) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441) at

Locale specific text in options tag

2001-02-09 Thread Chris Smith
I want to be able to display locale specific messages within an options tag, i.e. from ApplicationResources.properties. I am currently using the collection, property and labelProperty attributes, which is fine for one language. What would be the best way to do this? One way would be to

[Q] TRANSACTION_TOKEN_KEY

2001-02-09 Thread Alexander Staff
Hello, does anyone here have any examples/explanations about using the TRANSACTION_TOKEN_KEY feature in struts ? I am not sure using the generateToken(), isTokenValid(), resetToken() and saveToken() functions properly and in the right place. Thanks in advance Ciao Alexander -- Sent through GMX

struts tag inside a struts tag

2001-02-09 Thread Chris Evans
Hi, i'mtrying to figure out a way to use abean:write tag insidea struts:checkbox tag. Is there a way??? This is what it should look like: jsp:useBean id="ViewOrderForm" scope="session" class="goes.somewhere.ViewOrderForm"/ struts:form action="%=request.getContextPath()+

Integration of struts tags in html authoring tools

2001-02-09 Thread Sebastien Cesbron
Hi, I am looking at struts to see if it suits my needs and I have a question about the utilisation of tags. Is the intensive utilisation of struts tags in html a problem for web designers ? My thought is that if they use a lot of tags (for example tags for i18n, web designers do not see

struts 0.5: problem with copyProperties

2001-02-09 Thread Quaini Michele
Hello we have switched to struts 0.5 and our application gives now the following error: java.lang.NoSuchMethodException: Property 'father' has no setter method at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at

Prefix mapping doesn't work

2001-02-09 Thread Marcus Ahnve
We have the following setup: struts-config.xml: action path="/updateUserProperties" type="com.lecando.web.actions.user.UpdateUserPropertiesAction" name="userPropertiesForm" scope="request" validate="false" forward name="success"

Re: [Q] TRANSACTION_TOKEN_KEY

2001-02-09 Thread Rob Leland
EditRegistrationAction.java SaveRegistrationAction.java provide examples. You would probably never use generateToken(). It is used whenever you want to prevent the user from bookmarking a page, or from using the browser back arrow and then posting a second time. In the

RE: Wanted: Translator For JSP Book

2001-02-09 Thread Min-Kyu Park
I am Korean, I think I can help on Korean part! Have a nice day!! Thanks, Min-Kyu 220-4608

Digester: How to read the body of a tag?

2001-02-09 Thread Jens Rehpöhler
Hi all, I'm trying to read the body content of a xml tag with the Digester class. By using the standard methods from the class I only get an empty String. Here's the example code (i justed played around with the user database from the struts example): Digester Code: // this works fine

Re[2]: More fixes for WLS 5.1 SP8

2001-02-09 Thread Matthias Kerkhoff
Hal, Did this patch come from weblogic or did you have to decompile and fix it yourself? The problem with Weblogic not always declaring variables via a TEI The patch does not come from BEA. still occurs sometimes in Weblogic 6.0. Do you know if there is a patch for that? Whatever it is

Re: Digester: How to read the body of a tag?

2001-02-09 Thread Steven D. Wilkinson
It also has to do with your class structure and your xml. I haven't tested this, but try this public class User { private Tagwithbody twb = null; public void setTagwithbody(Tagwithbody theClass) { twb = theClass; } public Tagwithbody getTagwithbody() { return twb; } } public class

RE: ATG web-tier

2001-02-09 Thread Nick Chalko
Hmm is setLocale a Servlet 2.2 feature. ie is ATG at servlet 2.2? -Original Message- From: Thierry Cools [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 8:00 AM To: [EMAIL PROTECTED] Subject: ATG web-tier Hi, are there some people that already try to deploy the

RE: How set array of properties?

2001-02-09 Thread Nick Chalko
I just submitted a patch to allows this you can find the patch at http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=402 (Vote for the bug, so we can get it included in the nightly builds) -Original Message- From: Michael Grushko [mailto:[EMAIL PROTECTED]] Sent: Friday,

Re: Help with Context Path Error

2001-02-09 Thread Craig R. McClanahan
Toby wrote: The actions class in struts set the MAPPINGS_KEY to "org.apache.struts.action.MAPPINGS" along with a MESSAGES_KEY, LOCALE_KEY, FORWARDS_KEY and ERROR_KEY. I cannot find the "mappings.properties" file anywhere in the jakarta-tomcat or struts directories and assumed this is why I

Re: JspException: Must specify type attribute if name is specified

2001-02-09 Thread Craig R. McClanahan
Neal Kaiser wrote: I just upgraded to last nights build and get the following error: javax.servlet.jsp.JspException: Must specify type attribute if name is specified at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:669) at

Re: Integration of struts tags in html authoring tools

2001-02-09 Thread Craig R. McClanahan
Sebastien Cesbron wrote: Hi, I am looking at struts to see if it suits my needs and I have a question about the utilisation of tags. Is the intensive utilisation of struts tags in html a problem for web designers ? My thought is that if they use a lot of tags (for example tags for i18n,

Re: ATG web-tier

2001-02-09 Thread Craig R. McClanahan
Thierry Cools wrote: Hi, are there some people that already try to deploy the struts-example on ATGI tried this afternoon, but I ran into problems like"No match was found for method "setLocale(java.lang.String)"I assume that this is a bug in ATG, this kind of bug could be solved more or less

Re: [Q] TRANSACTION_TOKEN_KEY

2001-02-09 Thread Rob Leland
Let me clean this up, and make it a little clearer. Oleg V Alexeev wrote: Hello Rob, +1 to add it to the struts doc.

Re: Redirect problem

2001-02-09 Thread Craig R. McClanahan
Thierry Cools wrote: Hi, I tried today the last nightly build of struts and test it on Weblogic 6.0Everything seems to work fine now, except one last problem with the "RedirectTag", actually the code put in the ActionServlet class path = request.getContextPath() + path;

multibox

2001-02-09 Thread William Jaynes
I wonder if someone could give me an example of the multibox usage. If I have something like this in my jsp: logic:iterate ... ... html:multibox property="checkbox" value="%=candidate.getCandidateId()%"/ ... /logic:iterate What do I need in the ActionFormBean for this jsp with respect to the

RE: multibox

2001-02-09 Thread Nick Chalko
This doesn't work yet, I submitted a patch Vote for bug #402 at http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=402 With my patch the usage is logic:iterate ... ... html:multibox property="checkbox" value="candidate" valuePropert="candidateId"/ ... /logic:iterate Now your form needs

Re: multibox

2001-02-09 Thread William Jaynes
Are you saying the multibox tag doesn't work at all now? From reading the documentation, I don't understand how it should work now. - Original Message - From: "Nick Chalko" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 09, 2001 3:13 PM Subject: RE: multibox This

java.lang.AbstractMethodError while closing MySQL connection

2001-02-09 Thread Sudheendra Hebbagilu
Hi, I am using mysql as my database. In the beginning I had a older version of struts. It was throwing this error when establishing a connection in java.lang.AbstractMethodError: org/gjt/mm/mysql/Connection.getTypeMap Then I got the latest nightly build. In GenericConnection class this was

Validating that values are of the specified type

2001-02-09 Thread Kishore Subramanian
Consider the following scenario : I have a form element "A" that can accept only integers. Corresponding to this property, I have a setA(int i) and getA() methods in my ActionForm. When the user enters a non-integer value for "A" and submits it, the ActionServlet populates the form and

BUG: weblogic 6.0 multi-box release bug

2001-02-09 Thread Deadman, Hal
The name property in Multibox.java gets defaulted to Constants.BEAN_KEY but the release tag sets it to null. This causes it to bomb out in weblogic 6.0 because the name is nullthe second time the tag is used on a page. Actually, I haven't tested this yet but it seems to make sense.

RE: multibox

2001-02-09 Thread Nick Chalko
right now multibox does not cooperate with the iterator, The text in the value field is not evaluated, it is static. R, Nick -Original Message- From: William Jaynes [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 12:25 PM To: [EMAIL PROTECTED] Subject: Re: multibox Are you

Re: Validating that values are of the specified type

2001-02-09 Thread Oleg V Alexeev
Hello Kishore, Friday, February 09, 2001, 11:36:05 PM, you wrote: This is darkplace in Struts for my mind. Default values in this case is not good way. I use next approach to support validation of int values. In form I define property of type String to hold value and in validate method I try to

Re: Digester: How to read the body of a tag?

2001-02-09 Thread Jens Rehpöhler
Hello Steven, I think I didn't described my problem correctly. Parsing the properties of a tag works well. But I want to parse the content between some tags. For example: database user propertie="name" textthis is the value i want to initialize my class with/text /user /database

Re: Digester: How to read the body of a tag?

2001-02-09 Thread Craig R. McClanahan
Jens Rehphler wrote: Hello Steven, I think I didn't described my problem correctly. Parsing the properties of a tag works well. But I want to parse the content between some tags. For example: database user propertie="name" textthis is the value i want to initialize my class

Re: Digester: How to read the body of a tag?

2001-02-09 Thread martin . cooper
I've been using a slightly simpler method than Craig's to get the body content. I use this: digester.addCallMethod("database/user/text", "setText", 0); I got the idea for this from the JavaDoc comment for addCallMethod, which says that specifying zero for the parameter count means "a single

Re: Digester: How to read the body of a tag?

2001-02-09 Thread Craig R. McClanahan
[EMAIL PROTECTED] wrote: I've been using a slightly simpler method than Craig's to get the body content. I use this: digester.addCallMethod("database/user/text", "setText", 0); I got the idea for this from the JavaDoc comment for addCallMethod, which says that specifying zero for the

bean-cookie.jsp

2001-02-09 Thread Deadman, Hal
The struts documentation says this in .../struts-documentation/api/org/apache/struts/taglib/bean/package-summary.html You must use jsp:useBean to introduce a reference to an existing bean, if you wish to reference that bean with other standard JSP tags (such as jsp:getProperty or

Re: Ted's FAQ What Web sites are already Powered by Struts?

2001-02-09 Thread Andrew Semprebon
- Original Message - From: "Mike Campbell" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 09, 2001 2:02 PM Subject: Re: Ted's FAQ "What Web sites are already Powered by Struts?" Not to start any sort of editor Jihad, but emacs does all the above mentioned stuff (plus