Kevin,
I finally got
logic:iterate ... html:text ... indexed=true/ ... /logic:iterate
to work.
The sample code came from
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12084.html
Thank you Dave.
I built Dave's code on top of struts-example. All necessary code is
attached.
On the
/
/action
===
Try it out.
Cheers,
Leo
From: Leonardo Maciel [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: struggling with indexed/repeating input fields
Date: Tue, 19 Nov 2002 15:33:04 +
Kevin,
I
===
Try it out.
Cheers,
Leo
From: Leonardo Maciel [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: struggling with indexed/repeating input fields
Date: Tue, 19 Nov 2002 15:33:04 +
Kevin,
I finally got
%=idx.toString()%
or
%=idx.intValue()%
From: Karr, David [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: iterate tag - can you set an increment?
Date: Tue, 19 Nov 2002 09:34:17 -0800
Certainly. It's
Yes I do it to set the row bgcolor.
logic:iterate id=result indexId=inx name=test.SEARCH_RESULT
type=test.SearchResult
% if ( inx.intValue() % 2 == 0 ) { %
tr
% } else { %
tr bgcolor=#cc
% } %
From: Andy Kriger [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
the the internal array list representation upon
request.
This approach eliminated the IndexOutOfBoundsError on submit of our form.
-Original Message-
From: Leonardo Maciel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 12:18 PM
To: [EMAIL PROTECTED]
Subject: RE: Re: struggling
Sorry bother with basic stuff, but does preselect value works on radio
button?
-- I have the JSP code:
TRTD
bean:write name=SurveyDetailForm property=bFlag /
html:radio property=bFlag value=YesYes/html:radio
html:radio property=bFlag value=NoNo/html:radio
/TD/TR
-- That produces:
Yes O
associated with the form tag.
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 utilized.
Thank you
Leo
From: Leonardo Maciel [EMAIL PROTECTED
of indexed form elements.
Btw, does your exception gets thrown when you submit your form data or when
you display the form the first time?
Regards
Christoph
Leonardo Maciel schrieb:
You are not alone :(
I also have tried several combinations same BeanUtils exceptions.
My environment is jakarta
You are not alone :(
I also have tried several combinations same BeanUtils exceptions.
My environment is jakarta-struts-1.1-b2 on Apache Tomcat/4.1.12
JSDK=1.4.1_01-b01
I also tried with JSDK1.3.1-06 where I got the exception:
java.lang.reflect.InvocationTargetException:
bean:define id=pickAName name=theForm property=beanInForm
type=type.of.the.bean /
%=pickAName.getMethod()%
From: Zsolt Koppany [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: How can I access the form bean object from JSP?
Date: Sat,
Quick question:
logic:iterate...
html:text... indexed=true/
/logic:iterate
Is this feature on jakarta-struts-1.1-b2
or I need to recompile struts as suggested by Dave on article
http://husted.com/struts/resources/indexed-tags.htm
Thank you,
Leo
Good Saturday!
I believe I am getting the same bug.
I am getting:
Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.get(ArrayList.java:320)
at test.IndexedForm.getParameter(IndexedForm.java:28)
...
If you don't have a car, no problem,
walkToYourCar throws CarException()
So your Friday would be like this:
===
try{
walkToYourCar();
} catch(CarException e) {
getToNearestPub(); // don't mater how
}
===
Just a suggestion, I haven't try.
Let me know if it works ;)
Leo
From: Drew
Hi all, I search the list and found some good samples, but I'm still unable
to execute the following code.
The newEntryContinue.do action shows the correct name and description values
with the bean:write and the text boxes
When I submit I get:
javax.servlet.ServletException: BeanUtils.populate
logic:present name=beaninstance property=method
logic:equal name=beaninstance property=method value=A
DO SOME.
/logic:equal
/logic:present
-Original Message-
From: Yaman Kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 10:40 AM
To: Struts Users
Isn't it the input attribute of the action tag in the struts-config.xml file?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 4:40 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: ActionForm question
I am looking into the
a href=javascript:openWindow('reportDelivery',
'/budsDev/jsp/reportDeliveryQP.jsp',1,350,300)
or if you want open the page with reportNav action (that's what I use):
a
href=javascript:openWindow('reportDelivery','fullPath/reportNav.do?action=Load',1,350,300)
or, not sure if they work, if
not on Struts 1.0.2 :(
-Original Message-
From: Tim Sawyer [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 8:24 AM
To: [EMAIL PROTECTED]
Cc: Tim Sawyer
Subject: max length on html:textarea
Can I set a maximum length of text in an html:textarea ?
Tim.
--
To unsubscribe,
not on Struts 1.0.2 :(
-Original Message-
From: Tim Sawyer [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 8:24 AM
To: [EMAIL PROTECTED]
Cc: Tim Sawyer
Subject: max length on html:textarea
Can I set a maximum length of text in an html:textarea ?
Tim.
--
To unsubscribe,
request.getHeader(referer);returns the URL of the caller page.
or you can set different property names previous and summary on your html:submit
button
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 1:54 PM
To: 'Struts Users
paging.
http://jsptags.com/tags/navigation/pager/
-Original Message-
From: stsrut strut [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 4:58 PM
To: Struts Users Mailing List
Subject: Multiple search on single page - approach
Hello All,
I have single page ( JSP) which has
set the property
on JSP file:
html:submit property=edit value=Edit/
on action class:
if (request.getParameter(edit) != null ) { // means edit was pressed
}
-Original Message-
From: Carlos Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 2:27 PM
To: Struts
write a JavaScript function on your parent window
!--
function fromPopup(par1, par2, ...) {
document.forms[0].field1.value = par1;
document.forms[0].field2.value = par2;
...
}
--
from the popup, when exiting, call the parent window
whenever I want to pass multiple parameters I use anchor
a href='index.do?value=bean:write name=bean property=p/value1=bean:write
name=bean property=p1/value2=bean:write name=bean property=p2/'
bean:write name=bean property=label/
/a
-Original Message-
From: siraj
http://www.mattkruse.com/javascript/calendarpopup/documentation.html
-Original Message-
From: Uma Munugala [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 1:20 PM
To: '[EMAIL PROTECTED]'
Subject: Calendar in XML/java script
Hi All
I want a help.
Iam using Apache, tomcat
The javadocs has a brief explanation of the properties defined on struts-config.xml
See Class ActionMapping at:
http://jakarta.apache.org/struts/doc-1.0.2/api/index.html
For me, the only not too intuitive tag is name.
But since it is a reference to the form name declared on the form-bean
be - right ? ;)
Muki
-Original Message-
From: Leonardo Maciel [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 2:33 PM
To: Struts Users Mailing List
Subject: RE: stuts-config.xml file
The javadocs has a brief explanation of the properties defined on
struts-config.xml
In some programming languages '0' is a character while 0 is a string.
try to use 0 instead.
-Original Message-
From: Graham Lounder [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 9:02 AM
To: [EMAIL PROTECTED]
Subject: logic:match question
Hello all,
I'm not sure what is
Is MyActionForm the name (form-bean) for the action on struts-config.xml
file ?
form-bean name=MyActionFormBean type=path.to.MyActionForm/
action ...
name = MyActionFormBean
-Original Message-
From: Thorsten Maus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 9:10
use html:img tag
-Original Message-
From: Yaman Kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 9:26 AM
To: Struts Users Mailing List
Subject: Applying struts submit and reset button tags functionality to
images
Hi,
Can any one help in applying struts submit /reset buttons
List
Subject: RE: Applying struts submit and reset button tags functionality
to images
I think the html:image tag renders as input type=image .../ which is
what you need.
At least that is what I'm using in Struts 1.0.
robert
-Original Message-
From: Leonardo Maciel [mailto:[EMAIL
I want to refresh the opener window. I don't know the opener window URL, I
use:
window.opener.history.go(0)
Is there a way to auto-resending the info and NOT to show the warning
message?
The page cannot be refreshed without resending the information.
click retry to send the information again,
Message-
From: Leonardo Maciel [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 5:34 PM
To: 'Struts Users Mailing List'
Subject: Auto-resending the information on refreshing
I want to refresh the opener window. I don't know the opener window URL, I
use:
window.opener.history.go(0
logic:notPresent ...
/logic:notPresent
if not Present it is null
-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:25 PM
To: Struts Users Mailing List
Subject: Comparing Null using Logic:Equal
Guys,
Thanks for the help on
so use both
logic:present ...
display column
/logic:present
logic:notPresent ...
display some other data
/logic:notPresent
hope I am clear!!
-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:37 PM
To: Struts Users Mailing List
=subscription property=type filter=true/
/td
...
...
...
..
logic:present
but the result is I wont do whatever Taati wants!;)
It is just the same..
May I know where I am goofing up!
Regards,
Taati
-Original Message-
From: Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1
: Leonardo Maciel [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Comparing Null using Logic:Equal
so use both
logic:present ...
display column
/logic:present
logic:notPresent ...
display some other data
sure
forward name=nextAction path=/path/nextPage.do
-Original Message-
From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 7:58 PM
To: Struts Users Mailing List
Subject: calling an action as a forwards
Have someone used an action calling other other
are you including all struts taglib in your JSP page?
i.e.
% taglib uri=/WEB-INF/struts-html.tld prefix=html %
-Original Message-
From: siraj [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 04, 2000 12:32 AM
To: Struts Users Mailing List
Subject: Re: Re:html input elements don't work
for one single parameter use
html:link page=/process.do paramId=foo paramName=foobean:write
name=foo//html:link
-Original Message-
From: Shane Bouslough [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 4:15 PM
To: [EMAIL PROTECTED]
Subject: Embed bean:write inside html:link?
Hi
For your number 2. Inside the iterator you can have something like this
html:select property=result
logic:iterate id=cType name=cList
logic:equal name=cType value=USA
option selected style=background-color:#FFAA00; font-style:italic;
color:blue value=bean:write name=cType/
: html:select help!
Does this actually work (at least in IE)?
-Original Message-
From: Leonardo Maciel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 11:58 AM
For your number 2. Inside the iterator you can have something like this
html:select property=result
logic:iterate
Where is the question?
To cool you guys, Baskin-Robbins is holding their annual Free Scoop Night
from 6 p.m. to 10 p.m. TODAY, May 1, 2002.
8*)
-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 2:36 PM
To: Struts Users
insert line html:option value /html:option
like this:
html:select property=stateCode
html:option value /html:option
html:options collection=states_codes property=name
labelProperty=value/
/html:select
Actually html:option value / should do
-Original Message-
From:
Have you look at the file struts-config.xml?
The link is defined there
Thx
Leo
-Original Message-
From: Ketan Malekar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 9:21 AM
To: [EMAIL PROTECTED]
Subject: Help this newbie..
hi All,
I want to use struts framework in my
I use two variables on the form with respective get/set methods,
Timestamp timestampDate;
String stringDate;
The user enter the date on the String field.
On validate() method on the form I convert from String to Timestamp.
If there is an exception the user gets invalid date format message,
We use option 1.
Our UserAction extends Action and checks for session value user_id.
If a particular action needs to verify if the user had logged in
(meaning the login action had setup user_id), that action should extend
UserAction.
I don't see redundancy of code here, do you?
Leo
or from Jakarta
http://jakarta.apache.org/taglibs/doc/page-doc/intro.html
-Original Message-
From: Mark Nichols [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: Re: Pagination
This is a little different than you describe but it may
have you try ti use indexId?
logic:iterate id=results name=nameSearchResults scope=session
indexId=inx type=dhs.vcm.vis.form.NameSearchResultsForm
indexId = The name of a page scope JSP bean that will contain the current
index of the collection on each iteration.
I don't have a sample code,
Since indexId defines the name on the JSP bean you can use it as any
other bean.
!-- defining it --
logic:iterate id=results name=nameSearchResults scope=session
indexId=inx type=dhs.vcm.vis.form.NameSearchResultsForm
!-- write index number --
bean:write name=inx/
!-- use it on html:link - NOT
what I have done is forwarding to a jsp page that opens a new window and self-close.
It uses javaScript though.
//struts-config.xml
!-- Process a user logon --
action path=/logon_client
also
/logic:notEqual/
shouldn't it be
/logic:notEqual
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 10:38 AM
To: Struts Users Mailing List
Subject: RE: logic equals problem
This may be a stupid question, but
Great! Welcome to the list.
Don't be scare. Today's Friday. BEER'S day. Let's have some.
I am sure Mark agrees with that.
Anyway don't forget to browse The Jakarta
http://jakarta.apache.org/struts/index.html
I particular like the Javadocs
That is TV generation. They don't like to read it they want to see it.
There is nothing to do with where you from.
RTFM please!
-Original Message-
From: Barry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 11:02 AM
To: Struts Users Mailing List
Subject: Re: NEWBIE HELP
If you want just one line use html:text instead. It won't wrap.
I don't see a wrap attribute for textarea on Struts 1.0
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 1:30 PM
To: [EMAIL PROTECTED]
Subject: No WRAP attribute in
Maybe because they are just samples.
-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 6:21 PM
To: [EMAIL PROTECTED]
Subject: Inside WEB-INF or ourside WEB-INF? Struts security.
Most sample apps have the jsp pages and images
use a flag variable in the form
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 10:09 AM
To: Struts Group (E-mail)
Subject: Passing parameters
Hi,
I am going to a jsp(A) from two different jsps(B,C). Now, when I click
'save' on A
I want
I don't use form here.
action path=/jobopp/sortOpportunity
type=SortJobOppAction
scope=request
forward name=success path=/jobopp/listSetup.do /
/action
-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 3:09 PM
To: [EMAIL
-Original Message-
From: Leonardo Maciel [mailto:[EMAIL PROTECTED]]
I don't use form here.
action path=/jobopp/sortOpportunity
type=SortJobOppAction
scope=request
forward name=success path=/jobopp/listSetup.do /
/action
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED
Try logic:present
logic:present name=payrollChangeForm property=voluntaryReason/
TRTDVoluntary Reason:/TDTDbean:write name=payrollChangeForm
property=voluntaryReason//TD/TR
/logic:present
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11,
With validate=true the controler validates the form (calls form.validate)
before instanciate the action.
The value is speed.
Make sure to set input on action
input - Context-relative path of the input form to which control should be
returned if a validation error is encountered
-Original
This is how I would do:
html:form action=/whatever.do
table ...
tr
td ID=smallhtml:submit property=add value=Add /td
td ID=smallhtml:submit property=update value=Update /td
td ID=smallhtml:submit onclick=return confirm('Confirm
Delete?'); property=delete
you forgot the .do
html:link page=/myAction.do
-Original Message-
From: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 12:43 PM
To: [EMAIL PROTECTED]
Subject: html:link to Action
Hi,
How can i bind a html:link to an Action
derived class ?
html:link
As far as I know you have to sort the arraylist on the action class before
forward to JSP page.
logic:iterate is the View. You have to sort on the Model.
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 3:42 PM
To: Struts Group (E-mail)
Your html:form is trying to use a field action that is not part of your
form declared on struts-config.xml.
-Original Message-
From: Murali SN Rao [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 8:41 AM
To: [EMAIL PROTECTED]
Subject: javax.servlet.jsp.JspException: No getter
is equal to path in action + .do
have fun,
Leonardo Maciel
-Original Message-
From: Ryan Norman [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 12:40 PM
To: Struts User Mailing List
Subject: struts-config.xml Explanation Needed - Ryan Norman
Hi,
I am Ryan Norman.
I started
I thought that by going through the login.jsp (which invokes my
actionservlet)
Do you mean going through the login.do ?
-Original Message-
From: Jose Casas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:40 PM
To: 'Struts Users Mailing List'
Subject: error
Hello, It's
Jose,
What we are trying to say is, in order to be able to see struts bean on your
jsp page you need to make the request through Struts.
you should call .do on your browser - http://localhost:8080/login.do
The controler (actionservlet) will look into your struts-config and get the
action
it works fine for me
...
html:form action=/pub_logon
...
html:image property=camp src=/images/butn_go_white_bg.gif
alt=campaign /
...
-Original Message-
From: Park, Dongwon [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 5:06 PM
To: Struts Users Mailing List
Subject: [Q] Using
html:img page="/image/ok.gif" name="save" /
-Original Message-
From: Laker,Nan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 6:44 AM
To: Struts Users Mailing List
Subject: How to use one image as submit button?
Hi all,
i want to use one image as submit button.
in jsp
DAO = Data Access Object
http://java.sun.com/blueprints/patterns/j2ee_patterns/data_access_object/
Leo
-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 5:26 PM
To: 'Struts Users Mailing List'
Subject: RE: What the best approach to access RDB
Kelly,
The difference between html:submit and input is:
Struts html:submit automatically populates the form for you
while
input you have to explicitly populate it
Your JavaScript must be something like this:
function exeBtnSai(form)
{
form.action=beans.TstJspCtaAction.do;
for (var
73 matches
Mail list logo