RE: Setting Values To the html:txt tag

2001-12-26 Thread Strichartz, Beth

If you have a form bean with an attribute for CompanyName,
with get and set methods, than it should default if it is set prior

-Original Message-
From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 26, 2001 12:43 AM
To: Struts Users Mailing List
Subject: Setting Values To the html:txt tag


Hi ,
   I would like to know the way to set a request parameter value to
the html:text tag.
Im trying to do it as follows:
html:text property=companyName
value=%=request.getParameter(company)%/

But Nothing is displayed kindly suggest the syntax.
Thanks in advance,
regards,
Sudhir


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




New User Question..How to refer to my formbean in a sciplet

2001-12-19 Thread Strichartz, Beth

Hello,

IN my jsp; I want to set a variable in my form bean (which is in scope)that
requires an argument

Can I 
%MyFormbean.setBank(code) % 
I get the error: Non Static method cannot be referenced from a static
context

How can I refer to my Form???


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Help with bean:write\bean:define whn property requires an argument

2001-12-18 Thread Strichartz, Beth

Hi,

I need to call a method in my Formbean that returns an object but, requires
a string as an argument

For example:

  bean:define id=bankCode name=customerResults property=bankID/

bean:write name=customerResults property=banks(bankCode)
filter=true/


How can I pass arguments ?? or cant I?

Thanks...please help




This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Help with bean:write\bean:define whn property requires an argumen t

2001-12-18 Thread Strichartz, Beth

Please...seriously need some help with this.

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 3:41 PM
To: [EMAIL PROTECTED]
Subject: Help with bean:write\bean:define whn property requires an
argumen t


Hi,

I need to call a method in my Formbean that returns an object but, requires
a string as an argument

For example:

  bean:define id=bankCode name=customerResults property=bankID/

bean:write name=customerResults property=banks(bankCode)
filter=true/


How can I pass arguments ?? or cant I?

Thanks...please help




This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: strut help

2001-12-08 Thread Strichartz, Beth

what is the return false about?
try removing that
a href= onClick=send('logon.do'); return false img
scr=image.gif/a

-Original Message-
From: Kiet Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 08, 2001 2:42 PM
To: '[EMAIL PROTECTED]'; Struts-User (E-mail)
Subject: strut help


Please help.  I'm in a dead-end.

I need to write the submit button with an image and a pop-up dialog and it
will work under
netscape 4.7  IE  net6 when the browser is set never check for new
version for page as the caching technique.  I use javascript to submit the
form, but when caching is set, the form doesn't get submit.

Javascript:
function send(msgAction)
{   document.forms[0].action = msgAction;
document.forms[0].submit();
}

a href= onClick=send('logon.do'); return false img
scr=image.gif/a






--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Please Help with Iterate and Lookup bean value problem

2001-12-07 Thread Strichartz, Beth

Hi,
 I am iterating over a results set and instead of doing
a bean:write...   /
I need to convert the property to something more meaningful.
I added a method in my FormBean that will convert the value for me.
But, I do not know how to properly call it.

I have 
 logic:iterate id=customerResults name=CustomerSearchForm
property=results type=com.my.CustomerSearchVO
  bean:write name=customerResults property=bankFile
filter=true/


What I want to do is call CustomerSearchForm.getbankLabel(bankFile) here.
I have tried several things an can not figure this out.
 



This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Gobal Forward Confusion..

2001-12-06 Thread Strichartz, Beth

I am confused.
If anyone can clear this up for me, I would appreciate it.
I have a global forward to an action that will load my form before
displaying the jps.

If I put the following in another jsp:
html:form action=/customerMaintenance/search
or in the url type:
  
http://localhost/middleware/customerMaintenance/search.do
or
http://localhost/middleware/customerMaintenance/search

I get a message on the webserver No Mapping available for Path
customerMaintenance/search

Am I not understanding Teds Catalog with the gloab forward entry points
correctly?
I also tried changing the path to /do/
But, my web.xml has  
servlet-mapping
servlet-nameControllerServlet/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping


  !-- == Globals Definitions == --
global-forwards
forward   name=success   path=/success.html /
forward   name=failedpath=/failed.html /
forward   name=customerMaintenance/search
path=/customerSearch/LoadCustomerSearchAction.do /

  /global-forwards

  !-- == Action Mapping Definitions ==
--
  action-mappings

actionpath=/customerSearch/LoadCustomerSearchAction
 
type=com.sovereign.middleware.web.actionobjects.customerSearch.LoadCustomer
SearchAction
   name=CustomerSearchForm
   scope=session
   validate=false
forward name=failure path=/failed.html/
forward name=success path=/customerSearch/CustomerSearch.jsp/
/action


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problem with Index

2001-12-04 Thread Strichartz, Beth

In an iterate,
if I do this 
logic:iterate id=addressResults name=customerResults
property=addresses indexId=Index
%=Index%

the index prints out to the screen for me.


But, how do I do this??
logic:iterate id=addressResults name=customerResults
property=addresses indexId=Index
% if (String.valueOf(Index))  0) {%
br
% } %
To check the value of the index??
Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem with Index

2001-12-04 Thread Strichartz, Beth

Thanks,
Works awesome!

-Original Message-
From: Sobkowski, Andrej [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Problem with Index


Beth,

I haven't compiled the following but I guess you should use either
Integer.valueOf(String).intValue() OR
Integer.parseInt(String)
that return an int instead of String.valueOf(int) that returns a String.

A second suggestion would be to use the logic JSP tags greaterThan or
similar.

Ex:
logic:iterate id=addressResults name=customerResults
property=addresses indexId=Index
  logic:greaterThan name=Index value=0
br
  /logic:greaterThan
/logic:iterate

HTH

Andrej
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:56 AM
To: 'Struts Users Mailing List'
Subject: Problem with Index


In an iterate,
if I do this 
logic:iterate id=addressResults name=customerResults
property=addresses indexId=Index
%=Index%

the index prints out to the screen for me.


But, how do I do this??
logic:iterate id=addressResults name=customerResults
property=addresses indexId=Index
% if (String.valueOf(Index))  0) {%
br
% } %
To check the value of the index??
Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Help with Html errors not showing errors

2001-12-04 Thread Strichartz, Beth

1.  I have the web.xml with the ApplicationResources in it.
2.  I have the tag struts-html at the top of my jsp page.
3.  I am saving errors in the action and forwarding to input..
in Action I have:
errors.add(ActionErrors.GLOBAL_ERROR, 
new
ActionError(error.detail,e.getCauseMessage()));

I save: if (!errors.empty()) {
saveErrors(request, errors);
saveToken(request);
return (new ActionForward(mapping.getInput()));
}

I have the applicationResources.properties and it includes an
errors.detail={0}

I know there are errors on the Web serer, I can see the printstacktrace an
the logs.

BODY bgcolor=#FF text=#00 class=BGTop
html:errors/
html:form action=/customerSearch/CustomerSearchAction target=_parent

But, Does not output anything...
Help.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Help with Html errors not showing errors

2001-12-04 Thread Strichartz, Beth

I am getting desperate on what to do with the issue below.
Does anyone have any suggestions on what to try next..

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:32 PM
To: 'Struts Users Mailing List'
Subject: Help with Html errors not showing errors


1.  I have the web.xml with the ApplicationResources in it.
2.  I have the tag struts-html at the top of my jsp page.
3.  I am saving errors in the action and forwarding to input..
in Action I have:
errors.add(ActionErrors.GLOBAL_ERROR, 
new
ActionError(error.detail,e.getCauseMessage()));

I save: if (!errors.empty()) {
saveErrors(request, errors);
saveToken(request);
return (new ActionForward(mapping.getInput()));
}

I have the applicationResources.properties and it includes an
errors.detail={0}

I know there are errors on the Web serer, I can see the printstacktrace an
the logs.

BODY bgcolor=#FF text=#00 class=BGTop
html:errors/
html:form action=/customerSearch/CustomerSearchAction target=_parent

But, Does not output anything...
Help.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Help with Html errors not showing errors

2001-12-04 Thread Strichartz, Beth


Thanks for replying,
I caught that one...
Still trying though...

-Original Message-
From: Jeff Martin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:20 PM
To: Struts Users Mailing List
Subject: RE: Help with Html errors not showing errors


You make an Action error with error.detail but your messages file has
errors.detail?

Jeff

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:11 PM
To: Struts Users Mailing List
Subject: RE: Help with Html errors not showing errors


I am getting desperate on what to do with the issue below.
Does anyone have any suggestions on what to try next..

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:32 PM
To: 'Struts Users Mailing List'
Subject: Help with Html errors not showing errors


1.  I have the web.xml with the ApplicationResources in it.
2.  I have the tag struts-html at the top of my jsp page.
3.  I am saving errors in the action and forwarding to input..
in Action I have:
errors.add(ActionErrors.GLOBAL_ERROR, 
new
ActionError(error.detail,e.getCauseMessage()));

I save: if (!errors.empty()) {
saveErrors(request, errors);
saveToken(request);
return (new ActionForward(mapping.getInput()));
}

I have the applicationResources.properties and it includes an
errors.detail={0}

I know there are errors on the Web serer, I can see the printstacktrace
an
the logs.

BODY bgcolor=#FF text=#00 class=BGTop
html:errors/
html:form action=/customerSearch/CustomerSearchAction
target=_parent

But, Does not output anything...
Help.


This message contains information which may be confidential and
privileged.
Unless you are the addressee  (or authorized to receive for the
addressee),
you may not use, copy or disclose to anyone the message or any
information
contained in the message.  If you have received the message in error,
please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


This message contains information which may be confidential and
privileged.
Unless you are the addressee  (or authorized to receive for the
addressee),
you may not use, copy or disclose to anyone the message or any
information
contained in the message.  If you have received the message in error,
please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Test application.resources file

2001-12-04 Thread Strichartz, Beth

Hi,
Can anyone tell me how to test that I am actually reading\loading the
application.resources file.

or

How to test is action errors exist in my form (or action) after I save them.

Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Logic Tag question

2001-11-30 Thread Strichartz, Beth

Hi,

Any ideas on what tag, or how to compare to attributes from my form bean?

Typically I would do   


logic:greaterThan property=number value=7
 A little lower...
/logic:greaterThan

But, I need to see to compare two properties.

Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: indexed checkboxes

2001-11-01 Thread Strichartz, Beth

Why do you need the index for checkbox?? if it is to create a dynamic
checkbox in an iterate, use
multibox... 

-Original Message-
From: Curt Peterson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 3:25 AM
To: [EMAIL PROTECTED]
Subject: indexed checkboxes


Somewhere in the archives I have seen some recent threads about the
indexed attribute of the checkbox tag not working.  I too am having no
luck getting this to work with the 1.0 release.  I did see a reference
in the basehandler class to indexed being available in 1.1 and up
releases.  What is the 1.1 and up release?  Does the October 31, 2001
release work?

Many Thanks,

-Curt


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Help with message creating

2001-10-25 Thread Strichartz, Beth


I want to do this:
logic:messagesPresent property=name
font color=redbean:message
 key=errors.header//font
ul
   html:messages id=message property=name
  libean:write name=message//li
   /html:messages
/ul
 /logic:messagesPresent

But, how do I add a message when I am in the Action
Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.




adding /viewing messages like errors

2001-10-24 Thread Strichartz, Beth

 
I thought I read somewhere that I can add to the message bean
and then in a jsp see if this message bean exists and output it kind
of like errors???

errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.database.missing));

Can anyone point me in the right direction/...


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.




Messages like Errors...

2001-10-24 Thread Strichartz, Beth

I thought I read somewhere that I can add to the message bean
and then in a jsp see if this message bean exists and output it kind
of like errors???

errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.database.missing));

Can anyone point me in the right direction/...


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.




RE: Getting the value of object in the iterate....

2001-10-23 Thread Strichartz, Beth



I have 
the same question...
Does 
anyone out there know???


  -Original Message-From: michael duggan 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 22, 2001 9:19 
  PMTo: [EMAIL PROTECTED]Subject: Getting the 
  value of onject in the iterate
  If I am iterating over a 
  collection.. logic:iterate id="Patients" name="MyForm" 
  property="Patients" 
  indexId="index" 
  bean:write name="Patients" property="account.ssn" 
  filter="true"//td
  /logic:iterate
  Where Patients has an account Object that has an 
  SSN property.
  is it possible to add the following inside the 
  iterate tag
  
  
  %=Patients.getAccount().getSsn()%The 
  reason I ask, is I want to pass the SSN to Javascript in an Onclick 
  event.
  
  Thanks.
  



This message contains information which may be confidential and privileged.  Unless you are the addressee  (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message.  If you have received the message in error, please advise the sender by reply e-mail, and delete or destroy the message. 


Thank you.



RE: Getting the value of object in the iterate....

2001-10-23 Thread Strichartz, Beth

Thanks! I got that working..
Now I am having a problem sending to the JavaScript:
 html:submit property=buttonSelected value=Get onclick=return
doSubmit(%= Patients.getAccount().getSsn()%); /

Any ideas???

Error is :
probably occurred due to an error in /ChangeEdit.jsp line 303:
html:submit property=buttonSelected value=Get onclick=return
doSubmit('%=Patients.getAccount().getSsn()%'); /

C:\bea\wlserver6.0\config\mydomain\applications\.wl_temp_do_not_delete\WEB-I
NF\_tmp_war_myserver_myserver_middleware\jsp_servlet\_changeaddressedit.java
:1451: ')' expected
(No more information available, probably caused by another error)




Full compiler error(s):
C:\bea\wlserver6.0\config\mydomain\applications\.wl_temp_do_not_delete\WEB-I
NF\_tmp_war_myserver_myserver_middleware\jsp_servlet\_changeaddressedit.java
:1449: unclosed string literal
 
_html_submit0.setOnclick(weblogic.utils.StringUtils.valueOf(return
doSubmit('%= =Patients.getAccount().getSsn()) //[ /ChangeAddressEdit.jsp;
Line: 303]
 


-Original Message-
From: Stephen Owens [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 9:53 AM
To: [EMAIL PROTECTED]
Subject: RE: Getting the value of object in the iterate


You should be able to do this using the bean:define tag, like so,

  logic:iterate id=Patients name=MyForm property=Patients
indexId=index
 bean:write name=Patients property=account.ssn
filter=true//td
bean:define id=Patients name=Patients
type=com.domain.Patients/
%= Patients.getAccount().getSsn()%
  /logic:iterate
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 9:21 AM
To: [EMAIL PROTECTED]
Subject: RE: Getting the value of object in the iterate


I have the same question...
Does anyone out there know???
 
-Original Message-
From: michael duggan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 9:19 PM
To: [EMAIL PROTECTED]
Subject: Getting the value of onject in the iterate


If I am iterating over a collection..
  logic:iterate id=Patients name=MyForm property=Patients
indexId=index
 bean:write name=Patients property=account.ssn
filter=true//td
   
/logic:iterate
Where Patients has an account Object that has an SSN property.
is it possible to add the following inside the iterate tag
 
 
%=Patients.getAccount().getSsn()%The reason I ask, is I want to
pass the SSN to Javascript in an Onclick event.
 
Thanks.
 



This message contains information which may be confidential and
privileged. Unless you are the addressee (or authorized to receive for
the addressee), you may not use, copy or disclose to anyone the message
or any information contained in the message. If you have received the
message in error, please advise the sender by reply e-mail, and delete
or destroy the message. 


Thank you.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.




RE: Getting the value of object in the iterate....

2001-10-23 Thread Strichartz, Beth

Ted,
Is that an html:input or straight html input.
I ask because the end tag is /
I will try this...
Beth.

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting the value of object in the iterate


How about 

input type=submit name=buttonSelected value=Get onclick=return
doSubmit('bean:write ... /'); /

instead. 

Or, you might have to expose the bean as a scripting variable before
using it in a scriptlet.

Strichartz, Beth wrote:
 
 Thanks! I got that working..
 Now I am having a problem sending to the JavaScript:
  html:submit property=buttonSelected value=Get onclick=return
 doSubmit(%= Patients.getAccount().getSsn()%); /
 
 Any ideas???
 
 Error is :
 probably occurred due to an error in /ChangeEdit.jsp line 303:
 html:submit property=buttonSelected value=Get onclick=return
 doSubmit('%=Patients.getAccount().getSsn()%'); /
 

C:\bea\wlserver6.0\config\mydomain\applications\.wl_temp_do_not_delete\WEB-I

NF\_tmp_war_myserver_myserver_middleware\jsp_servlet\_changeaddressedit.java
 :1451: ')' expected
 (No more information available, probably caused by another error)
 


 
 Full compiler error(s):

C:\bea\wlserver6.0\config\mydomain\applications\.wl_temp_do_not_delete\WEB-I

NF\_tmp_war_myserver_myserver_middleware\jsp_servlet\_changeaddressedit.java
 :1449: unclosed string literal
 
 _html_submit0.setOnclick(weblogic.utils.StringUtils.valueOf(return
 doSubmit('%= =Patients.getAccount().getSsn()) //[ /ChangeAddressEdit.jsp;
 Line: 303]
 
 
 -Original Message-
 From: Stephen Owens [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 23, 2001 9:53 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Getting the value of object in the iterate
 
 You should be able to do this using the bean:define tag, like so,
 
   logic:iterate id=Patients name=MyForm property=Patients
 indexId=index
  bean:write name=Patients property=account.ssn
 filter=true//td
 bean:define id=Patients name=Patients
 type=com.domain.Patients/
 %= Patients.getAccount().getSsn()%
   /logic:iterate
 -Original Message-
 From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 23, 2001 9:21 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Getting the value of object in the iterate
 
 I have the same question...
 Does anyone out there know???
 
 -Original Message-
 From: michael duggan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 22, 2001 9:19 PM
 To: [EMAIL PROTECTED]
 Subject: Getting the value of onject in the iterate
 
 If I am iterating over a collection..
   logic:iterate id=Patients name=MyForm property=Patients
 indexId=index
  bean:write name=Patients property=account.ssn
 filter=true//td
 
 /logic:iterate
 Where Patients has an account Object that has an SSN property.
 is it possible to add the following inside the iterate tag
 
 
 %=Patients.getAccount().getSsn()%The reason I ask, is I want to
 pass the SSN to Javascript in an Onclick event.
 
 Thanks.
 
 
 This message contains information which may be confidential and
 privileged. Unless you are the addressee (or authorized to receive for
 the addressee), you may not use, copy or disclose to anyone the message
 or any information contained in the message. If you have received the
 message in error, please advise the sender by reply e-mail, and delete
 or destroy the message.
 
 Thank you.
 
 This message contains information which may be confidential and
privileged.
 Unless you are the addressee  (or authorized to receive for the
addressee),
 you may not use, copy or disclose to anyone the message or any information
 contained in the message.  If you have received the message in error,
please
 advise the sender by reply e-mail, and delete or destroy the message.
 
 Thank you.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.




RE: Getting the value of object in the iterate....

2001-10-23 Thread Strichartz, Beth

Thanks Ted!! :)

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 11:17 AM
To: [EMAIL PROTECTED]
Subject: RE: Getting the value of object in the iterate


Ted,
Is that an html:input or straight html input.
I ask because the end tag is /
I will try this...
Beth.

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting the value of object in the iterate


How about 

input type=submit name=buttonSelected value=Get onclick=return
doSubmit('bean:write ... /'); /

instead. 

Or, you might have to expose the bean as a scripting variable before
using it in a scriptlet.

Strichartz, Beth wrote:
 
 Thanks! I got that working..
 Now I am having a problem sending to the JavaScript:
  html:submit property=buttonSelected value=Get onclick=return
 doSubmit(%= Patients.getAccount().getSsn()%); /
 
 Any ideas???
 
 Error is :
 probably occurred due to an error in /ChangeEdit.jsp line 303:
 html:submit property=buttonSelected value=Get onclick=return
 doSubmit('%=Patients.getAccount().getSsn()%'); /
 

C:\bea\wlserver6.0\config\mydomain\applications\.wl_temp_do_not_delete\WEB-I

NF\_tmp_war_myserver_myserver_middleware\jsp_servlet\_changeaddressedit.java
 :1451: ')' expected
 (No more information available, probably caused by another error)
 


 
 Full compiler error(s):

C:\bea\wlserver6.0\config\mydomain\applications\.wl_temp_do_not_delete\WEB-I

NF\_tmp_war_myserver_myserver_middleware\jsp_servlet\_changeaddressedit.java
 :1449: unclosed string literal
 
 _html_submit0.setOnclick(weblogic.utils.StringUtils.valueOf(return
 doSubmit('%= =Patients.getAccount().getSsn()) //[ /ChangeAddressEdit.jsp;
 Line: 303]
 
 
 -Original Message-
 From: Stephen Owens [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 23, 2001 9:53 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Getting the value of object in the iterate
 
 You should be able to do this using the bean:define tag, like so,
 
   logic:iterate id=Patients name=MyForm property=Patients
 indexId=index
  bean:write name=Patients property=account.ssn
 filter=true//td
 bean:define id=Patients name=Patients
 type=com.domain.Patients/
 %= Patients.getAccount().getSsn()%
   /logic:iterate
 -Original Message-
 From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 23, 2001 9:21 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Getting the value of object in the iterate
 
 I have the same question...
 Does anyone out there know???
 
 -Original Message-
 From: michael duggan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 22, 2001 9:19 PM
 To: [EMAIL PROTECTED]
 Subject: Getting the value of onject in the iterate
 
 If I am iterating over a collection..
   logic:iterate id=Patients name=MyForm property=Patients
 indexId=index
  bean:write name=Patients property=account.ssn
 filter=true//td
 
 /logic:iterate
 Where Patients has an account Object that has an SSN property.
 is it possible to add the following inside the iterate tag
 
 
 %=Patients.getAccount().getSsn()%The reason I ask, is I want to
 pass the SSN to Javascript in an Onclick event.
 
 Thanks.
 
 
 This message contains information which may be confidential and
 privileged. Unless you are the addressee (or authorized to receive for
 the addressee), you may not use, copy or disclose to anyone the message
 or any information contained in the message. If you have received the
 message in error, please advise the sender by reply e-mail, and delete
 or destroy the message.
 
 Thank you.
 
 This message contains information which may be confidential and
privileged.
 Unless you are the addressee  (or authorized to receive for the
addressee),
 you may not use, copy or disclose to anyone the message or any information
 contained in the message.  If you have received the message in error,
please
 advise the sender by reply e-mail, and delete or destroy the message.
 
 Thank you.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error

RE: How To: Radio Buttons and Regular buttons

2001-10-22 Thread Strichartz, Beth


Hi all,
I have a similar questions.

In my iterate I have a regular Button and I need to know which one was 
clicked. Therefore, I have to have a dynamic value generated in the iterate.
I have tried defaulting the value to be part of the bean that I am iterating
over ,
but this has not worked for me.
The following does not work for me...
Any ideas on what will work??
will the indexed property work?

  logic:iterate id=addressAccount name=ChangeAddressForm
property=mapAddressAccount indexId=index
 bean:write name=addressAccount property=account.accountNumber
filter=true//td
 bean:write name=addressAccount property=account.status
filter=true//td
 
  table width=100% border=0 height=45 cellpadding=0
tr
  td width=26% valign=top

html:submit property=buttonSelected value='bean:write
name=addressAccount property=address.addressId filter=true/' /

  /td
/tr
  /table
   

  /logic:iterate
 Thanks Beth. 
-Original Message-
From: L. Yeung [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:27 AM
To: [EMAIL PROTECTED]
Subject: How To: Radio Buttons


Hi All! I need to iterate a collection of supplier
info with radio buttons. I want the value property to
have dynamic values extractd from the collection.

logic:iterate name=user id=suppliersLookupList
property=suppliersLookupListCollection
..
html:radio name=suppliersLookupList
property=selectedSupplierNo value=supplierNo

bean:write name=suppliersLookupList
property=supplierNo filter=true/
  /html:radio


Thanks in advance.
L.Yeung

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.




RE: How To: Radio Buttons and Regular buttons

2001-10-22 Thread Strichartz, Beth

What if I am looking for more than the iterator?
I really need the address Id... 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: RE: How To: Radio Buttons and Regular buttons




The indexed property will work if you use the nightly build.  The name of
the
submit button will be suffixed with [x] where x is the interation index.
You
can then check that in your action.

Cheers,

Dave





Strichartz, Beth [EMAIL PROTECTED] on
10/22/2001 05:10:45 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: How To: Radio Buttons and Regular buttons




Hi all,
I have a similar questions.

In my iterate I have a regular Button and I need to know which one was
clicked. Therefore, I have to have a dynamic value generated in the iterate.
I have tried defaulting the value to be part of the bean that I am iterating
over ,
but this has not worked for me.
The following does not work for me...
Any ideas on what will work??
will the indexed property work?

  logic:iterate id=addressAccount name=ChangeAddressForm
property=mapAddressAccount indexId=index
 bean:write name=addressAccount property=account.accountNumber
filter=true//td
 bean:write name=addressAccount property=account.status
filter=true//td

   table width=100% border=0 height=45 cellpadding=0
tr
  td width=26% valign=top

html:submit property=buttonSelected value='bean:write
name=addressAccount property=address.addressId filter=true/' /

  /td
/tr
  /table


  /logic:iterate
 Thanks Beth.
-Original Message-
From: L. Yeung [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:27 AM
To: [EMAIL PROTECTED]
Subject: How To: Radio Buttons


Hi All! I need to iterate a collection of supplier
info with radio buttons. I want the value property to
have dynamic values extractd from the collection.

logic:iterate name=user id=suppliersLookupList
property=suppliersLookupListCollection
..
html:radio name=suppliersLookupList
property=selectedSupplierNo value=supplierNo

bean:write name=suppliersLookupList
property=supplierNo filter=true/
  /html:radio


Thanks in advance.
L.Yeung

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message.

Thank you.








This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.




RE: New professional STRUTS website

2001-10-01 Thread Strichartz, Beth


Love the site!
-Original Message-
From: Frederick N. Brier [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: New professional STRUTS website


Beautiful site!  I haven't been through it all yet, but a very impressive 
web application.  As Martin Cooper asked, I would also be interested in 
what aspects of Struts you found most useful, what you felt was missing, 
whether you did one large page or tiled, etc.  I am curious how you 
implemented shared functionality such as uploading of images or their 
editing.  Did you duplicate the actions, somehow parameterize your JSPs, 
etc? Thank you for sharing your site.

Frederick N. Brier

At 11:48 AM 9/29/2001, you wrote:
http://www.hallmarkstories.comwww.hallmarkstories.com

Please have a look at this new site developed to produce offline physcial 
product through an online web based application for Hallmark, Inc. by iXL, 
Inc.(NYC).  I would be happy to provide more detail into any questions 
anyone may have in terms of the STRUTS implimentation or other solutions 
for the build.  I have been reading this list for a long time and working 
on this project for a very long time hoping to expose STRUTS as a 
fantastic framework for implimenting proffessional MVC based web
applications.

Thanks,
Adam S. Grohs
mailto:[EMAIL PROTECTED][EMAIL PROTECTED]


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.




Help with Struts and EJBS..

2001-09-24 Thread Strichartz, Beth

Hi,
I need some serious help.
I am a novice Java and Struts developer.
I am trying to develope a prototype that will work with backend EJBS..

I have an CustomerSearchForm, Form bean and  action bean
my Action class is below. 

Questions?
1) Is this the appropriate way to call EJBS (in an action class)?? 
2) How do I get what is returned from the EJB back into my actionform bean?
3) If I want a list of matching customers retruned...what is the best format
for these to be returned from the EJB so that I can
forward to another jsp and show them..  Currently the EJB is returning a
string.
4) Is there any sample applications out there that I can look at that use
EJBs?

Thanks in advance for ANY help.
Beth.


public ActionForward perform
(ActionMapping mapping, ActionForm form, 
HttpServletRequest request, HttpServletResponse response) 
{   
ActionForward fwdAction = null;
CustomerSearchForm searchForm = (CustomerSearchForm) form;
try {

// Get an InitialContext
Properties initProps = new Properties();
initProps.put (Context.INITIAL_CONTEXT_FACTORY, 
weblogic.jndi.WLInitialContextFactory);
initProps.put(Context.PROVIDER_URL,  
t3://yshen:7001);
Context ctx =  new InitialContext(initProps);

Object home = (CustomerFacadeHome)
ctx.lookup(sov/CustomerFacade);
CustomerFacadeHome customerFacadeHome = (CustomerFacadeHome)
PortableRemoteObject.narrow
(home, CustomerFacadeHome.class);

CustomerFacade facade = (CustomerFacade)
PortableRemoteObject.narrow
(customerFacadeHome.create(), CustomerFacade.class);

String[] found  = facade.findCustomer
(searchForm.getCustomerName (), 
searchForm.getSsn (), searchForm.getAlphaKey (), 
searchForm.getBank ());

for (int i=0; ifound.length; i++) {
System.out.println (\t[ + i + ]\t + found[i]);
}
fwdAction = mapping.findForward (success);
} catch (Exception e) {

e.printStackTrace ();
fwdAction = mapping.findForward (failed);
}

return fwdAction;
}




This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.




RE: Help with Struts and EJBS..

2001-09-24 Thread Strichartz, Beth

Thanks,
My from has sets and gets.
I will try to look for previous posted messages..

Beth.
-Original Message-
From: Barry Glasco [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: RE: Help with Struts and EJBS..


1) No, but it will work. Look at previous posts on how to properly
implement.
2) Your form should have get and set methods?
3) Collection
4) None that I am aware of.

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: Help with Struts and EJBS..


Hi,
I need some serious help.
I am a novice Java and Struts developer.
I am trying to develope a prototype that will work with backend EJBS..

I have an CustomerSearchForm, Form bean and  action bean
my Action class is below.

Questions?
1) Is this the appropriate way to call EJBS (in an action class)??
2) How do I get what is returned from the EJB back into my actionform bean?
3) If I want a list of matching customers retruned...what is the best format
for these to be returned from the EJB so that I can
forward to another jsp and show them..  Currently the EJB is returning a
string.
4) Is there any sample applications out there that I can look at that use
EJBs?

Thanks in advance for ANY help.
Beth.


public ActionForward perform
(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
{
ActionForward fwdAction = null;
CustomerSearchForm searchForm = (CustomerSearchForm) form;
try {

// Get an InitialContext
Properties initProps = new Properties();
initProps.put (Context.INITIAL_CONTEXT_FACTORY,
weblogic.jndi.WLInitialContextFactory);
initProps.put(Context.PROVIDER_URL,
t3://yshen:7001);
Context ctx =  new InitialContext(initProps);

Object home = (CustomerFacadeHome)
ctx.lookup(sov/CustomerFacade);
CustomerFacadeHome customerFacadeHome = (CustomerFacadeHome)
PortableRemoteObject.narrow
(home, CustomerFacadeHome.class);

CustomerFacade facade = (CustomerFacade)
PortableRemoteObject.narrow
(customerFacadeHome.create(), CustomerFacade.class);

String[] found  = facade.findCustomer
(searchForm.getCustomerName (),
searchForm.getSsn (), searchForm.getAlphaKey (),
searchForm.getBank ());

for (int i=0; ifound.length; i++) {
System.out.println (\t[ + i + ]\t + found[i]);
}
fwdAction = mapping.findForward (success);
} catch (Exception e) {

e.printStackTrace ();
fwdAction = mapping.findForward (failed);
}

return fwdAction;
}




This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message.

Thank you.



This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.