Is it possible to use multiple html:submit/ buttons in the same form, and
provide a different action depending on which was hit?
ex:
html:submitDo something/html:submit
html:submitDo Something Else/html:submit
html:submitDo Yet Another Thing/html:submit
I know
This is really a two part question.
I have an iterative loop that displays a list users that are stored in
Action Forms. The idea is that when the button (or link) next to the item
is selected, the user will be allowed to make modifications to the selected
form:
logic:iterate id=user
-Original Message-
From: DHarty [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 11:25 AM
To: [EMAIL PROTECTED]
Subject: html action links
This is really a two part question.
I have an iterative loop that displays a list users that are stored in
Action Forms. The idea is that when
I was following this thread, and I tried to use a relative directory of the
type:
file://./struts-config_1_0.dtd
When I attempted to start tomcat I got the following message:
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'file://.') Resolving to
/p
/logic:iterate
When the page renders, it generates links like this:
a
href=http://localhost/struts-stub/donor/View.do?key=123456;123456/a
where there is a global forward donor with the path /donor/View.do
and row.getDonor() returns 123456
DHarty wrote:
This is really a two part question
I agree.
Add to that the fact that java script functionality is not consistent across
all browsers, and some organizations refuse to allow its use in intranet
applications.
D
-Original Message-
From: bram [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 5:46 AM
To: [EMAIL
I'm using templates, but I would prefer to put relative paths to the
template vs. an absolute path.
For example, a file using templates might look like:
%@ taglib uri=/WEB-INF/struts-template.tld prefix=template %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
), whereas:
template:get name='body'/
renders 'body' relative to the location of the template file
D
-Original Message-
From: DHarty [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 3:39 PM
To: [EMAIL PROTECTED]
Subject: Templates and relative paths
I'm using templates, but I
I would like to know why some tags in the template file (ie img) use a
relative path to the
calling file, while the get tags do not.
For example the line in a template file:
html:img src=../graphics/picture.jpg/
render the path relative to the file that put to the template (ex
I'm trying to get a series of pages to populate a form ala a wizard
interface.
Each page enters a chunck of information which is then forwarded to the next
page in the sequence. The previous information is dispalyed along with an
area to enter the next bit of info.
The Problem is that after
=/admin/project/project_admin.jsp/
/action
Hope this helps...
--John
-Original Message-
From: DHarty [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 12:57 PM
To: [EMAIL PROTECTED]
Subject: beans and scope
I'm trying to get a series of pages to populate a form ala a wizard
My
struts-config file is beginning to get a bit unwieldy.
Is it
possible to callmultiple *-config files from web.xml?
ex:
init-param
param-nameconfig/param-name
param-value/WEB-INF/meaningfulName1-config.xml/param-value
/init-param
init-param
param-nameconfig/param-name
-archive.com/struts-user@jakarta.apache.org/msg10052.html
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
DHarty wrote:
My struts-config file is beginning to get a bit unwieldy.
Is it possible
Where is you template file (WEB-INF)? If it is, rry using relative paths to
put to the template.
ex: the line in project.jsp that puts to the template...
template:put name=body content =../project/project_body.jsp/
where the path is relative to the template NOT to the puting file.
I think you'd have to use an Action class to get the html:cancel /
behavior.
The action class would call isCancelled(request) to find out if the form
was canceled, and then return a forward mapping to the cancel path ex:
return (mapping.findForward(cancel));
If you can use
I have a form that is used in a session scope.
It has a boolean attribute (grant) that is set in an html:form by a
html:select/ item.
I had to put the form in session scope so that it didn't get erased as it
was passed from one step to the other.
The problem is that every time ActionServlet
I was able to successfully use template under WEB-INF, but not as I had
origionally supposed.
Given a template file (template.jsp that might look similar to this:
html
!-- body --
template:get name='body'/ /td
/html
which is located in the
I had
the same problem when trying to use a sequence of pages to complete the same
form.
I
turns out that struts ActionServlet class calls the "reset" method of your form
between requests, thus erasing your form. I even tried to put the form in
a "session" but had the same problem.
I haven't tried to replicate DH's methods on my own stuff yet... but it's
of
interest to note that the files must be specified relative to the template
rather than relative to the initial JSP.
Its also of interest to note that if you call resources directly from the
template file, (ex: img
I know this is getting out of context for for this list, but I've got a
selection box populated with the name property of a bean. I'd like to
display the description property of that bean when the selection changes.
I know you can use javascript commands in the select option, but I am unsure
how
.
It would be ugly, but should work.
HTH,
Pete
DHarty wrote:
I know this is getting out of context for for this list, but I've got a
selection box populated with the name property of a bean. I'd like to
display the description property of that bean when the selection
changes.
I know you
--- DHarty [EMAIL PROTECTED] wrote:
I know this is getting out of context for for this
list, but I've got a
selection box populated with the name property of a
bean. I'd like to
display the description property of that bean when
the selection changes.
I know you can use javascript commands
I did below with
JavaScript, but have the toggle set the value
somewhere on the page for you.
David
--- DHarty [EMAIL PROTECTED] wrote:
David,
Thanks for the advice.
I don't need a message box, just an area on the page
that will display the
description of the currently selected item
Why does the servlet call the reset method of an action form even when it's
been put in the session scope?
It doesn't do much good if my session bean is reset to null after every
request!
D
To: [EMAIL PROTECTED]
Subject: Re: Session Form Reset?
DHarty [EMAIL PROTECTED] wrote:
Why does the servlet call the reset method of an action form even when
it's
been put in the session scope?
It doesn't do much good if my session bean is reset to null after every
request!
D
The reset
Is there a way to dictate which option in a collection is set as
selected when the page is rendered?
ex
html:options collection=Roles property=name /
For example, I have a collection of projects that are rendered by the
html:options tag. I also have some java script which updates a
I was just reviewing the indexed tags funtionality and it looks like a
valuable addittion.
Before I rebuilt struts however, I had a question regarding the funtionality
with ArrayLists and Vectors.
Essentially, I was wondering if you could use these tags on objects like
Vectors and lists given
: Indexed Tags Functionality
PS You obviously also need a setParameterList(ArrayList paramList).
Dave
DHarty [EMAIL PROTECTED] on 07/16/2001 10:26:11
AM
Please respond to [EMAIL PROTECTED]
To: Struts User [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: Indexed Tags
I'm not sure if I understand your question entirely, but I know that
templates have funny and inconsitent ways of dealing with paths.
For example, you cannot use multiple relative path iterators if your
template is runing in the container (../templates/../page/pagehead.jsp.
This happens if you
Is there a way to dictate which option in a collection is initially set
as
selected when the page is rendered?
ex
html:options collection=Roles property=name /
For example, I have a collection of projects that are rendered by the
html:options tag. I also have some java script
Thank you!
-Original Message-
From: Joe Clark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 12:12 PM
To: undisclosed-recipients:
Subject: RE: html:select/options
Use the 'value' attribute to make the selection. For example assume you
have a dropdown of countries
Good question, and what if you want to get the value from a bean?
Is value='@=bean.getsomthing()%' the only way?
-Original Message-
From: Pham Thanh Quan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 9:23 PM
To: [EMAIL PROTECTED]
Subject: Re: html:select/options
() method of the objects
stored in the Roles collection.
HTH
-Original Message-
From: DHarty [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 6:31 AM
To: [EMAIL PROTECTED]
Subject: RE: html:select/options
Good question, and what if you want to get the value from a bean
I have a Bean that I put into session scope called ProjectForm. It stays
in session through the many steps it takes to populate the entire project
form. When all the data is entered I have a projectVerify page wich
displays all the project information using the following code: (i've removed
the
, and whatever is set there is
reflected as the selected item - ie just leave off the value=
altogether (as
Jason's code).
Dave
DHarty [EMAIL PROTECTED] on
07/19/2001 01:33:39 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: RE
I have an appliaction called tmate that is being deployed in the
webapps/tmate directory of tomcat so when I call localhost/tmate I go to
the index of my application.
I also have in my struts confix.xml file some action mappings that begin
with /tmate for example:
action
P.S.
The pages that call the /tmate/projectSelect action load fine (no missing
action mapping are thrown). Its only when the action is actually hit
(submit button) that the action can't be found.
D
-Original Message-
From: DHarty [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23
Hopefully someone will be able to elaborate on this, but I don't believe you
can't use
jsp:useBean id=info scope=application class=myPackages.Info/
interchangablby with struts bean tags.
You should be able to use:
bean:define id=info scope=application name=host /
then, to
Is there a way to reset the request in the action so that it is no longer
cancelled?
for example, I have the following clock in the beginning of my action's
perform method:
if(isCancelled(request))
{
return (mapping.findForward(cancel);
}
the cancel
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: ALERT From InfoWorld: New virus spreads using Acrobat files
INFOWORLD ALERT: SECURITY
40 matches
Mail list logo