From the main page of Struts (the one you clicked past to subscribe to this
list)
http://jakarta.apache.org/struts/learning.html
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
- Original Message -
First, your class name should begin with a capital letter by convention. The
error is saying that no constructor an be found that matches myABC
(..). So, be sure there is such a constructor.
- Original Message -
From: lixin chu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday,
yes, I changed to :
public class MYABC {
public void MYABC () {
}
other methods
}
still the same thing..
--- e-denton Java Programmer
[EMAIL PROTECTED] wrote:
First, your class name should begin with a capital
letter by convention. The
error is saying that no constructor an be
contextRelative is used to define a forward that is relative to the application
context and not to the module context
(default).
You cannot redirect to an URL outside your app using struts-config forward. Use a
requestDispatcher in your action and
call sendRedirect(), or create a new JSP with
]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Newbie questionredirect
Date: Wed, 5 Nov 2003 14:22:47 +0100
contextRelative is used to define a forward that is relative to the
application context and not to the module context
: Wednesday, November 05, 2003 4:06 PM
Subject: Re: Newbie questionredirect
Nicolas,
I think your reply will help me with my post too - trying to switch web
modules - help
but I don't see a sendRedirect() method of the requestDispatcher object.
How can I call this sendRedirect() - sounds like
Hi,
Though I am also a newbie, when I faced a similar
problem, I used bean:define id=myId I am not
very sure whether it will work for you. I tried a few
other options before finally getting the result, as
none answered my question on struts user list...
I only can hope it helps...not sure
The logic:iterate tag does not have to live within a form. Chances are your
error is because the Collection you are trying to iterate over is not in the
request (or whatever session you happen to be using).
What we normally do for a situation like this is to create a JSP with the
search form, and
thankyou for your reply.
I did put results bean into request. The problem is:
it
even does not display search form now if I put results
display block after /html:form since user has not
pressed get button. Here is my display code:
table
logic:iterate id=... name =... property
..
Hi Victor,
If you have both html:hidden property=method/ and buttons in the same
form, both method are submitted when you pressed either button. You could
change the value with javascript code before submitting the form. Something
like this might work :
html:hidden property=method value=save/
Hi, Jerome:
Thanks for helping.
I tried out your code. Strangely, if I click on either
save button, or delete button, now they both forward
to
save page. It seems action still forwards to save
method
even I clicks on delete button.
Any idea?
regards,
--- Jerome Devost [EMAIL PROTECTED]
it will confuse Internet Explorer.
-Original Message-
From: victor gusz [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 14:04
To: Struts Users Mailing List
Subject: RE: newbie question: how to handle two dispatchAction methods in a
jsp page?
Hi, Jerome:
Thanks for helping.
I tried out
Now I want to call sicpage1.jsp directly without first calling
sicpage0.jsp.
But sicpage1.jsp is not getting populated with data since the action
class is not getting called.
create a global forward to the action, and call the forward.
--
Bryce Fischer [EMAIL PROTECTED]
Check logic:notEmpty tag
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Todor
Sergueev Petkov
Sent: Saturday, August 09, 2003 12:32 PM
To: Struts Users Mailing List
Subject: Newbie question: Testing if collection is != null before
iterating
How
You might want to use session to store all the values entered in page=1.
Then when there is an error in page=2 or page=3, and forward the control
back to page=1. Since all the values are session scope, you can access them
in your page=1. Remember you have to clean the session though:).
http://jakarta.apache.org/struts/userGuide/struts-html.html#submit
input type=submit name=Save value =Save
in struts becomes:
html:submit property=Save value=Save /
http://jakarta.apache.org/struts/userGuide/struts-html.html#button
input type=button name=Cancel value
Hi
I couldn't spot anything wrong below, did you get any runtime exceptions?
If so, show a snippet.
--Alen
Hello,
This question probably might have been asked many a times. But I searched
the archive (though not fully) but could not find this. So, if anybody has a
solution please do let
Hi,
There are no exceptions at all! Once the
FormBean is executed the control is not passed on to the Servlet!
Regards,
Samanth Athrey
Alen Ribic [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi
I couldn't spot anything wrong below, did you get any runtime exceptions?
If so, show
-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]
Sent: 25 July 2003 10:48
To: 'Struts Users Mailing List'
Subject: newbie question: how to get context path?
Sorry for the newbie question... my brain not responding...
Using mapping.findForward(xxx).getPath(), I am able to
Oooops... thanks!
Regards,
Daniel
-Original Message-
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 July, 2003 5:54 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: newbie question: how to get context path?
-Original Message-
From: Daniel
You'll need to do a couple of things:
1) (Assuming you're using Struts, of course.) Create your Java
array/collection/whatever in the Action that gets hit before your JSP page:
List myList = new ArrayList();
// populate the list, la la la
James:
Thanks for your nice presentation. I will try it out
right away.
regards,
rick
--- James Childers [EMAIL PROTECTED] wrote:
You'll need to do a couple of things:
1) (Assuming you're using Struts, of course.) Create
your Java array/collection/whatever in the Action
that gets hit
More questions about the following:
1) It says in logic tags reference:
id: The name of a page scope JSP bean that will
contain the current element of the collection on each
iteration, if it is not null.
So, it means myList ArrayList should conform
to JavaBean routines, is that right? For
Hi,
I did the following, but the results were not
displayed.
Whats wrong with my code?
products is a collection of ArrayLists, every
arrayList contains
a list of ProductBeans, ProductBean has productName
and productId properties.
products are retrieved in action class and are put
into session
Man, this is really sick ;-). If I'm understanding you, maybe this will work (or
maybe not...):
var products = new Array();
logic:iterate id=productBeans name=products indexId=i
var productBeansbean:write name=i/ = new Array();
logic:iterate id=productBean name=productBeans indexId=j
Hahahahaha.Kris, yes this is sickening. More so
after trying all possible solutions. This ruined my
Friday :((.
regards,
Rick
--- Kris Schneider [EMAIL PROTECTED] wrote:
Man, this is really sick ;-). If I'm understanding
you, maybe this will work (or
maybe not...):
var products =
So it's still not working? Can you post some of the generated
JavaScript? I was shooting for something like this:
var products = new Array();
var productBeans0 = new Array();
productBeans0[0] = [name0, id0];
productBeans0[1] = [name1, id1];
...
products[0] = productBeans0;
var productBeans1 =
session scope
or hidden fields on each page.
sandeep
--- Norr, Peter [EMAIL PROTECTED] wrote:
I am developing a wizard style form..
How do I obtain the value submitted in the previous
page of a form from the
jsp page?
For example, in step2.jsp I need to know what was
selected in
one way is to have both pages share a formbean, the first page populates the
formBean with what was entered so the second page can access it.
-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 2:35 PM
To: 'Struts Users Mailing List'
Subject:
Yes I understand.
But how do I acces the Form Bean from the jsp page?
Peter
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 2:40 PM
To: Struts Users Mailing List
Subject: RE: Newbie question about form variables.
one way is to have
PROTECTED]
Subject: RE: Newbie question about form variables.
Date: Thu, 17 Jul 2003 15:02:11 -0400
Yes I understand.
But how do I acces the Form Bean from the jsp page?
Peter
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 2:40 PM
Does Struts 1.1 come with JSTL implementation?
If so How do I use it?
Peter
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 3:05 PM
To: [EMAIL PROTECTED]
Subject: RE: Newbie question about form variables.
scriptlets (bad choice)
custom
: Newbie question about form variables.
Yes I understand.
But how do I acces the Form Bean from the jsp page?
Peter
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 2:40 PM
To: Struts Users Mailing List
Subject: RE: Newbie question about
PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Newbie question about form variables.
Date: Thu, 17 Jul 2003 15:12:33 -0400
Does Struts 1.1 come with JSTL implementation?
If so How do I use it?
Peter
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent
Yes! But I am using DynaActionForm.
I would also like to query the value submitted from step1.jsp..
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 3:14 PM
To: Struts Users Mailing List
Subject: RE: Newbie question about form
It doesn't matter, a DynaActionForm has a name just like other action forms.
-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 3:18 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie question about form variables.
Yes! But I am using
Mailing List
Subject: RE: Newbie question about form variables.
It doesn't matter, a DynaActionForm has a name just like other action forms.
-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 3:18 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie
:20 PM
To: Struts Users Mailing List
Subject: RE: Newbie question about form variables.
It doesn't matter, a DynaActionForm has a name just like other action forms.
-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 3:18 PM
To: 'Struts Users
probably you can not see the javascript error, because the form submits in
the function, remove the submit(); in the function and see the error, and
also I recommend you not to use onclick event, try onchange, it's better in
this situation.
F.
- Original Message -
From: Shyam A [EMAIL
My Javascript function is given below:
SCRIPT language=JavaScript
function submitForm(form)
{
form.action.value=Lookup;
form.submit();
return true;
}
#
and I invoke this function in my HTML form as shown below:
Mark,
Thanks a lot for your mails. I have used action as a form bean property and not as a
parameter in struts-config. Unfortunately, the Javascript function doesn't seem to
work...it does not set the value of the ActionForm property, action.
When I tried to print out the value of the action
You will need to create a hidden field named action, with a value of
Lookup:
html:hidden property=action value=Lookup/
My question to you iswhy Lookup? What does that have to do with your
form?
Here's a sample:
SCRIPT language=JavaScript
function submitForm(form) {
James,
Thanks for your mail. I guess I need to elaborate a little bit. My HTML form can be
submitted in 2ways.
1. Clicking the Submit button.
2. Clicking the drop-down
Clicking the drop-down triggers a different action than clicking the Submit button.
Selecting a value in the drop-down would
check out dispatch actions..
you can have multiple execute methods with dispatch action ...
Your Action class extends DispatchAction instead of action (check the
docs)
public final ActionForward submit(
ActionMapping mapping,
I think I see where you are goingtry setting the form action instead:
SCRIPT language=JavaScript
function submitForm(form) {
document.frm.action=lookup.do; // --Change this to not be hard-coded
form.submit();
return true;
}
/SCRIPT
form name=frm action=? method=GET
input type=hidden
Its better that this is posted to the list as well, after all its a
good question and hopefully an adequate answer.
script language=javascript type=text/javascript
!--
function lookup(form) {
form.elements['action'].value = lookup;
form.submit();
}
//--
/script
html:form
opps my action in struts config is wrong... But you should still have
the right idea..
On Saturday, July 12, 2003, at 12:45 AM, Mark Lowe wrote:
Its better that this is posted to the list as well, after all its a
good question and hopefully an adequate answer.
script language=javascript
Yes, if you go to the Struts pages on Jakarta there is an archive. This
particular topic has been discussed several times over :)
http://nagoya.apache.org/eyebrowse/SummarizeList?listId=42
-Original Message-
From: Tuan T [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:14 AM
Hint: Search for Wizard
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:20 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Newbie Question: Multiple User Input Screen
Yes, if you go to the Struts pages on Jakarta
Your forward path can be a Tiles Def in the struts-config. You don't want to
ever link directly to a Def (or JSP) so it sounds like you are fine. Need
more detail otherwise.
-Original Message-
From: Davidson, Glenn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:22 PM
To:
Glenn
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question: Tiles and html:link how to make it work.
Your forward path can be a Tiles Def in the struts-config. You don't
on this forum.
-Original Message-
From: Davidson, Glenn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question: Tiles and html:link how to make it work.
Thanks for the quick response!
Lets say I have a menu item
Glenn
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:19 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question: Tiles and html:link how to make it work.
Like I said. Don't link to any JSPs from a JSP. So you need to look
want to go.
In posts from yesterday or the day before I posted exactly how I do it for a
concrete example.
-Original Message-
From: Davidson, Glenn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 4:48 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question: Tiles
Return a forward appropriate to the exception caught?
-Original Message-
From: Leon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 2:45 PM
To: Struts Users Mailing List
Subject: Newbie question: how does MyAction class handle Exceptions?
Hi,
I have DataAccessException thrown by
Message -
From: Mike Jasnowski [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 2:45 PM
Subject: RE: Newbie question: how does MyAction class handle Exceptions?
Return a forward appropriate to the exception caught?
-Original Message-
From
Leon wrote:
I should forward an ApplicationException to MyAction class and then,
MyAction finds an appropriate jsp based on the message in
ApplicationException. But, how can I know the SQLException thrown by
persistance tire is duplicate entery SQLException or other SQLException?
Put an
otherwise
/
/global-exceptions
I like keeping the try catches out of my Action class.
-Original Message-
From: Leon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:33 PM
To: Struts Users Mailing List
Subject: Re: Newbie question: how does MyAction class handle
Tiles are what you use to put JSP together instead of using include tags. The files
you have are still JSP pages, and yes, you can use JS in them just fine. Once the page
is at the users browser, it is still 1 web page. That is when the JS actually gets
used anyways.
As far as XSLT, I can't
Vangeli,
ta Struts framework den einai tpt allo apo thn efarmogh toy MVC design
pattern. Ta Struts soy prosferoyn enan dynato Controller kai aforoyn th
domi ths efarmoghs. Sto view enapokeitai se esena ti tha
xrhsimopoihseis. Sto .jsp alloste mporeis na exeis JavaScript. XSLT
logika tha
You took the words right out of my mouth!
-Original Message-
From: Karapiperis Dimitris [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 6:56 AM
To: Struts Users Mailing List
Subject: RE: NewBie Question
Vangeli,
ta Struts framework den einai tpt allo apo thn efarmogh toy MVC
do a post instead of a get
--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.
-Original Message-
From: James [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 9:23 AM
To: [EMAIL PROTECTED]
Subject: Newbie question
How can i mask the url in the browser so the
id first pass it to a the action needed then do a redirect to another action
that would get rid of the url for you maybe
On Tuesday 11 March 2003 3:22 pm, James wrote:
How can i mask the url in the browser so the user does not see the request
parameters..?
ie /localhost/myapp/find?id=3 - is
I am doing a post...
but the url still shows localhost/myapp/find.do?id=3
Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED] wrote in
message
news:[EMAIL PROTECTED]
do a post instead of a get
--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.
-Original Message-
From:
Use HTTP POST instead of GET.
Mark
-Original Message-
From: James [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: Newbie question
How can i mask the url in the browser so the user does not see the request
parameters..?
ie
Do you intentionally append id=3 to the url?
-Original Message-
From: Jamesey [mailto:[EMAIL PROTECTED]
Sent: March 11, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: Newbie question
I am doing a post...
but the url still shows localhost/myapp/find.do?id=3
Jarnot Voytek Contr AU HQ
11, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: Newbie question
I am doing a post...
but the url still shows localhost/myapp/find.do?id=3
Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED] wrote in
message
news:[EMAIL PROTECTED]
do a post instead of a get
--
Voytek Jarnot
What is the method for form? It should be POST, not GET.
Dejan
- Original Message -
From: Jamesey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 4:34 PM
Subject: Re: Newbie question
nope.. its just the property's of my Dynabean..
when i sumbit and the form posts
11, 2003 4:34 PM
Subject: Re: Newbie question
nope.. its just the property's of my Dynabean..
when i sumbit and the form posts that what i get..
apachep2 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Do you intentionally append id=3 to the url?
-Original
is the method for form? It should be POST, not GET.
Dejan
- Original Message -
From: Jamesey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 4:34 PM
Subject: Re: Newbie question
nope.. its just the property's of my Dynabean..
when i sumbit and the form posts
Then you are probably doing redirection somwere in your action class...
I am just guessing!
Dejan
- Original Message -
From: Jamesey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 5:03 PM
Subject: Re: Newbie question
in fact the html:form action='blah blah
the correct way is to define the error in ur properties file.
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError(my.error));
Message in Application.resources
my.error=my error here
-Tim
-Original Message-
From: James Prance [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003
: Newbie Question about tiles definitions. I am lost :(
If you have *.do mapped to the action servlet, then you will need to request
(relative to the webapp of course) /home.do or /products.do. You'll
need to switch the action mapping like so:
action path=/home forward=tiles.home
Or else configure
'/
load-on-startup2/load-on-startup
/servlet
servlet-mapping servlet-name='action' url-pattern='/*.do'/
-Original Message-
From: Jarrod M. Lugo [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 9:06 AM
To: Struts Users Mailing List
Subject: RE: Newbie Question about
If you have *.do mapped to the action servlet, then you will need to request
(relative to the webapp of course) /home.do or /products.do. You'll
need to switch the action mapping like so:
action path=/home forward=tiles.home
Or else configure the mapping such that an action that automatically
Wouldn't that be...
!A || B
- Original Message -
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 01:29
Subject: Re: Newbie Question
2003. február 11. 09:07 dátummal Ray Madigan ezt írtad:
Thanks for the advice - i
11:50 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question
This is illegal (you can't embed tags as attributes):
logic:equal name=component property=name scope=page
value=bean:write name=navigateForm
property=component/
If you must use logic such as this, do yourself
2003. február 11. 09:07 dátummal Ray Madigan ezt írtad:
Thanks for the advice - i didn't know this stuff existed.
I was just pondering how to implement logic like
if ! A || ( A B )
A !B
Tib
-
To unsubscribe, e-mail:
Craig R. McClanahan wrote:
On Mon, 10 Feb 2003, Peder Jakobsen wrote:
Has anyone had to abandon struts because it was not performant? Does
anyone out there serve A LOT of requests? (We run 12 load balanced quad
Xeons and we can barely keep up! We have about 1 million users on our
Your code doesn't show any html:form tag. This tag is used by struts to
set the targeted action, and so the associated bean in some scope.
You can use html:text without html:form by setting it's name attribute
(name=user in your case). But if your HTML form has to be commited to a
Struts action,
From: Peder Jakobsen [EMAIL PROTECTED]
I'm new to Struts, and so far I'm very happy with what I see. But I have
some suspicion that it'll be dead slow.
What leads you to this suspicion? There's no way to respond to such a
FUD-sounding :-) comment without specifics.
Craig: While this is
. ~Hanlon's Razor
-Original Message-
From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Davor Cengija
Sent: Monday, February 10, 2003 2:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Newbie Question on Performance
Craig R. McClanahan wrote:
On Mon, 10 Feb 2003, Peder Jakobsen wrote:
Has
Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 7:31 AM
To: Struts Users Mailing List
Subject: Re: newbie question - usebean
Your code doesn't show any html:form tag. This tag is used by struts to
set the targeted action, and so the associated bean
I do have html:form action=action/editUser in the code I just did not
included in the email.
I also have the following in my jsp:
jsp:useBean id=user scope=request
class=com.basf.plasticsportal.data.User
jsp:setProperty name=user property=* /
/jsp:useBean
thanks,
Diego.
You don't
AM
To: Struts Users Mailing List
Subject: Re: newbie question - usebean
I do have html:form action=action/editUser in the code I just did not
included in the email.
I also have the following in my jsp:
jsp:useBean id=user scope=request
class=com.basf.plasticsportal.data.User
jsp:setProperty
AM
To: Struts Users Mailing List
Subject: Re: newbie question - usebean
I do have html:form action=action/editUser in the code I just did not
included in the email.
I also have the following in my jsp:
jsp:useBean id=user scope=request
class=com.basf.plasticsportal.data.User
jsp:setProperty
You can iterate over any Collection (or javaBean that as a property that is
a Collection) stored in some scope (request / session / application).
For example I used to put List in application scope for allowed values of
select inputs.
Nico.
If i want to use logic:iterate (or something
Why don't you want to place the table in a form? That's the easiest way you
are going to get/set its values.
Mark Galbreath
Principal Consultant
Workflow Process Engineering and Systems Integration
http://www.QAT.com
410-703-367 / 800-799-8545
Never attribute to malice that which can be
Message---
From: Mark Galbreath [EMAIL PROTECTED]
Sent: 02/10/03 11:23 AM
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: newbie question: what to use for non-form data population?
Why don't you want to place the table in a form? That's the easiest way
you
are going to get/set its
ArrayList components = (ArrayList) service
.gatherAccessory(Bean.getContainer());
session.setAttribute(someKey, components);
-or-
request.setAttribute(someKey, components);
!-- jsp --
logic:iterate id=item name=someKey scope=session //or request scope
Madigan
-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 10:24 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question
ArrayList components = (ArrayList) service
.gatherAccessory(Bean.getContainer
To: Struts Users Mailing List
Subject: RE: Newbie Question
Here is my new code:
ArrayList components = ( ArrayList ) service.gatherAccessory
Bean.getContainer ( ) );
request.setAttribute ( components, components );
the jsp:
logic:iterate id=component name=components scope=request
logic:equal name
and JSTL, the only Struts tags
you should ever use are the html:form tags and possibly bean:message.
-Jacob
| -Original Message-
| From: Ray Madigan [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 11, 2003 1:23 AM
| To: Struts Users Mailing List
| Subject: RE: Newbie Question
Yes, when you define the form in your action set the scope to session.
This will put the form bean into the session scope.
Hope this helps,
Gary
-Original Message-
From: Peder Jakobsen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 09, 2003 10:50 PM
To: [EMAIL PROTECTED]
Subject:
Hi Peder...
I think all you would have to do is set the scope of the ActionForm to
session and you would be good to go. You would just have to be careful
about when and how you reset the form for a new collection.
Later, ajTreece
Peder Jakobsen wrote:
Hi,
When traversing from page to
You don't have to set the ActionForm to session; its in session scope by
default.
Mark
-Original Message-
From: ajTreece [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 12:59 AM
Hi Peder...
I think all you would have to do is set the scope of the ActionForm to
session and
On Mon, 10 Feb 2003, Peder Jakobsen wrote:
Date: Mon, 10 Feb 2003 00:47:13 -0600
From: Peder Jakobsen [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Newbie Question on Performance
Hi,
I'm new to Struts, and so far I'm very happy
I haven't used 1.0.2 since last May and don't remember if there was a big
difference in the ActionForm class. I know that upgrading to 1.1b-1 was a
bitch, though.
As for breaking out of an iteration, take a look at the rest of the logic
tag documentation. I'm sure you will have an aha
Your lazy (smart!) way #1 is correct. Let Struts instantiate your
ActionForms.
-Max
- Original Message -
From: Fred Lamuette [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 4:17 PM
Subject: Newbie question
For editing an article, i
Read Chapter 4, Programming Jakarta Struts by Chuck Cavaness (O'Reilly
2003). It answers most, if not all, your questions.
Mark
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 10:56 AM
Im new to struts. I have been reading
1 - 100 of 242 matches
Mail list logo