Have a link call an Action? Try to use the html:link / tag like this:
strutshtml:link href=Action.do paramId=custPIC
paramName=dataItem
paramProperty=custPICBstrutsbean:write name=dataItem
property=custPIC //B
/strutshtml:link
Brian
Brian Holzer
IT Analyst
Saskatchewan Government Insurance
email: [EMAIL PROTECTED]
phone: (306) 751-1629
fax: (306) 569-7683
Hi Puneet,
Here are a couple of URLs that may help you out.
http://www.mycgiserver.com/~eboudrant/?nostat=true#uml11
http://www.mycgiserver.com/~eboudrant/?nostat=true#uml11
Brian
Puneet Agarwal 02/26/03 05:41am
Hi Amit,
Since no-one has replied to this question, shall we understand
Sorry about that, I meant to add this URL
http://rollerjm.free.fr/pro/Struts.html
Brian
Brian Holzer 02/26/03 09:41am
Hi Puneet,
Here are a couple of URLs that may help you out.
http://www.mycgiserver.com/~eboudrant/?nostat=true#uml11
http://www.mycgiserver.com/~eboudrant/?nostat
I just do this
phtml:link href=petrol.doPetrol/html:link/p
this works for me.
Brian
Brian Holzer
IT Analyst
Saskatchewan Government Insurance
email: [EMAIL PROTECTED]
phone: (306) 751-1629
fax: (306) 569-7683
Bert
Hi Wendy,
Have you tried
html:radio name=resView property=key value=Your scriplet from
before/
You need to specify name=resView because this is the handle to each
object during the iterate.
Brian
Wendy Smoak 10/10/02 09:00am
John wrote:
I think the body of the tag is the value, so
Hi Jeff,
Is that because your Action is populating the form before forwarding
to the page? And if not, what exactly is your Action doing?
Brian
Lowe, Jeff [EMAIL PROTECTED] 10/03/02 07:22am
Hi Jason,
Thanks for the reply. You've got it right in what I'm doing. However I
think I
Hi all,
Excuse me for posting this again, but I posted it on Friday and the whole [VOTE]
thing was dominating the list, and I receieved no responses.
I am using Silverstream version 3.7.3 and in searching the mail archive to try to
solve this problem I have only seen reference to Tomcat
** High Priority **
Hi all,
I tried to find the fix for this in the mail archive but was unsuccessful. I
downloaded the nightly build from 20020829 and deployed the struts-example.war
successfully. However when I try to access the app I am getting the following
exception.
Do you feel this list should discontinue it's long heritage of relaxed
fridays?
( X ) Yes
( ) No
Actually Fridays I don't care about but like Craig says the rest of the week should be
struts stuff.
Hi Pam,
I believe that if you set the scope of your form to session, rather than request
and set redirect=true for the definition of your local forward in the
struts-config.xml file. I think that your changes should remain in tact when you get
to the next Action ( this assumes, of course
Hi all,
I am hoping that this is an easy question. I have ActionA, jspA and ActionB. In
ActionA I add a cookie to the response passed into the perform() method.
Cookie cookie1 = new Cookie( SGI, autodev01 );
response.addCookie( cookie1 );
Then I exit ActionA with the following
Hello all,
I have been quite interested in the discussions that have gone in this list that
deal with data persistence since I am trying to design a persistence/concurrency layer
for our projects. However I get quite confused by the different terms that are used
in different threads, let
Hey Mike,
I think that you should look into the nested tags. I implemented a similar case
with the following in my JSP but I found all I needed in the tutorials at
http://www.keyboardmonkey.com/struts/index.html
nested:iterate property=possibleProfiles
I'm not sure what exactly you are trying to do, but you can put that extra data into
your form, and then define the fields in your JSP as this strutshtml:text
property=property_name size=20 readonly=true /.
Brian
Chappell, Simon P [EMAIL PROTECTED] 04/10/02 07:40am
I have no problem with
If you want to forward to an action, then specify the action ( input=/actionname.do)
instead of a jsp.
[EMAIL PROTECTED] 01/31/02 01:27am
Hi
I want to use the validate functionality in a Form. What I want to know is if an non
empty ActionErrors object is
returned does it always get
This is only a debugging type suggestion, but you could put your interate inside of a
logic:present name=user property=schedule
SCHEDULE WAS FOUND
your iterate
/logic:present tag and make sure that the collection is being
found.
Brian
Hi there,
I have not yet had to develop an application that had to deal with threading
issues before. From reading the documentation I see that all users, are using the
same instance of the Action class.
Can anyone give me some basic pointers on things to do or avoid in order to avoid
Hey Andrew,
I think that I might have figured this one out. I am not postive but lets give
this a try. In your page you have the following code snippet
pageContext.setAttribute(poassets, assets, PageContext.PAGE_SCOPE);
%
table
logic:iterate id=poassets scope=page name=myassets type
Hi there,
I just went through this exact same issue. What I ended up doing, is in the
struts-config file I changed the validation to false and then called the
ActionForm.validate() method from my Action class. If the ActionErrors returned from
that method is not empty, then I had to get
If you are doing an initial display, are you not loading the form values from within
an Action? If so, request parameters are easily accessed as the request is one of the
parameters to your perform() method by using the request.getParameter( paramName );
Brian
[EMAIL PROTECTED] 01/24/02
Hey there,
I am kind of confused about what the difference is between a forward and a
redirect. In reading the documentation on the logic:forward and redirect tags. With
the forward tag, whether a forward or redirect is sent, is determined by the redirect
param in the action definition.
)
Tech Question? (mailto:[EMAIL PROTECTED])
-Original Message-
From: Brian Holzer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 12:40 PM
To: [EMAIL PROTECTED]
Subject: RE: ActionForm and request parameters
If you are doing an initial display, are you not loading the form
From the download page, there is a link for downloading the source and a link for
downloading the executables. Go back to the download page and check that you have
downloaded the right stuff.
Brian
[EMAIL PROTECTED] 01/22/02 08:02am
I have downloaded the source code of Struts ,but I donot
where exactly the source files are put if at all
the
ones that I am looking for.
I will be very much thankful if this issue gets resolved.
Thank you so much for the patience
Best regards
Amit K
- Original Message -
From: Brian Holzer [EMAIL PROTECTED
Hi there,
I was having the same problems until I started using the 1.0.1 release.
Brian
[EMAIL PROTECTED] 01/22/02 01:22pm
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
The mailing list archive is at http://www.mail-archive.com/ then enter struts as
your search parameter. I haven't played with templates yet so I can't help with the
second question.
Brian
[EMAIL PROTECTED] 12/11/01 08:15am
I think my original questions were lost due to other asking
Hi there,
Assuming that the results from your request.setAttribute() method in your action,
is the ArrayList returned from your getReservationInfo () method, then you should be
able to iterate without using the bean:define tag.
Try this for your iterate
logic:iterate name=InfoBean
It looks to me like your bean:define and html:options tags are coded properly.
You might want to check that your ArrayList is not empty which would probably cause
the NPE.
I haven't used the scope and toscope parameters yet, but the documentation says that
the toscope param is used when
Wouldn't you want to have your value clause look like this
value=%=testVar% rather than value=%=i%
[EMAIL PROTECTED] 11/19/01 06:22am
I am trying to compare a bean property with a variable or another bean
property using the logic:equal tag but its not working.
e.g. 1
% int testVar = 2 %
there. Often when I use a iterate I have
to specify a lot more parameters. I will have to try it out with out them
and see how it goes.
Glad your up and going, let me know if you have any other problems
or design questions.
Jeff Krueger
-Original Message-
From: Brian Holzer
You need to get into the 3.7 versions, and the more recent the better.
[EMAIL PROTECTED] 10/24/01 06:08am
NO
-- Original Message --
From: Tim [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Wed, 24 Oct 2001 13:41:13 +0800
Hi, I'd like to inquire
To those answering this Silverstream question:
I am using 3.7.2
Has anyone else had any problems with the server creating a new session for each JSP
you go to rather than maintaining one session? I am trying to save some objects in
the session for use throughout my app, but a new session is
Try something like this
strutshtml:submit property=userAction
strutsbean:message key=button.delete/
/strutshtml:submit
Brian
[EMAIL PROTECTED] 10/24/01 09:26am
How is it possible to use a String defined in
ApplicationResources.properties for the value of a submit
Hi Nicolas,
I think I get what you are trying to do here. How about just a link to get you
there rather than a button. Here is the code from my jsp which iterates through a
collection of users and sets up a link for each which goes to the same Action, but the
key is passed as a request
John,
I am doing the same thing and this is how I am coding it.
strutslogic:iterate name=UserCollection id=user
tr class=body
td nbsp; nbsp; nbsp;
strutshtml:link href=edituser.do
paramId=APP_USER_ID
paramName=user
paramProperty=APP_USER_ID
36 matches
Mail list logo