> From: Bender, James [mailto:[EMAIL PROTECTED]
> > I'm new to Struts and have searched without luck on this one:
> > I have an that I'm simply trying to put a runtime
> > expression into, like
> > <% String rtexpr = "bob"; %>
> >
> > And instead of interprestting the rtexprvalue "bob", it
> ac
Well the following fixed it:
The problem was the case in the "reportForm". The form bean was named
ReportForm and I did not realize the case was changed when set in the
session.
I used the following snippet of code to help in the debugging (I sure wish I
had tried this earlier) and placed it in
works, indicating the value is present in the formbean.
Is your form name "total". If so whats the scope of this bean?
You could also try
<%
Object total = pageContext.getAttribute("total");
// debug statementsto print the value/object type etc.
%>
just to make sure both
Tried both cases - no joy.
Also tried wrapping the tag
in tag:
while setting the ignore to 'false'. The page renders, but apparently the
bean is not visible in the scope. But, if that is the case, why does it
work with the taglib?
On Thursday 26 February 2004 14:56, you wrote:
> The
MAIL PROTECTED]
Sent: Thursday, February 26, 2004 2:37 PM
To: [EMAIL PROTECTED]
Subject: Re: html:text works, bean:write fails
Tried both cases - no joy.
Also tried wrapping the tag
in tag:
while setting the ignore to 'false'. The page renders, but apparently the
bean is not
I added the following tag:
Not present
And I DO get the 'Not present' text. I am still confused; why then does the
tag work?
Sorry for the posting to myself, but I am hoping for someone to pick up the
thread and tell me what a Doofus I am and point me the right way. That may
have
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a situation where I have not found a solution in the archives (I'm
> sure it is there, just don't know the right search), the documents (I have
> half dozen Struts books, plus the tomcat docs), and Google has not been my
> friend
The message-resource file is loaded at startup an held in memory as an
instance of org.apache.struts.util.MessageResources. The instance is stored
in the ServletContext. To access it from a JSP, look for the
Globals.MESSAGES_KEY attribute:
<%@ page import="org.apache.struts.Globals" %>
<%@ pa
> how can i add the test value to the html:text like below
> property="testers.testerName"/>
>
You can't nest tags, but you can use the "el" version of the Struts html
tags:
--
Tim Slattery
[EMAIL PROTECTED]
-
To
answer,
U cant nest tags!
either use html-el for getting the value or use scriptlets
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 20, 2004 4:35 PM
Subject: html:text question
> Question,
> how can i add the test value to the html:t
Anant,
Either set the values of your strings when you declare them to "" or set
them to "" in the constructor of your FormBean.
Rgds,
Richard
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 10:42 PM
To: [EMAIL PROTECTED]
Subject: H
n?
> Another question, once it´s finished, what about sending your component?
>
> Thanks
>
> Giovani Salvador
>
>
> - Original Message -
> From: "Hubert Rabago" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMA
ssage-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 2:27 PM
To: Struts Users Mailing List
Subject: Re: html:text and converter
Yes, that last msg wasn't much help. Maybe if you provide a bigger picture
of
the situation, other folks can give you alternative
ROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 6:01 PM
Subject: Re: html:text and converter
> I'm working on a plug-in which addresses some of the concerns you have.
The
> plug-in is supposed to:
>
> 1. define dyna
Giovani Salvador
- Original Message -
From: "Brad Balmer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 5:29 PM
Subject: Re: html:text and converter
> This may be considered a workaround instead of
nt: Thursday, January 08, 2004 5:28 PM
Subject: RE: html:text and converter
Isn't this issue resolved by using ActionForms correctly in the first place?
They are meant to save/transport form state, which is composed of strings.
When you want to represent form properties as Dates, Integers, e
ink the major question is:
> How can i use the html:text to get value from an object (DTO or Action Form)
> and FORMAT it
>
> I have seen in the archives many questions and no real answer.
>
> Thanks
>
> Giovani Salvador
>
>
>
> - Original
--
From: Giovani Salvador [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 3:20 PM
To: Struts Users Mailing List
Subject: Re: html:text and converter
Don´t worry Hubertwell, i will try explain more detailed
I have a jsp page with the following tag
Ok, the attribute "name
read
directly from my DTO and, unfortunatly, no conversion is made. :(
Giovani Salvador
- Original Message -
From: "Hubert Rabago" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 3:14 PM
Subjec
Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 4:27 PM
Subject: Re: html:text and converter
> Yes, that last msg wasn't much help. Maybe if you provide a bigger
picture of
> the situation, other folks can give you alternatives. Or at least help
con
>
> > Giovani Salvador
> >
> >
> > - Original Message -
> > From: "Hubert Rabago" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, January 08, 2004 3:14 PM
>
>
> Giovani Salvador
>
>
> - Original Message -
> From: "Hubert Rabago" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, January 08, 2004 3:14 PM
> Subject: Re: html:text and converter
&g
Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 3:14 PM
Subject: Re: html:text and converter
> You'll have to format the data that you're passing to your ActionForm. If
you're
> extending from ActionForm (but not using a Dyna form), perhaps yo
You'll have to format the data that you're passing to your ActionForm. If you're
extending from ActionForm (but not using a Dyna form), perhaps you can format the
data in your setField() method, or before returning from a getField() method.
--- Giovani Salvador <[EMAIL PROTECTED]> wrote:
> Hi all
Thanks David...i know it´s my friend :)
I really did not see that.
Giovani Salvador
Procergs
- Original Message -
From: "David Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 04, 2003 9:36
It works with beans in you have imported into your JSP page using the
'name=""' attribute.
name The attribute name of the bean whose properties are consulted when
rendering the current value of this input field. If not specified, the bean
associated with the form tag we are nested within is utiliz
writing in a logic iterate loop or what?
F.
- Original Message -
From: "struts" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 3:41 PM
Subject: Re: html:text i'm lost
> When i do s
match the
> name you stored it in the request with.
>
> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 31, 2003 8:41 AM
> To: Struts Users Mailing List
> Subject: Re: html:text i'm lost
>
>
> When i do something like
The name you provide for the "name" attr in must match the
name you stored it in the request with.
-Original Message-
From: struts [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 8:41 AM
To: Struts Users Mailing List
Subject: Re: html:text i'm lost
When i do som
object
populateForm(form, request);
- Original Message -
From: "Firat TIRYAKI" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 2:35 PM
Subject: Re: html:text
> you should use the name too
;Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 2:23 PM
Subject: Re: html:text
> <%=users.userName %>
>
> struts wrote:
>
> >This is maybe a stupid question but how can i print the user.userName
value on screen instead of in a text box
you should use the name too
name is the id you define in tags (logic:iterate maybe)
and also
should work
F.
- Original Message -
From: "struts" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 3:18 PM
Subject: html:text
This i
<%=users.userName %>
struts wrote:
This is maybe a stupid question but how can i print the user.userName value on screen instead of in a text box ?
eg:
i want to do something like : but this is not working.
Thanks
-
To
Hi Dmitri,
An tag can only be used within an tag. So if you
have that form defined, then you can associate an ActionForm (or probably a
DynaActionFrom) with it in the struts-config file. The ActionForm is where
you define what the html:text property is. Once you have made that
associated, the
I'm not too sure exactly what you're trying to do, but I think this is
generally how you'd be using
-Ben
From: "Dmitri Ilyin" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
T
Have you checked here?
http://jakarta.apache.org/struts/userGuide/struts-html.html#text
David
From: Mohan Radhakrishnan <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
AIL PROTECTED]
Sent: Thursday, March 06, 2003 9:45 AM
To: [EMAIL PROTECTED]
Subject: RE: html:text accepts indexed properties
I don't see how the text input data being a date string has any relevance to
the problem. If you have 2 inputs on the form named "myDate" and a String[]
rishnan <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: html:text accepts indexed properties
Date: Thu, 6 Mar 2003 09:37:03 +0530
Well . Even in this case it is still ind
h 06, 2003 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: html:text accepts indexed properties
A String[] form field implies that there are multiple form inputs with the
same name.
David
>From: Mohan Radhakrishnan <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List"
A String[] form field implies that there are multiple form inputs with the
same name.
David
From: Mohan Radhakrishnan <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: html:text accepts indexed properties
- Original Message -
From: "Robert S. Sfeir" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 3:54 PM
Subject: Re: html:text property magic?
> Oh no, I understand the case sensitivity problem (
Oh no, I understand the case sensitivity problem ( geez, do I seem like
that much of a newbie? :-) )
I was just wondering where it figured out to pick up the proper bean,
and you answered it with
and since I have:
I don't see how it pertains to this, unless the action Login, which is
def
It assumes that it should use the bean that was defined by the surrounding
in your
struts-config instead of:
Hope that helps.
--
James Mitchell
- Original Message -
From: "Robert S. Sfeir" <[EMAIL PROTECTED]>
To: "Struts List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12
I think this is how you'd do it using JSTL and Struts-EL (I may have messed
the names up)
-Original Message-
From: Charlie Toohey [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 02, 2003 4:10 PM
To: Struts Users Mailing List
Subject: Re: html:text tag "indexed&
Thanks David. I appreciate your help.
My conclusion is that the html:text "indexed" attribute is only intended for
collections of beans which have properties, not for collections of Strings
which do not have properties. The generated "name" attribute for the HTML tag
of name[nn].property simply
> "Charlie" == Charlie Toohey <[EMAIL PROTECTED]> writes:
Charlie> Thanks David. That worked for the value attribute:
Charlie>
Charlie>
Charlie>
Charlie> BUT, this resolves to an HTML text tag of:
Charlie> value="somevalue">
Charlie> This is my larger ques
Thanks David. That worked for the value attribute:
BUT, this resolves to an HTML text tag of:
This is my larger question --- what I'm trying to get is
Using the Struts html:text tag with indexed="true", I am iterating over a
collection of String objects, NOT a collection of bean objec
> "Charlie" == Charlie Toohey <[EMAIL PROTECTED]> writes:
Charlie> Thanks David.
Charlie> I tried your suggestion although I still have no idea what to use for the
Charlie> value of "property" --- any way, I can't get it work. I can not get my
.jsp
Charlie> to compile using
You do have to make sure you have an indexed
> setter on your form bean that agrees with your resulting indexed request
> parameter name. This can get confusing, I know.
>
> -Original Message-
> From: Charlie Toohey [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 31, 2003
ge-
From: Charlie Toohey [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 2:12 PM
To: Struts Users Mailing List
Subject: Re: html:text tag "indexed" attribute
Thanks. I hope somebody knows the answer to the first question.
re: my iterate over String array question --- I
Thanks. I hope somebody knows the answer to the first question.
re: my iterate over String array question --- I've got half of a solution,
i.e. to pre-populate the form by supplying the "value" attribute. The other
half is producing HTML input text tags with "name" attributes aString[0],
aStrin
I have a feeling that both could be interpreted as correct, but we could
use some other opinions on this. I wrote the first one, so I'll update
it if this discussion points out a better way to say this.
On your quandary with iterating over a collection of String objects,
instead of beans, it's us
This has been fixed in Struts 1.1b3 - you can enable this using either of
the following:
or on your included pages:
One thing to note is that it doesn't do XHTML 1.0 Strict as it still used
the attribute "name" in a form.
HTH,
Matt
-Original Message-
From: julian green [mailto:[EMA
D]>
Sent: Thursday, August 29, 2002 1:08 AM
Subject: Re: html:text in logic:iterate ?
> To have the setters work in a logic:iterate, you should use the "nested"
> taglib (keyboardmonkey.com/struts if I'm not mistaken)
>
> tomK
>
>
> Rejin NS wrote:
>
>
it did not have the setter method
for title. Is this a real problem? How could I work around this one?
Thanks.
Kwang-Shi Shu
(732) 537-6862
=
-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent
To have the setters work in a logic:iterate, you should use the "nested"
taglib (keyboardmonkey.com/struts if I'm not mistaken)
tomK
Rejin NS wrote:
>Thanks for the sample code, Maris.
>
>I could make some headway, but still can't get the setters to work. Here is
>the snippet:
>
>
>
>
>
>
Thanks for the sample code, Maris.
I could make some headway, but still can't get the setters to work. Here is
the snippet:
'list' is a vector.
'Club' has a private String variable - 'data', with get/set methods.
The values are displayed correctly on the page.
The problem is that the ne
Here you got sample code:
Zurnals4Buvniecibas is form class, it has property saraksts which contains a vector
with objects of Zurnals4CommonView.
Zurnals4CommonView has properties jaiesniedzAtskaite, jaiesniedzDatums and so on
...
Maris
Subject: Re: html:text initial value
From: "Sebastian Millies" <[EMAIL PROTECTED]>
===
Come to think of it, Satish was exactly right: Simply
should be enough, provided you set the initial value of the
form property to "00.00." in the form constructor,
or in t
Subject: Re: html:text initial value
From: "Sebastian Millies" <[EMAIL PROTECTED]>
===
How about
and you set the initial value of the form property to "00.00." in the
forms
constructor.
Please let me know if this actually works.
-- Sebastian
"Sann, Steph
set the value of the textbox property of the form in ur action class
before u throw it and also remove the value="" from the tag if u want
to retain the value if an error is thrown.
satish
- Original Message -
From: "Sann, Stephan" <[EMAIL PROTECTED]>
Date: Tuesday, July 9, 2002 4:05 p
hange ?
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 12:20 AM
To: 'Struts Users Mailing List'
Subject: RE: html:text indexed gotcha
I was thinking along similar lines, and you are correct about passing the
literal string field name
J SI-FSIA [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 12:07 PM
To: 'Struts Users Mailing List'
Subject: RE: html:text indexed gotcha
Hi Mark,
Haven't got an example that does what you need exactly, but when we need to
do something like this, we create a javascript fun
Hi Mark,
Haven't got an example that does what you need exactly, but when we need to
do something like this, we create a javascript function in either the jsp or
a js file referenced by the jsp that does the actual work - so the confirm
or the window.location processing. The onchange just calls
have you written the code using the readonly, disabled..
if so can u send a piece of your code...
regds,
David
-Original Message-
From: Nekkalapudi, Viplava [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2002 20:02
To: 'Struts Users Mailing List'
Subject: RE: html:text
We
the request parameter.
Any information on this?
Thanks,
-Original Message-
From: Chalissary, David [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 1:29 PM
To: Struts Users Mailing List
Subject: RE: html:text
sorry abt the message...I meant was
the attribute is defined in the
Have you specified the property attribute, which is required.
It may give compile time error.
-Original Message-
From: Chalissary, David [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 1:13 PM
To: Struts Users Mailing List
Subject: RE: html:text
the code
"
/>
t
Mailing List
Subject: RE: html:text
Thats fine I can overcome that but the problem is
the attribute is mentioned but it gives the error mentioned.
I dont know if its the struts version or else wot is the problem.
regds,
David
-Original Message-
From: Carl Sziebert [mailto:[EMAIL
g List
Subject: RE: html:text
the code
"
/>
the error message is:
readonly is not a valid attribute for tag html:text
David
-Original Message-
From: Chalissary, David
Sent: 22 January 2002 19:09
To: Struts Users Mailing List
Subject: RE: html:text
yes...i definitely did...but
To: Struts Users Mailing List
Subject: RE: html:text
Well you have greater problems than the readonly issue you mentioned
earlier. You cannot have custom tags as attributes of other nested
tags. However you can have nested tags within the body of other tags.
Basically you cannot use the
-Original Message-
From: Chalissary, David [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 11:13 AM
To: Struts Users Mailing List
Subject: RE: html:text
the code
"
/>
the error message is:
readonly is not a valid attribute for tag html:text
David
-Original
the code
"
/>
the error message is:
readonly is not a valid attribute for tag html:text
David
-Original Message-
From: Chalissary, David
Sent: 22 January 2002 19:09
To: Struts Users Mailing List
Subject: RE: html:text
yes...i definitely did...but was unable
regds
yes...i definitely did...but was unable
regds,
David
-Original Message-
From: Carl Sziebert [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2002 18:58
To: Struts Users Mailing List
Subject: RE: html:text
Did you use the proper format of readonly="true", etc? The html tags
re
nt: Tuesday, January 22, 2002 10:51 AM
To: Struts Users Mailing List
Subject: RE: html:text
Hi,
Has anybody used the html:texts disabled & readonly attributes.
The error generated - is this tag doesnt support readonly
or when I am using the disabled, I have the same error.
If so, is it bcoz
Hi,
Has anybody used the html:texts disabled & readonly attributes.
The error generated - is this tag doesnt support readonly
or when I am using the disabled, I have the same error.
If so, is it bcoz of the old struts.
Help is highly appreciated.
thanx in advance
regds
David
--
To unsubscri
If you are using Struts 1.0 final release, it is a legal attribute you can
use to disable a checkbox,
but you need to do it like this:
=
=
Hope this helps
Jaso
Title: RE: html:text default values? how?
It is the way Struts is intended to be used. You should read up on the MVC/Model 2 design pattern. If you strictly follow this pattern you should never directly access a jsp page, instead you should always go through an action class.
-Original
that would definitely work. however, it adds another class to the mix
of things. something that was easy was made difficult to do. basically
for something using just JSP is a cinch.
my options are: add the new action and a new class, maybe add a new
action that doesn't validate the form but refer
Title: RE: html:text default values? how?
Why don't you use Struts and the MVC design pattern? You should have an action class that populates your form bean, then forwards to login.jsp. Struts will get the value from the form bean and display it on your page.
-Original Me
I found the problem which was causing this. I was making a call to
servlet.log in the getter method for that tag (and only that tag). I just
wanted to verify when the getters were called in the overall sequence. I
also discovered that putting a call to servlet.log in the getter methods for
other
Similar question. Is there good recommendation to
handle html:text when the
property attribute of a bean whose property is type "Timestamp"?
Thanx.
Silvia
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]Sent:
Thursday, February 01, 2001 8:44 AMTo: Struts ListSubject:
html:text vs html:hidden
81 matches
Mail list logo