We have a Struts application that allows users to create/update orders etc.
How can we disable the BACK button so users cannot use it to go back to
previous 'submitted' screens to re-submit what's been submitted. Likewise,
we don't want the user to go back to an outdated list of search results.
=shopWorkOrder.engineerId
html:options collection=eList property=userId
labelProperty=commonName/ /html:select
Niall
- Original Message -
From: Au-Yeung, Stella H [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 3:31 PM
Subject: Someone out there must have done
Has someone out there successfully set the selected option of a
html:select under Struts 1.0?
What I try to do is to set the option as selected when userId matches
shopWorkOrder.engineerId:
bean:define id=eList name=ShopWorkOrderFormBean
property=engineerList/
html:select
property=engineerList/ html:select name=ShopWorkOrderFormBean
property=shopWorkOrder.engineerId
html:options collection=eList property=userId
labelProperty=commonName/ /html:select
Niall
- Original Message -
From: Au-Yeung, Stella H [EMAIL PROTECTED]
To: [EMAIL PROTECTED
/2004 10:54:28 [DBUG] ShopWorkOrderMaintainAction Found Matching
ID=8***
Did I misunderstand what you suggested?
-Original Message-
From: Paul Stanton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 09, 2004 12:45 AM
To: Au-Yeung, Stella H
Subject: html:select
this is by far
Hi:
I need to set a pre-defined option in html:select using the value=
attribute, I thought the following will work:
bean:define id=uList name=UserFormBean property=userList/
html:select property=person.id value=person.id
html:options collection=uList name=UserFormBean property=userId
property=userId
labelproperty=commonName//html:select
The value attribute is RT-Exp, and not name of a bean.
hth
-jayash
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 3:38 PM
To: '[EMAIL PROTECTED]'
Subject: html:select question
of the bean.
The %= % should contain a java expression.
Use the bean:define to define a JSP variable and use it in %= %
bean:define id=engineerId name=shopWorkOrder property=engineerId /
then use %=engineerId% in the html:select.
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL
property=id
labelProperty=name/ /html:select
this is assuming uList is a list of beans with id/name fields and your
form has a userId field.
Au-Yeung, Stella H wrote:
Hi:
I need to set a pre-defined option in html:select using the
value= attribute, I thought the following will work
I see. I'll try that tomorrow and let you know. Thx.
-Original Message-
From: Paul Stanton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 09, 2004 12:05 AM
To: Struts Users Mailing List
Subject: Re: html:select question
the most simplest solution is often the best
Au-Yeung, Stella H
are trying to set get
parameters.
I have a similar action chaining configuration that works fine for me.
-jayash
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 8:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Action not forwarding
the orderNumber to request scope in /app/DeleteOrder.exe.
request.setAttribute(orderNumber, new
Integer(orderNumber));
And then retrieve it in /app/ListOfOrder.exe.
Integer orderNumber = (Integer) request.getAttribute(orderNumber);
Regards,
Vincent
--- Au-Yeung, Stella H [EMAIL PROTECTED
If I use bean:write to display a bean property comments which happens
to be a long line of text. Is there a way to enforce wrapping with
bean:write so the long comments can be displayed as a paragraph?
Thanks!
-
To
Hi:
I have a similar problem that I can't invoke OrderSearchAction.exe from
OrderMaintainAction. I set a debug breakpoint at the beginning of
OrderSearchAction and never get there.
actionpath=/app/DeleteOrder
type=com.cat.action.OrderMaintainAction
/action class.
hth
-Ramadoss
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:51 PM
To: '[EMAIL PROTECTED]'
Subject: Action not forwarding to another Action
Hi:
I have a similar problem that I can't invoke OrderSearchAction.exe
-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:51 PM
To: '[EMAIL PROTECTED]'
Subject: Action not forwarding to another Action
Hi:
I have a similar problem that I can't invoke OrderSearchAction.exe from
OrderMaintainAction. I set a debug breakpoint at the beginning
Hi:
Can a a href be made to function as a 'submit' and upon submission, all
the formBean properties are remembered in the Action class that handles it.
When I try to use just the a href I can't get the formBean properties to
be remembered. But I can't change my list of a href as submit buttons
();
}
/script
That should do it.
On 2004-Feb-25 10:02, Au-Yeung, Stella H wrote:
Hi:
Can a a href be made to function as a 'submit' and upon submission,
all the formBean properties are remembered in the Action class that
handles it. When I try to use just the a href I can't get the formBean
;
document.myForm.submit();
}
/script
On 2004-Feb-25 11:02, Au-Yeung, Stella H wrote:
But each of my a href is within a html:iterate indexId=index
. tag and it passes the index to the next page base on which item in
the list
the user clicks. How can I do that with what you suggested?
My current
A question on Struts taglib.
Can someone tell me how to reference the index of each element so I can
pass it as a parameter with the a href path string?
For example I have the following code, I want to print out 'partNumber' and
'partDescription' and a a href' with index of each element'.
indexId=index
yourhoststring+%=indexId %
/logic:iterate
-R
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 3:18 PM
To: [EMAIL PROTECTED]
Subject: A question on Struts taglib.
A question on Struts taglib.
Can someone tell me how
/icoEdit.gif/anbsp;/a
/td
/c:forEach
robert
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 6:12 PM
To: 'Struts Users Mailing List'
Subject: RE: A question on Struts taglib.
I changed my code to use indexId and got the following
Hi:
In my struts-based application I am using a html:logic tag in my JSP page
to print two links depends on the value of a struts-based databean's
property. Bacially on this JSP page, a list of records wil be displayed.
Next to each record, either a Create link or an Update link should be
- Original Message -
From: Au-Yeung, Stella H [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 23, 2004 3:34 PM
Subject: html:logic tag doesn't recognize Struts dataBean property's value
Hi:
In my struts-based application I am using a html:logic tag in my JSP
page
to print two
the logic:equal/notEqual is testing
against.
Niall
- Original Message -
From: Au-Yeung, Stella H [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 23, 2004 3:34 PM
Subject: html:logic tag doesn't recognize Struts dataBean property's value
Hi:
In my struts-based application I
is not
equals to not exists..?).
Another thought, try to get this to work just using oridinary jsp tags and
java code (% java code here %) and see oif things work. Than you can
narrow the problem down to tag issues..
Good luck!
Geeta
Au-Yeung, Stella H wrote:
Niall:
I did what you suggested
Hi:
My html:form tag doesn't allow me to skip an 'action' attribue. If you
look at my code below, I move the assignment of the 'form action' to the
javascript function so which action to take is dynamically depends on the
form element 'whichAction'. But the compiler insist I have to have the
Users Mailing List
Subject: Re: Must have action=. in html:form tag?
Specify the Action associated with fromCreateShopWorkOrder or
fromUpdateShopWorkOrder in the html:form attribute.
--- Au-Yeung, Stella H [EMAIL PROTECTED] wrote:
Hi:
My html:form tag doesn't allow me to skip an 'action
action=/fromCreateShopWorkOrder
method=post
onSubmit=return submitForm(document.theForm)
...
/html:form
You do have action's associated with fromCreateShopWorkOrder and
fromUpdateShopWorkOrder, right?
- Hubert
--- Au-Yeung, Stella H [EMAIL PROTECTED] wrote:
Hubert:
Can
].action=/Some/New/Action.do;
return true;
}
And then you'd put logic to decide where to actually submit to inside the
onSubmit function.
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:13 PM
To: 'Struts Users Mailing List
=. in html:form tag?
Just a suggestion. Not sure if I'm right...
Instead of using onSubmit() event of your html:form,
why don't you call the Javascript when the user
clicks/submits the associcated HTML component -
Create/Update button, and set the action
accordingly.
HTH,
Shyam
--- Au-Yeung, Stella H [EMAIL
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 6:08 PM
To: 'Struts Users Mailing List'
Subject: RE: Must have action=. in html:form tag?
Shyam:
I am not sure what you mean, can you elaborate that?
The current form only has one 'submit
=button name=Update
onClick=submitForm
/logic:equal
Then, in your submitForm() Javascript, check for which
button is clicked, or check for whichAction as you're
doin now, and set the action accordingly. (Sorry, I'm
not an expert in Javascript!)
HTH,
Shyam
--- Au-Yeung, Stella H [EMAIL PROTECTED
provide a link?
A problem similar to this was discussed
earlier this week.
Since you do not make it clear that you are
using Struts or even a web application, please prepend your posts with [OT]
next time.
robert
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent
A few question on Garbage Collection. I read the paper on Tuning Garbage
Collection. Can someone tell me:
1) What's the default size of 'Permanent Generation'.
2) How to print out the available memory in 'Permanent Gereration'? My
'OutOfMemoryError' may be due to this space is fulled.
3) The
-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 10:52 AM
To: Struts Users Mailing List
Subject: Tool to diagnose J2EE/Struts/Oracle problem
I am havng a No resource Available problem with my J2EE/Struts/Oracle
application. It is saying I don't have any more
by the
DBCP project, which is a Jakarta Commons subproject. Garbage collection
does not release database connections. I'm not sure on all the details why
not, but there are other reasons to use connection pooling such as
performance.
- Original Message -
From: Au-Yeung, Stella H [EMAIL
I am havng a No resource Available problem with my J2EE/Struts/Oracle
application. It is saying I don't have any more Oracle connections
available. Even I am closing the result set, statement and connection, I
am still running into the problem. When I use the Oracle DBA monitor tool,
it
Hi:
We have a J2EE application that follows standard J2EE and Struts design
pattern.
We are using WebLogic 6.1, Struts 1.0 and JDK 1.3.1.
Basically, we have JSPs, ActionForms with databeans to populate the JSP.
Action classes call EJBs for business rules processing. EJBs call DAO to
retrieve
Hi:
The bottom of my Search.jsp has two buttons. They are for displaying
different report (a Main report and a Procedure Summary):
html:submit property=mainReportbean:message
key=button.mainReport//html:submit
html:submit property=procedureSummarybean:message
property=result scope=request value=ok
javascript:open.your.pop.up.some.how
/logic:equal
Hope it helps.
Koni
Au-Yeung, Stella H wrote:
Hi:
The bottom of my Search.jsp has two buttons. They are for displaying
different report (a Main report and a Procedure Summary):
html:submit property
,width=450,height=500')
???
Here you have to figure out how to open the JSP page with javascript.
Javascript
documentation eg. selfhtml will help.
Koni
Original Message
Subject: RE: Pop-up a window on Submit
Date: Tue, 12 Aug 2003 10:39:42 -0400
From: Au-Yeung, Stella H [EMAIL
Hi:
I am getting a NULL pointer with the request object: Please see code below.
I got a NULL pointer trying to access vehList' in the request object inside
the method prepareListForUpdate. But I didn't get a NULL pointer
accessing vehList inside the method setScheduleList.
So it looks like the
,vehList) before calling
prepareListForUpdate()
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Thursday, 17 July 2003 10:52
To: '[EMAIL PROTECTED]'
Subject: Request object Null Pointer
Hi:
I am getting a NULL pointer with the request object: Please see code
44 matches
Mail list logo