I would think (hope, rather) that calculations are not being performed in
the form beans. While you are correct about rounding errors, this has
nothing to do with display beans(for want of a better word) For example,
reading a float/double value from a database and displaying it requires this
kind
I used a taglibrary I found on the web to format currency etc.
http://coldjava.hypermart.net/servlets/numtag.htm
Alternatively, you can format them as Strings in the Action (if it is for a
form bean) using the java.text.NumberFormat classes
HTH
JC
-Original Message-
From: Galbreath, M
Make sure you have included the logic taglib in your page
<%@ taglib uri="WEB-INF/struts-logic.tld" prefix="logic" %>
If you dont have this, the logic tags are just ignored and you will get the
output you described.
HTH,
JC
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PRO
sorry that should be loan.getColor()
-Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:41 PM
To: 'Struts Users Mailing List'
Subject: RE: Setting Color inside logic:iterate
Try this
-Original Message
Try this
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:30 PM
To: Struts Group (E-mail)
Subject: Setting Color inside logic:iterate
Hi,
is there anyway to set the color of a row from the bean being iterated?
My code is give
Try styleClass
Look here to find a list of valid attributes for submit
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#submit
-JC
-Original Message-
From: Andrew H. Peterson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 11:33 AM
To: Struts User Forum (E-mail)
S
Anyone notice that the quality of the questions has gone up since Mark's
post? Maybe a link to this article should be provided on the Jakarta site
about the right way to ask questions.
-JC
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 8:51 A
I think you have to use scriptlets for this. Alternatively, look at the code
for the nested tags (available in the nightly build I believe) to achieve
what you want.
Or checkout this site
http://www.keyboardmonkey.com/struts
Hope that helps
-JC
-Original Message-
From: Pete Serafin [m
perty
and name, only property and only name but nothing seems to work. Maybe I am
missing something? Could anyone point it out please? Thanks.
-Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 1:25 PM
To: 'Struts Users Ma
Try
I am not sure if that is right.
But you can go here for further documentation.
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#options
Hope that helps
-JC
-Original Message-
From: Honman Lee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 3:20 PM
To: Stru
Yes and no. In the scenario you outlined, there are two requests. TThe
original request ends when the response comes back to the browser not when
you press submit. Throughout all of your action, the request is still the
same.
A new request is started when you hit submit again on form B.
Hope that
it worked.
--- "Jakkampudi, ChandraseKhar"
<[EMAIL PROTECTED]> wrote:
> Try putting your attributes in quotes as the error
> message suggests.
> width="88" height="24" etc
>
> JC
>
> -Original Message-
> From: KM [mailto:[EMAIL PRO
Try putting your attributes in quotes as the error message suggests.
width="88" height="24" etc
JC
-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:06 PM
To: Struts Users Mailing List
Subject: Re: FW: how to use an images for submit, cancel button
Another drawback of Option 1 is that if your jsp's change frequently (adding
fields in the form, different formatting etc.) having two jsp's requires you
to update two files. This is not a problem in itself but it might make for
more difficult maintenance because you might make changes on one jsp
-Original Message-
From: Martin Fekete [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 11:59 AM
To: Struts Users Mailing List
Subject: Re: Struts tag for label
try
Feky
- Original Message -
From: "Jakkampudi, ChandraseKhar" <[EMAIL PROTECTED]>
To: "'
Is there a way to have display only properties on a form? For example, I
want to display UserID as non-editable field and address as editable. I
cannot use the "disabled" attribute on text tag because these values are not
passed to the server and I need the userID to edit proper values.
I am doin
You dont need two actions. You can use an 'action' parameter to decide which
action you are performing.
On your html:link add a parameter action="view"
and on the submit action="add" or action="edit" depending on what you are
doing.
In your action, you can have if statements that perform differ
Amit,
I dont know about a better way but I am doing exactly the same thing as
you and it works. The only thing, probably, that is different in our
implementations is that I did not code the reset method of the action form.
Also I use the jsp:useBean to get the bean from the request.
Try tho
ee that filling a jsp with debug code makes for easier
> debugging.
> If something is populated incorrectly, you would look at your Action
> object.
> I have toString() method in my business objects, and these objects log to
> file. Each layer provides its own logging (I'
ged, I shouldn't have to debug it from a different
layer. This makes for simple unit testing, and does away with the need for a
gui debugger
Scott
> -Original Message-
> From: Jakkampudi, ChandraseKhar [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 11:36 AM
> To:
n, one
of the benefits of clean MVC design
Scott
> -Original Message-
> From: Jakkampudi, ChandraseKhar [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 10:59 AM
> To: 'Struts Users Mailing List'
> Subject: RE: How do I init a Form bean via bus
Why should pre-populating a form be done in the preceding action? When you
want to display some dynamic info. say in a table you put a value bean in
the request or session and use bean:write etc to display. Why should the
same not apply to form beans? Why not use the value attribute of the the
htm
Here is what I do.
User (Generic Value Object)
UserBean (Extends form bean)
On initial page we have a link to viewUser.do?userId=100
In the Action class correspoding to viewUser.do, in the perform method we
have (maybe through an controller or some such)
User newUser = userDAO.getUserDetails("
dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
"Jakkampudi, ChandraseKhar" wrote:
>
> The form is initially populated from a value object like
>
>
> and
>
>
> userInfo is not my Act
I used a value object to prepopulate the form on initial access for
modification like
and
as I mentioned in a previous post. Everything works fine except that the
userID which is a hidden field is not retained on returning to input page
either on failure of validatoin or other reasons.
User In
truts/
"Jakkampudi, ChandraseKhar" wrote:
>
> UserID is a member of my action form sub class. I do not have a reset
method
> defined and I do not use the html:reset.
> I do use html:hidden tag as you suggested but for scalability and other
> reasons I do not use a session sco
't wipe it out in
your reset() method) for you if you have a
tag in your jsp. I tried this using a session scoped form and it worked.
Tim
-Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 12:29 PM
To: 'Struts Users M
This also seems to be an issue with other logic tags too.
You can use these tags for request parameters but not attributes.(Why dont
we have a request.setParameter() anyway?)
Any suggested work arounds?
-JC
-Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED
I have a jsp that displays details of a user. The display is in a form that
can also be used to modify user details. Access to this page is via a url
like http://xyz.com/userDetails.do?userID=123. However the userid is not a
editable field and I use a hidden variable to pass this information back
n use the collections and the struts
tablib for the list?
>From: "Jakkampudi, ChandraseKhar" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: R
Is there an alternative to breaking the MVC?? We have to populate drop downs
from the database. So I call the DAO from the JSP through a Helper Object
(will convert this to a tag) and use the returned collection to populate the
drop down using the html:select tag. For efficiency, we may store this
Exactly.
Which is why, for the original question about the wizard interface, I
suggested putting into the session the logical form that spans pages and is
broken up into multiple forms physically. As long proper cleanup is done at
the last tab of the wizard interface, there should be no session
Subject: RE: Jsp in another Jsp using struts
could u please explain me how to use templates...
Thanks in advance
Kalpana
On Tue, 05 Feb 2002 Jakkampudi, ChandraseKhar wrote :
> If you want to include the file as a footer consider
> using the template
> taglibs.
>
> Incl
Stephen,
Session persistence across app servers would be an issue anyways if
you put anything in the session would it not? So are you suggesting that if
a project might migrate from single app server to multiple, then nothing
should be in session scope? If atleast some objects are stored i
05, 2002 12:01 PM
To: Struts Users Mailing List
Subject: RE: Jsp in another Jsp using struts
I want to add a jsp page as a footer/bottom to every other Jsp pages
but <%@ include file="xxx.jsp" %> is used at the top i guess???
Thanks in advance
Kalpana
On Tue, 05 Feb
You have a typo.
Change your validate to
new ActionError("errors.id.required", "id=123"));
or your ApplicationResources.properties to
error.id.required= blah
Note the 's' at the end of errors in your applicationresources file
-Original Message-
From: Henry Lu [mailto:[EMAIL PROTEC
You dont need struts for this. Just use
<%@ include file="xxx.jsp" %> wherever you want to insert your JSP file.
-Original Message-
From: Kalpana RamiReddy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 11:54 AM
To: Struts Users Mailing List
Subject: Jsp in another Jsp usin
e Carapetyan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 10:44 AM
To: Struts Users Mailing List
Subject: Re: Wizard Interface question
"Jakkampudi, ChandraseKhar" wrote:
> I dont think this approach will work if you need transactional control
> across the differe
I dont think this approach will work if you need transactional control
across the different "tabs" of the wizard. For example if it is a
registration wizard that collects contact info and billing info on different
tabs, using different forms and commiting to the database will leave you
with a lot
Like I said, it can take a real time expression. So you can do
">
You have to have scriptlets or expressions to set the value dynamically.
-Original Message-
From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 2:25 PM
To: [EMAIL PROTEC
You can set the value paramater like this
Value can take a real time expression. Unfortunately, it currently works
only if you dont have multiple set to true. It should work in your case.
-Original Message-
From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
Sent: Wednesda
'Option' as unselected. This is a pretty messy solution, but
it may
have to do. I will see if I can modify the source code for a more elegant
result,
allowing for time constraints.
regards,
Paul.
-----Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]]
I had the same problem on a previous project. I looked at the source code
and currently you can specify only one value. A workaround is to check the
values yourself and set the selected option on the options. Alternatively
you can get the modify the source. If you do this, I hope you can post your
43 matches
Mail list logo