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.
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
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
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
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
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()+
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
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
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"
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
I am Korean, I think I can help on Korean part!
Have a nice day!!
Thanks,
Min-Kyu
220-4608
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
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
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
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
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,
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
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
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,
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
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.
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;
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
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
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
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
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
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.
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
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
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
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
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
[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
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
- 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
36 matches
Mail list logo