Try using the following with JSTL:
c:set var=myValue value=${teacher.SSN}/
or you can try the following using bean:*.../
bean:define id=myValue name=teacher property=SSN/
If you are still getting a error make sure you are
using proper JavaBean naming conventions. You can find this in
the
Thanks Robert,w ill try this now..
Has anyone also used graphing software (jfree) with struts...
looking for a open source implemntation on the same...
Thanks!
Robert Taylor [EMAIL PROTECTED] wrote:
Try using the following with JSTL:
or you can try the following using
If you are still
sean sean.jones at ubs.com writes:
a onclick='returnData(bean:write name=xloc property=script /)'
bean:write name=xloc property=locCode/
/a
bean:write name=obj property=getter filter = true/
adding the filter=true did the trick
Greg: you could alternatively use the JSTL Core tags, if the bean is null it
doesn't write anything I believe. The format is c:out
value=${yourbean}/
otherwise if you really want to use bean:write you could enclose it in a
logic:notEmpty name=mybean property=bean property/logic:notEmpty or
just
On Jan 30, 2004, David Erickson [EMAIL PROTECTED] wrote:
|Greg: you could alternatively use the JSTL Core tags, if the bean is null it
|doesn't write anything I believe. The format is c:out
|value=${yourbean}/
|
|otherwise if you really want to use bean:write you could enclose it in a
What type of formatting are you looking to do?
-David
- Original Message -
From: Gregory F. March [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 30, 2004 1:42 PM
Subject: Re: bean:write
On Jan 30, 2004, David Erickson [EMAIL PROTECTED] wrote
On Jan 30, 2004, David Erickson [EMAIL PROTECTED] wrote:
|What type of formatting are you looking to do?
We are formatting dates, currency, and numbers.
I think we will extend the bean:write in a custom tag and just check for null
ourselves - very minimal code change this way (which is
[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 2:54 PM
Subject: Re: bean:write
On Jan 30, 2004, David Erickson [EMAIL PROTECTED] wrote:
|What type of formatting are you looking to do?
We are formatting dates, currency, and numbers.
I think we will extend the bean:write in a custom tag
List
Subject: Re: bean:write question
how about wrapping your content inside the PRE/PRE tag?
On Jan 24, 2004, at 11:37 AM, Allen Jordan wrote:
Hello all,
I am trying to display a file name and the contents of the file in a
jsp. My formbean object contains 2 Strings (filename
how about wrapping your content inside the PRE/PRE tag?
On Jan 24, 2004, at 11:37 AM, Allen Jordan wrote:
Hello all,
I am trying to display a file name and the contents of the file in a
jsp. My formbean object contains 2 Strings (filename and contents).
The problem I am having is the file
Dan,
Try using the filter=false attribute of the bean:write tag. That will
disable the encoding of characters that are sensitive to HTML.
-Richard
-Original Message-
From: Daniel Lipofsky [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 4:18 PM
To: [EMAIL PROTECTED]
Subject:
to the Javascript method, which
causes a Javascript exception.
Thanks,
Dan
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 4:39 PM
To: 'Struts Users Mailing List'
Subject: RE: bean:write and apostrophes
Dan,
Try using
So you want to replace br for \n or similar.
c:set var=str value=${myForm.myProperty} /
c:forTokens var=tok items=${str} delims=br
c:out value=${tok}\n /
...
This might work.
On 14 Jan 2004, at 14:30, Otto, Frank wrote:
Hello,
I want to write a string like line1brline2.
If I use
does it work with br/ instead of br
because I have things working exactly as you would have with ...
bean:write name=myForm property=myProperty filter=false/
filter=false does the trick for me - only difference is my line breaks are
br/ instead of br
not sure if that changes things for you
The delims attribute of c:forTokens works just like the delim argument to
a StringTokenizer constructor. For example, if you do:
StringTokenizer st = new StringTokenizer(line1brline2, br, true);
Then st.countTokens() will return 6, not 3. In other words, the delims
attribute should be thought of
sorry kris, i think i misunderstood the original question, but i get
what you saying with the delim character needing to be a character not
a string. I think our man wants
filter=false anyhow ..
On 14 Jan 2004, at 14:57, Kris Schneider wrote:
The delims attribute of c:forTokens works just
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?
%=
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]
Reply-To: [EMAIL PROTECTED]
To:
]
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
]
Sent: Saturday, December 27, 2003 9:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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
hi,
it must end with
.tld
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
and place the file in /WEB-INF
-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
(even bean:write) as
advertised, except in this one case.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 27, 2003 9:52 AM
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
-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 27, 2003 9:54 AM
To: 'Struts Users Mailing List'
Subject: RE: bean:write not writing?
hi,
it must end with
.tld
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
and place the file in /WEB-INF
: Saturday, December 27, 2003 9:52 AM
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 prefix=bean %
is at the top of the JSP file and other bean:write tags are working
I'm pretty sure this boils down to the way PropertyUtils works.
bean:write will use PropertyUtils.getProperty(bean, property) to
retrieve the subTotal property from the bean cart. PropertyUtils
will test whether or not cart is a Map (which it is) and then call
Map.get to retrieve the property
: Saturday, December 27, 2003 10:08 AM
To: Struts Users Mailing List
Subject: Re: bean:write not writing?
Fair enough
The only other thing i can think of is to use jstl or old jsp tags
instead
or try using the scope attribute of bean:write
bean:write name=cart property=subTotal scope=session /
c:out
yeah buddyneed the tld for 'c'
, declare the uri in the web.xml and the refer to that uri in ur jsp page.
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 27, 2003 10:24 AM
To: Struts Users Mailing List
Subject: RE: bean:write not writing
anything?
Do I need a taglib descriptor for c:out?
--Mike M.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 27, 2003 10:08 AM
To: Struts Users Mailing List
Subject: Re: bean:write not writing?
Fair enough
The only other thing i can think of is to use jstl
List
Subject: Re: bean:write not writing?
I'm pretty sure this boils down to the way PropertyUtils works.
bean:write will use PropertyUtils.getProperty(bean, property) to
retrieve the subTotal property from the bean cart. PropertyUtils
will test whether or not cart is a Map (which
context.
Thanks,
--Mike M.
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 27, 2003 10:13 AM
To: Struts Users Mailing List
Subject: Re: bean:write not writing?
I'm pretty sure this boils down to the way PropertyUtils works.
bean:write will use
I have read about people having problems getting or setting a bean which
does not fit the bean specification. In that case the Cart object would
also need a setSubTotal(double dbl) method, even if it is not used eg
public class Cart extends HashMap {
private double subTotal = 400.00;
I doubt JSTL will be any happier with a class that's trying to be both a
Map and a JavaBean:
%@ page contentType=text/plain %
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
jsp:useBean id=map class=java.util.HashMap/
jsp:useBean id=obj class=java.lang.Object/
map.class: c:out
u can try something like this :
bean:write name=something property=something filter=false/
Thanks,
Kulkarni
-Original Message-
From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 4:50 PM
To: Struts Users Mailing List
Subject: Bean:write \problem
Hi All,
hi KulKarni
Thanks for it
It worked
Cheers
gary
- Original Message -
From: Ravi Kulkarni [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 4:54 PM
Subject: RE: Bean:write \problem
u can try something like this :
bean:write name
Could you post your JSTLSwitchAction ?
-Mensaje original-
De: Kris Schneider [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 15 de octubre de 2003 4:25
Para: Struts Users Mailing List
Asunto: Re: Bean:write to c:out conversion for something in
.properties file
Wendy Smoak
.
Quoting Carlos Sánchez [EMAIL PROTECTED]:
Could you post your JSTLSwitchAction ?
-Mensaje original-
De: Kris Schneider [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 15 de octubre de 2003 4:25
Para: Struts Users Mailing List
Asunto: Re: Bean:write to c:out conversion
List
Asunto: Re: Bean:write to c:out conversion for something in
.properties file
Wendy Smoak wrote:
Okay, apparently I can't read. It was a bean:message tag, not a
bean:write tag! Since bean:message WAS ported to Struts-EL, I
assume that there is something you can
Put the following in web.xml:
context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueApplicationResources/param-value
/context-param
and then use:
%@ taglib prefix=fmt uri=http://java.sun.com/jstl/fmt; %
fmt:message key=prompt.username/
Wendy Smoak
To: Struts Users Mailing List
Subject: Re: Bean:write to c:out conversion for something in .properties
file
Put the following in web.xml:
context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueApplicationResources/param-value
/context-param
and then use
Wendy Smoak wrote:
Okay, apparently I can't read. It was a bean:message tag, not a
bean:write tag! Since bean:message WAS ported to Struts-EL, I
assume that there is something you can do with bean:message that you
cannot do with fmt:message. What would that be?
The biggest difference is that
You can try this..
logic:iterate name=yourActionFormName id=bean type=
bean:write name=bean property=value /
/logic:iterate
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Morten
Sent: Sunday, October 12, 2003 6:10 AM
To: [EMAIL PROTECTED]
Subject: bean:write ..
Tim Smal wrote:
I'd like to use a bean:write within my html:text tag. Like this:
html:text property=value(key1) onmouseover=bean:write name=myForm
property=myMethod//
But I can't do it this way. Anyone has suggestions?
this should work...
bean:define id=tmp
bean:write name=myForm
snip
Struts does not support
/snip
You mean JSP does not support surely?
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, 9 October 2003 19:44
To: Struts Users Mailing List
Subject: RE: bean:write in html:text
You will have to use JSP scripting or JSTL
Whatever, O'Rielly-boy.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 7:47 AM
To: Struts Users Mailing List
Subject: RE: bean:write in html:text
snip
Struts does not support
/snip
You mean JSP does not support surely?
-Original
Thank you! You guys are quick!
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Markus Meier
Sent: donderdag 9 oktober 2003 13:35
To: [EMAIL PROTECTED]
Subject: Re: bean:write in html:text
Tim Smal wrote:
I'd like to use a bean:write within my html:text tag. Like
Looks like you haven't declared the bean taglib in the page!
Paul
-Original Message-
From: Alex Araujo [mailto:[EMAIL PROTECTED]
Sent: 19 September 2003 15:55
To: [EMAIL PROTECTED]
Subject: bean:write Not Working With Tiles
I'm migrating a struts/jsp app to tiles and I'm having a hard
I don't thing struts provide you formating date functionality as i never tried also
but frankly it will take another 20 min. to write a function for formatting date..
use string.substring methods and all after retriving the date from DB using getStirng()
or use to_char(datefield,'dd/mm/
Inspite of using substring.You can use SimpleDateFormat class which provide
you the facility of format date to any any Date Format .For Your refrence
sending code which is generic one and convert any DateFormat-
How to convert date from 2002-11-29 to 29/11/2002 (Or from any format to
any format.
to the requirements of the application.
Amin
-Original Message-
From: Ripudaman.Sharma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 9:02 PM
To: Struts Users Mailing List
Subject: RE: bean:write property= Format a Date ?
Inspite of using substring.You can use SimpleDateFormat
An easy way is to use JSTL's fmt:formatDate tag.
Paul
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 17 September 2003 13:31
To: Struts-User
Subject: bean:write property= Format a Date ?
one of my Bean propertys is a Date and i want to output it formated,
is
Just use java.text.DateFormat in your action class and set a String property
in your form bean with the result.
Easy as pie.
-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 8:45 AM
To: Struts Users Mailing List
Subject: Re
Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 8:45 AM
To: Struts Users Mailing List
Subject: Re: bean:write property= Format a Date ?
I don't thing struts provide you formating date functionality as i never
tried also but frankly it will take another 20 min. to write
It's easier than you think:
bean:write name=currentLoopUser property=address.street/
Paul
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 September 2003 12:38
To: Struts-User
Subject: bean:write with a not simple property
hello,
i use logic:iterate to
hi,
i really did't get ur Q.
but if u want to avoid using name attribute,u can use nested tags
that takes the action form binded with the html:form
-- nagi
---Original Message---
From: Struts Users Mailing
...
-Message d'origine-
De : David Jiao [mailto:[EMAIL PROTECTED]
Envoyé : mardi 8 juillet 2003 17:09
À : Struts Users Mailing List
Objet : RE: bean:write problem with struts 1.1
But I didn't specify any data-sources from my struts-config file. Do I
have to include it anyway
The only way to do this is the use getter and setter methods with JavaBean
naming conventions. This should in no way interfere with a Corba backend,
Corba can be used pretty much just like EJB. The tags use reflection, but
just to find appropriately named getter methods - the Java conventions
[EMAIL PROTECTED]
To:'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:RE: bean:write and c:out only takes proper javabeans?
The only way to do this is the use getter and setter methods with JavaBean
naming conventions. This should in no way interfere with a Corba backend
usually does.
-Henrik Bentel
Stephen Brown [EMAIL PROTECTED] on 07/09/2003 12:05:15 PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To:'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:RE: bean:write and c:out only takes proper javabeans
something already doing that in
beanutils.
I'll look at that,
thx
-Henrik Bentel
Kris Schneider [EMAIL PROTECTED] on 07/09/2003 01:20:36 PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To:Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: bean:write
PROTECTED]
cc:
Subject:RE: bean:write and c:out only takes proper javabeans?
You could use reflection to populate a map with the fields' values (using
the
field names for keys).
Quoting [EMAIL PROTECTED]:
ok, just to clarify. I was hoping to use the IDLEntities straight in my
PROTECTED]
Subject: Re: bean:write problem with struts 1.1
I'm running Weblogic 6.1 and have experienced exactly the
same problem. It
goes away if you change the returntype of the getter to a
String instead of
whatever you are using. Not a solution to the problem though.
I sent
It kept throwing a
message: org.apache.jasper.JasperException: Cannot find message
resources under key org.apache.struts.action.MESSAGE.
It seems to be due to the the data-sources
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
But I didn't specify any data-sources from my struts-config file. Do I
have to include it anyway?
On Tue, 2003-07-08 at 09:59, Nicolas Seinlet wrote:
It kept throwing a
message: org.apache.jasper.JasperException: Cannot find message
resources under key org.apache.struts.action.MESSAGE.
It
: Struts Users Mailing List
Objet : RE: bean:write problem with struts 1.1
But I didn't specify any data-sources from my struts-config file. Do I
have to include it anyway?
On Tue, 2003-07-08 at 09:59, Nicolas Seinlet wrote:
It kept throwing a
message: org.apache.jasper.JasperException: Cannot find
and see...
-Message d'origine-
De : David Jiao [mailto:[EMAIL PROTECTED]
Envoy : mardi 8 juillet 2003 17:09
: Struts Users Mailing List
Objet : RE: bean:write problem with struts 1.1
But I didn't specify any data-sources from my struts-config file. Do I
have to include it anyway
I might suggest writting your own tag then to ouput the desired text. Tags
are not difficult to write and you can make changes to it pretty easily if
you need to modify the functionality later one.
JMG
- Original Message -
From: SuniX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
of
the object is exactly the same as its class name)
JMG
- Original Message -
From: SuniX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 04, 2003 9:51 AM
Subject: Re: bean:write boolean
okay ... i've never write tags
can you give me a small example ?
Jamie M. Guillemette
of
the object is exactly the same as its class name)
JMG
- Original Message -
From: SuniX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 04, 2003 9:51 AM
Subject: Re: bean:write boolean
okay ... i've never write tags
can you give me a small example ?
Jamie M
http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html
Start with this link .. if you run into any problems you can msg me.
:)
JMG
- Original Message -
From: SuniX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 04, 2003 10:16 AM
Subject: Re: bean:write boolean
04, 2003 10:16 AM
Subject: Re: bean:write boolean
thanks ...
i still have some question :
how do you use your tag after that ? i just have a class but i suppose
i have to write its description in a tld file or something like that.
do you have good links talking about writing own tags ?
what about
Maybe the setter or getter for userCountry object is messed up.
Or possibly the getter or setter for users.getUsersCountry() or
users.setUsersCountry() is messed up.
Messed up meaning setCountry(String county){ this.country = country; } like
a misspelling or something. So when the update
try writing input type=text / as lt;input type=quot;textquot; /gt;
HTH Filip
-Original Message-
From: Vinay Mhapankar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 12:52 PM
To: [EMAIL PROTECTED]
Subject: bean:write filter=false
Hi All,
I need to display
Use this:
logic:iterate id=thisElement name=someList type=java.lang.String
bean:write name=thisElement/
/logic:iterate
This will go through a list of Strings and print out each one. This also
works for lists of non-string objects. Let me know if you need help with
that modification.
Change you tags to be:
html:textarea property=longDesc1 cols=20 rows=5
nested:write name=eventForm property=longDesc1 scope=request/
/html:textarea
Tags within properties are not interpreted.
Brad Handy
-
Bradley M. Handy|
-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:01 PM
To: 'Struts Users Mailing List'
Subject: RE: Bean:write in a html:textarea value property...?
Change you tags to be:
html:textarea property=longDesc1 cols=20 rows=5
nested:write name=eventForm property
If can use the jstl, you can:
c:out value=${myHash['NAME']} /
It automagically encodes, as well.
-Original Message-
From: Rob King [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:28 PM
To: Struts Users Mailing List
Subject: bean:write / HashMap
Hi,
I have checked
[EMAIL PROTECTED] írta:
hello
i have a class wich contains another class
like class user which contains a class adress in a response.
i'd like to write the properties in a jsp
bean:write name=user property=address.city /
hth,
Tib
hello
i have a class wich contains another class
like class user which contains a class adress in a
response.
i'd like to write the properties in a jsp
bean:write name=user property=address.city /
hth,
Tib
thanks
couldn't have been more simple !
-
SPECIAL ADSL
L'ADSL à partir
bean:write name=user property=address.city /
Again, with struts-el
c:out value=${user.address.city}/
Dan
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[EMAIL PROTECTED] wrote:
hello
i have a class wich contains another class
like class user which contains a class adress in a
response.
i'd like to write the properties in a jsp
bean:write name=user property=address.city /
hth,
Tib
thanks
couldn't have been more simple !
-
That can be elegantly handled with JSTL as
c:out value=${user.address.city} default=help!/
Sri
-Original Message-
From: teknokrat [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 10:35 AM
To: [EMAIL PROTECTED]
Subject: Re: bean:write question
[EMAIL PROTECTED] wrote:
hello
On Mon, 17 Mar 2003 16:21:00 -0500
Cohan, Sean [EMAIL PROTECTED] wrote:
Both methods return Strings.
What am I missing?
Send the whole JSP to [EMAIL PROTECTED]
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL
anyone anyone... something doo economics
Is there a simple way to display a yes or no instead of true or false
when writing a boolean from bean:write? I was thinking of creating a
custom tag for this, but this has to have come up before no? What is
the best solution?
-John
Read up on logic:equal/notEqual
or use JSTL c:choose
-Tim
-Original Message-
From: John Towell [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 1:14 PM
To: [EMAIL PROTECTED]
Subject: Re: bean:write , boolean, and yes or no
anyone anyone... something doo economics
---
From: Ray Madigan [EMAIL PROTECTED]
Sent: 02/24/03 11:54 AM
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: bean:write issues... or a better solution
If queuesName is a session or request level attribute then
the options tag should be
html:options collection=queuesName property
Show us where you're putting queuesName into request scope.
-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 10:12 AM
To: Struts Users Mailing List
Subject: Re: RE: bean:write issues... or a better solution
I tried this in my page
]
Subject: RE: RE: bean:write issues... or a better solution
Show us where you're putting queuesName into request scope.
-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 10:12 AM
To: Struts Users Mailing List
Subject: Re: RE: bean:write
]
Sent: 02/25/03 01:34 PM
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: RE: RE: bean:write issues... or a better solution
It's in my action class. theForm is the ActionForm that gets passed in.
QueueListing[] theQueues = new QueueListing [cboQueue.getCount()];
for (int i=0; i
: Tuesday, February 25, 2003 12:35 PM
To: Struts Users Mailing List
Subject: Re: RE: RE: bean:write issues... or a better solution
It's in my action class. theForm is the ActionForm that gets
passed in.
QueueListing[] theQueues = new QueueListing [cboQueue.getCount()];
for (int i=0; i
: Tuesday, February 25, 2003 10:12 AM
To: Struts Users Mailing List
Subject: Re: RE: bean:write issues... or a better solution
I tried this in my page and i get:
[log error]
javax.servlet.jsp.JspException: Cannot find bean under name
queuesName
Did that jsp code come through? my webmail removed it from my side...
---Original Message---
From: Jason Vinson [EMAIL PROTECTED]
Sent: 02/24/03 11:37 AM
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: bean:write issues... or a better solution
Hi folks,
I am using a
If queuesName is a session or request level attribute then
the options tag should be
html:options collection=queuesName property=objid/
given that the collection elements implement the getter getObjid ( ).
Hope this helps!
-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]
Have you tried this syntax:
html:options collection=statusLookup property=name
labelProperty=value/
statusLookup is my Collection (in request scope), each element has getName()
and getValue() methods...
you're not going to be able to accomplish this by nesting jsp tags, as that
is 'illegal'...
The below example is worked by using Hastable and logic:iterate combination.
I think it is usefull for you Let me know..
%
java.util.Hashtable bunchList = new java.util.Hashtable();
com.km.struts.tutorial.TestBean test1 = new
com.km.struts.tutorial.TestBean();
bunchList.put(0,test1);
Can we see the class, what happens is that bean:write will call
employee.getEmpname so if you don't have the getEmpname function is your
bean class, that explains it.
Ilya
-Original Message-
From: TK
To: 'Struts Users Mailing List'
Sent: 1/16/03 10:22 AM
Subject: bean:write - No getter
]
Sent: Thursday, January 16, 2003 12:54 PM
Subject: RE: bean:write - No getter method for property
Can we see the class, what happens is that bean:write will call
employee.getEmpname so if you don't have the getEmpname function is your
bean class, that explains it.
Ilya
-Original
Have you tried setting the filter attribute of bean:write to false?
Sri
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 2:23 PM
To: [EMAIL PROTECTED]
Subject: bean:write and embedded html tag
My ActionForm is
public class
Good point
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: January 15, 2003 2:26 PM
To: Struts Users Mailing List
Subject: RE: bean:write and embedded html tag
Have
Thank you!!!
Now looking at the javadocs, I found the filter option. It would be nice thought to
have this mentioned in the description part of the the javadocs for bean output
section. I missed it earlier, cause I assumed the format for bean documentation would
be the same as for html and
Sash,
bean:write name=someBean property=desc filter=false/
- Eric
- Original Message -
From: Sash Sash [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 29, 2002 11:04 AM
Subject: bean:write html stuff, how
Hello and Happy Holidays to you all!!!
Got a quick
1 - 100 of 155 matches
Mail list logo