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 ever
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
/ge
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 have
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'm trying to figure out a way to use
a tag inside a tag.
Is there a way???
This is what it should look like:
id="ViewOrderForm" scope="session"
class="goes.somewhere.ViewOrderForm"/>
"
name="RedirectForm"
type="goes.somewhere.RedirectForm" >
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 anything
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:
web.xml
ActionServlet
/action/*
Meaning of course prefix mapping, and to reach the action defined above
one would have to use the url
www.awesomesite.com/action/updateUserProperties. So far we're OK.
But i
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 EditRegistrationAction,
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
digester.
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
still occurs sometimes in Weblogic 6.0. Do you know if there is a patch for
that? Whatever it is that causes Weblogic to not declare the TEI variab
Sorry You cannot use a taglib for an attribute to another taglib.
Chris Evans wrote:
> Hi, i'm trying to figure out a way to use a tag inside a
> tag. Is there a way??? This is what it should look
> like: id="ViewOrderForm"
> scope="session"
> class="goes.somewhere.ViewOrderF
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
The type is needed for the .
--- Neal Kaiser <[EMAIL PROTECTED]> 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.ja
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 T
Hi, are there some people that already try to deploy the struts-example on
ATG
I 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 easily in st
Hello Rob,
+1 to add it to the struts doc.
Friday, February 09, 2001, 5:52:04 PM, you wrote:
RL> EditRegistrationAction.java SaveRegistrationAction.java
RL> provide examples.
RL> You would probably never use generateToken().
RL> It is used whenever you want to prevent the user
RL> from book
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 struts-examp
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, February
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
> "DW" == David Winterfeldt <[EMAIL PROTECTED]> writes:
>> + What development tool should I use?
DW> I like UltraEdit if you're on Windows as a editor. It is pretty
DW> light, but it does syntax highlighting for java, jsp, html, perl,
DW> sql, c++, etc. Opens any file (binary, text, unix-dos
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 org.apache.struts.taglib.html.FormTag.doStartT
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
Thierry Cools wrote:
Hi, are there some people that already
try to deploy the struts-example on ATG I 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;
response.sendRedirec
I wonder if someone could give me an example of the multibox usage.
If I have something like this in my jsp:
...
...
What do I need in the ActionFormBean for this jsp with respect to the checkbox
property?
Thanks for any info.
Will
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
...
...
Now your form needs to have
public String[] getCheckbox() {...}
public void setCheckbox(String []) {...}
R,
Nick
-Original
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
fixe
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 calls
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
null the 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 s
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:
this is the value i want to initialize my class with
With the addSetProperties method I can parse the pr
Jens Rehpöhler 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:
>
>
>
> this is the value i want to initialize my class with
>
>
>
> With
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 pa
[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 th
The struts documentation says
this in
.../struts-documentation/api/org/apache/struts/taglib/bean/package-summary.html
You must use
to introduce a reference to an existing bean, if you wish to reference that bean
with other standard JSP tags (such as or
). If you only wish to reference su
- 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 (p
42 matches
Mail list logo