Here's the bean:
public class Cart extends HashMap {
private double subTotal = 400.00;
public double getSubTotal(){return subTotal;}
}
Here's the Java:
session.setAttribute(cart, new Cart());
Here's the JSP
bean:write name=cart property=subTotal/ // no output?
%=
Here's the bean:
public class Cart extends HashMap {
private double subTotal = 400.00;
public double getSubTotal(){return subTotal;}
}
Here's the Java:
session.setAttribute(cart, new Cart());
Here's the JSP
bean:write name=cart property=subTotal/ // no output?
%=
]
Subject: RE: bean:write not writing?
Michael;
Did you forget to specify the taglib directive for bean:write tag library in
your JSP? In such case, have following in your JSP.
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
Hope this helps.
Sharad
From: Michael Marrotte [EMAIL PROTECTED
, Michael Marrotte wrote:
%@ taglib uri=/tags/struts-bean prefix=bean %
is at the top of the JSP file and other bean:write tags are working
in the
same page...
-Original Message-
From: Sharad Acharya [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 27, 2003 9:48 AM
To: [EMAIL
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 27, 2003 3:52 PM
To: Struts Users Mailing List
Subject: Re: bean:write not writing?
Aren't tags usually in /WEB-INF?
On 27 Dec 2003, at 14:57, Michael Marrotte wrote:
%@ taglib uri=/tags/struts-bean
value=${cart.subTotal} /
c:out value=${session.cart.subTotal} /
JSTL give better debug info even if it doesn't look as clean as the tag
libs.
And there's also
jsp:getProperty name=cart property=subTotal /
On 27 Dec 2003, at 15:04, Michael Marrotte wrote:
Yes. And mine are. But, a logic
it is) and then call
Map.get to retrieve the property value. Since you've defined subTotal
as a standard JavaBean property, bean:write (or really PropertyUtils)
won't be able to find it.
Michael Marrotte wrote:
Here's the bean:
public class Cart extends HashMap {
private double subTotal = 400.00
:
javax.xml.parsers.DocumentBuilderFactory=com.caucho.xml.parsers.XmlDocument
BuilderFactory
javax.xml.parsers.SAXParserFactory=com.caucho.xml.parsers.XmlSAXParserFacto
ry
javax.xml.transform.TransformerFactory=com.caucho.xsl.Xsl
Any help is greatly appreciated.
Thanks,
--Mike
-Original Message-
From: Michael
:
javax.xml.parsers.DocumentBuilderFactory=com.caucho.xml.parsers.XmlDocument
BuilderFactory
javax.xml.parsers.SAXParserFactory=com.caucho.xml.parsers.XmlSAXParserFacto
ry
javax.xml.transform.TransformerFactory=com.caucho.xsl.Xsl
Any help is greatly appreciated.
Thanks,
--Mike
-Original Message-
From: Michael
of at least three (3) of the four
(4) following
classes of characters: Lowercase letters, Uppercase letters, Numbers,
Special
Characters.*/
return isValid;
}
}
--Michael Marrotte
-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 5:57 PM
I only get the below stack trace when crimson is rolled into the JRE
ext/lib -- the
struts-config.xml file is well formed. Administrating the JRE is out of my
hands. Is there a way to tell the container to use it's own XML parser? Any
help is greatly appreciated.
root 20030317 183520.344 ERROR
javax.xml.parsers.SAXParserFactory=com.caucho.xml.parsers.XmlSAXParserFacto
ry
javax.xml.transform.TransformerFactory=com.caucho.xsl.Xsl
Any help is greatly appreciated.
Thanks,
--Mike
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 7:37 AM
To: Struts
javax.xml.parsers.SAXParserFactory=com.caucho.xml.parsers.XmlSAXParserFacto
ry
javax.xml.transform.TransformerFactory=com.caucho.xsl.Xsl
Any help is greatly appreciated.
Thanks,
--Mike
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 7:37 AM
To: Struts
over a Collection) and use javamail to send it off.
Or is there another more straightforward way to do sophisticated String
stamping using Struts, another Apache product, or even with plain old Java?
Any help is greatly appreciated.
Thanks,
--Michael Marrotte
I'm trying to dynamically write the setter values for a mapped property.
But, I get the following error:
500 Servlet Exception
/tt-pay/pages/UnpaidCitations.jsp:20: interpolated runtime values are
forbidden
by the JSP spec at `payCitation(%= unpaidCitation.getCitation() %)'
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 9:16 AM
To: Struts Users Mailing List
Subject: Mapped Property? Iinterpolated runtime values are forbidden?
I'm trying to dynamically write the setter values for a mapped property.
But, I get
Seems to work by bean:define a key first:
tr
td
bean:define id=key name=unpaidCitation property=citation/
html:checkbox property='%= payCitation( + key + )%'/
bean:write name=unpaidCitation property=citation filter=true/
/td
-Original Message-
From: Michael Marrotte
I'm using a map-backed form and get the following error:
500 Servlet Exception
/tt-pay/pages/UnpaidCitations.jsp:20: interpolated runtime values are
forbidden
by the JSP spec at `payCitation(%= unpaidCitation.getCitation() %)'
Do you know of any good reading that elaborates on writing a global
exception handlers for Struts?
I've already read
http://jakarta.apache.org/struts/userGuide/building_controller.html#exceptio
n_handler ,
but am looking for more detail or a tutorial.
Thanks,
--Mike
--
To unsubscribe,
I'm using lots of Struts custom jsp tags, e.g. logic, html, and bean. The
JSP file size is about 27K. I'm getting the following error:
500 Servlet Exception
/mainMenu.jsp:652: code too large for try statement
} catch (java.lang.Throwable _jsp_e) {
^
/mainMenu.jsp:46: code too large
?
David
From: Michael Marrotte [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: code too large for try statement
Date: Fri, 20 Dec 2002 16:48:37 -0500
I'm using lots of Struts custom jsp tags, e.g. logic, html, and bean. The
JSP file size
from JavaScript.
Any ideas are greatly appreciated.
--Michael Marrotte
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Are you sure that work? The anchor seems to be ignored when I set
redirect=true in struts-config and append the anchor to the path with a #,
e.g. /page.jsp#anchor.
Any thoughts?
Thanks,
--Michael Marrotte
-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: Thursday
. december 12. 15:58 dátummal Gemes Tibor ezt írtad:
2002. december 12. 16:13 dátummal Michael Marrotte ezt írtad:
Are there any straightforward ways to leverage Struts to do this?
Is the anchor's name static, or dynamically generated?
Imho if dynamic you can declare a forward to your action
from JavaScript.
Any ideas are greatly appreciated.
--Michael Marrotte
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
What's the best way to nest forms?
I want to:
html:form action=A
html:form action=B
html:img src=B/
/html:form
html:img src=A/
html:form
But, when I try this, src B always invokes action A -- I want src B to
invoke action B.
Any help is greatly
I want all the elements of the inside form to get submitted with the
request, but not vice versa. Also, I want to seperate forms.
-Original Message-
From: Miller, Jason [mailto:jmiller;ostglobal.com]
Sent: Friday, October 25, 2002 10:55 AM
To: 'Struts Users Mailing List'
Subject: RE:
+2 for sasquatch.
or maybe an ostridge... Strut -- To walk with a lofty, proud gait, and
erect head; to walk with affected dignity.
http://www.dictionary.com/cgi-bin/dict.pl?term=strutr=67
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002
What's the best way to display multicolumn (e.g. 2-column) lists in Struts,
with say Iterate?
Say I have the list a,b,c,d,e,f... But, I want to display it as:
C1 C2
a b
c d
e f
...
Any help is greatly appreciated.
Thanks,
--Michael Marrotte
--
To unsubscribe, e-mail: mailto:[EMAIL
.
--Michael Marrotte
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 1:03 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: Digester?
Digester, and all the other commons packages, are developed on the
COMMONS-DEV mailing
, the rule is ignored.
Why doesn't the xmlrules mirror digester. Any ideas and help is greatly
appreciated.
Thanks in advance,
--Michael Marrotte
// Snippet.java
class MyDigester {
File file = new File(/javatests/Queries.xml);
Digester digester = new Digester();
URL url;
FromXmlRuleSet
) for developers, please let me know.
Any help is greatly appreciated.
--Michael Marrotte
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 30, 2002 10:32 AM
To: Struts Users Mailing List
Subject: RE: Digester?
And I try setting paramcount to zero... Also
Here's rules reverse engineered by NetBeans from the examples.
--Michael Marrotte
-Original Message-
From: Byrne, Steven [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 7:22 PM
To: [EMAIL PROTECTED]
Subject: Struts Validator DTD?
Is there a DTD (or schema) anywhere
Thanks for the input,
--Michael Marrotte
- Original Message -
From: Michael Marrotte [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, June 05, 2002 3:53 AM
Subject: RE: Child Support Payment system for the state of FLorida, Powered
and it seems that there's a level
of precedence with the validation dependencies. The dependency required
seems to intercept dependencies listed second, e.g. creditCard. Using the
ValidatorForm it's not yet clear to me how to get around this idiosyncrasy.
Thanks for your comments,
--Michael Marrotte
County 03 (Bay)
00-000-CA
00-034-CA
00-035-CA
00-036-CA
00-041-CA
00-042-CA
00-043-CA
00-056-CA
00-071-CA
00-075-CA
00-078-CA
00-080-CA
00-082-CA
Please let me know what you think.
--Michael Marrotte
--
To unsubscribe, e-mail: mailto:[EMAIL
Support Payment system for the state of FLorida, Powered
From: Vic C [EMAIL PROTECTED]
===
I like the URLs /editRegistration.do?action=Create
It implies dispatching.
Michael Marrotte wrote:
My boss gave me the OK to give the Struts User Group access to the
Struts-based application I'm working
with and what you think the problem may have been.
Thanks,
--Michael Marrotte
-Original Message-
From: Thinh Doan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 6:32 PM
To: Struts Users Mailing List
Subject: RE: Child Support Payment system for the state of FLorida,
Powered by Struts
I know beans follow a tight spec, i.e. setter signatures should match getter
return types, etc... But, why does JSP care about this if I never use the
setter explicity? And how come JSP does not mind on Windows?
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent
was hoping that you guys could help me come up with an even more
convincing argument for when the time comes.
Thanks in advance,
--Michael Marrotte
If the not defined in the web app, what is the default session timeout?
And, where might this be documented?
--Michael Marrotte
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
.
--Michael Marrotte
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 1:52 PM
To: Struts Users Mailing List
Subject: RE: Struts Fault?
1.) Why does the problem occur on Resin's Unix implementation, but not the
Windows -- same versions
). The
problem does not occur on Windows with Resin.
Any ideas?
Thanks in advance,
--Michael Marrotte
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
There's at least two guys in Tallahassee, Florida that are very interested.
Please keep in touch.
--Michael Marrotte
[EMAIL PROTECTED]
-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 25, 2002 10:27 AM
To: Struts Users Mailing List
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 5:12 PM
To: [EMAIL PROTECTED]
Subject: html:select selected=selected ?
I'm trying to generate:
select name=state
option value=/option
option value=ALAL/option
I want an item selected... I just don't want it selected like that, i.e.
selected=selected. I don't understand why it's generated this way. Why
not just selected?
--Michael Marrotte
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 5:19 PM
It does work the same and that's fine... I found the real bug. But, thanks
for the insight about expanded syntax. All the more reason why Struts is
good!
Thanks,
--Michael Marrotte
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 5
According to the source and docs it returns a boolean. But, the link seems
to be broken in the latest docs for this method. Any help on how
validateCreditCard() decides what values to return is greatly appreciated.
Thanks,
--Michael Marrotte
number I'm filtering for is masked -- since I will not call StrutsValidator
then.
Any help is greatly appreciated.
Thanks,
--Michael Marrotte
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 6:31 PM
To: Struts Users Mailing List
Subject: Re
I have what seems to be a need for a Response scope. I create a bean in an
Action that only the next JSP page needs to see. I could put it in the
session, but it's not necessary and I'll have to clean-up. Is there a way
in Struts to put the Bean in a Response scope?
--Michael Marrotte
this:
MyCart mycart = new MyCart(...);
request.setAttribute(cart, mycart);
is immediately visible to a JSP page which this servlet forwards to, using a
standard action tag like this:
jsp:useBean id=cart scope=request
class=com.mycompany.MyApp.MyCart/
-Original Message-
From: Michael Marrotte
Yeah I saw that, right after I posted. Sorry... It wasn't intuitive to me
at first that the response sees as much as the request.
--Michael Marrotte
-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 6:08 PM
To: Struts Users Mailing List
Does order matter for attribute tags? If so, then I'd specify attributes in
the same order they're defined in the TLD, e.g. id first. JBuilder's parser
might be order sensitive.
--Michael Marrotte
-Original Message-
From: Dennis Doubleday [mailto:[EMAIL PROTECTED]]
Sent: Monday, May
Let me get a better idea of what you want to do. First, why does your
FormBean need to know anything about the html:file inputs?
--Michael Marrotte
-Original Message-
From: C D [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 6:59 PM
To: [EMAIL PROTECTED]
Subject: Uknown number
help. I think I understand part of your problem,
but might need to be more clear explaining the solution.
--Michael Marrotte
-Original Message-
From: Charles Dutt [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 19, 2002 11:24 AM
To: 'Struts Users Mailing List'
Subject: RE: Uknown number of file
items, that's OK? Empty and reset the state before the user ever tries
to put in new items.
--Michael Marrotte
-Original Message-
From: Rick Mann [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 19, 2002 7:22 PM
To: Struts Users Mailing List
Subject: Good way to clear session state?
I've
validation.xml file.
--Michael Marrotte
-Original Message-
From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 8:41 AM
To: Struts Users Mailing List
Subject: complex validation with Validator
I know that with struts Validator I can do validation in client
the html:error tag. Am I cheating or missing
something in Struts that provides a consistent (more MVC) way to deal with
this.
What do you think of the above approach? Any thoughts are greatly
appreciated?
Thanks in advance,
--Michael Marrotte
-Original Message-
From: DHS Struts [mailto
Thanks for your response... It's exactly what I was thinking and just
posted a questiion about.
Do you think this diverges from the MVC, though? Should validation errors
ideally be stored in the Model?
--Michael Marrotte
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED
Works like a charm... Thanks for the input!
--Michael Marrotte
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:38 PM
To: Struts Users Mailing List
Subject: Re: How do you recommend doing this with Struts?
The action:errors tag
property=inputError value=true
bean:message key=error.qty/
/logic:equal
How can I do this with bean:message? I want to write:
bean:message name=jspBean property=inputError /
But, I get the error about the mandatory key required.
Thanks,
--Michael Marrotte
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
nameproperty/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
Is it common practice to modify the TLD's for the Struts tags?
--Micahel Marrotte
-Original Message-
From: Michael Marrotte [mailto
Suppose the qty values were HTML select's. How would you recommend I
reset there values on error, e.g. 2,M,3, below is shown in the second form.
Any help is greatly appreciated.
Thanks,
--Michael Marrotte
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday
this works, I get the feeling I'm re-inventing the wheel. Is there a
100% Struts technique that renders this type of dynamicism? Any thoughts are
greatly appreciated.
Thanks,
Michael Marrotte
logic:iterate id=payerCase name=payer property=payerCases
app:row oddColor=white evenColor=#ee
, or not...
Michael Marrotte
-Original Message-
From: Jeremy Prellwitz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 12:48 PM
To: [EMAIL PROTECTED]
Subject: Help!: Dynamic Property Name and JavaScript values
Does anyone know how to include dynamic values for the
name/value pairs inside struts
in advance,
--Michael Marrotte
errors be stored and retrieved dynamically?
Thanks in advance,
--Michael Marrotte
The nightly builds struts-example uses DynaActionForm... But, it doesn't
use them in any real dynamic way. If you find a good example, let me know.
Thanks,
--Michael Marrotte
-Original Message-
From: vivek shrivastava [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 5:38 PM
, then someone
please try and help point me in the right direction.
Thanks,
--Michael Marrotte
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
. Is there a
100% Struts technique that renders this type of dynamicism? Any thoughts are
greatly appreciated.
Thanks,
Michael Marrotte
logic:iterate id=payerCase name=payer property=payerCases
app:row oddColor=white evenColor=#ee
styleClass=regtextdetails
td align=left
, then someone
please try and help point me in the right direction.
Thanks,
--Michael Marrotte
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
This might be too obvious. But, the definition (ProjectForm.class) must be
in org/apache/struts/webapp/example following the type syntax. To get
things working I usually put my definitions (.class files) in the classes
directory at first and set type to the definition name, e.g.
I have 3 properties (month, day, year) in the JSP. Is there a shortcut-way
to get my form bean to set a date property based on these three fields
without explicitly?
Michael Marrotte
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
by clicking on column headers.
Does anyone have a strong argument for either view?
--Michael Marrotte
-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 2:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Logic:Iterate:sort, what do you think?
Subject: Re
Can someone help me figure a way to do something like this?
html:select property=x_bean:write name=y property=z filter=true/
What I wanted to do is dynamically name the html:select property,
x_[some-dynamic-value].
Any idea on how I should really approach this?
Thanks,
--Michael Marrotte
existed... Thanks for the tip! I will give it a shot.
JM
--Michael Marrotte
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 3:59 PM
To: [EMAIL PROTECTED]
Subject: How-to dynamically name properties?
Can someone help me figure
Mark,
Are you joking about Flash or does it really support some type of
server-side programming?
--Michael Marrotte
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: How-to dynamically
I'm looking for sorting support for the Struts Logic Iterate tag. Struts
Layout by Improve claims to support something like this for their Collection
library. However, I found their latest release (docs and examples) in
disarray. Also, in the archives I see a message (RE: sorting in
78 matches
Mail list logo