jsp and javascript

2002-08-15 Thread yanming lu

How do we conver a String[] in jsp form to a Array in javascript?



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




struts and excel

2002-06-06 Thread yanming lu

How to display an excel file in struts?

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




one action from shared with multiple jsp pages

2002-04-11 Thread yanming lu

How does struts pass a selected item from one jsp page to another?

Here is what we'd like to do:

there is one form including 2 fields: name of text field and department of 
selection field (could be multiple selection).

there are two pages which share this form. page 1 to select number of 
department, second page to enter name.
How do we pass the selected department(s) to the second page and when the 
name is entered, we could save both data?

Thanks,

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




bean:write

2002-04-05 Thread yanming lu

How to display a list of links by using  or  or 
something else?

THanks, Yan

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




how to add data into a form?

2002-04-04 Thread yanming lu

Here is what i'd like to do:

page 1 has form with ID and NAME. The NAME field is hidden so it is blank. 
This form is configured as a java bean and set in the struts-config.xml 
file.

when user click the 'save' button, the id of the form is carried to next 
page, page 2. But in the between, I look at the dababase and find the name 
base on this id and call the setNAME() function to set the name value in the 
same form. But this NAME does not appear on the second form. Why?

yan

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: dynamicly set an attribute of tags

2002-03-13 Thread yanming lu

Louis, I got the following error:
An error occurred between lines: 46 and 47 in the jsp file: 
/WEB-INF/jsp/reg/RegForm.jsp

Generated servlet error:
C:\tomcat\work\localhost\test\WEB-INF\jsp\reg\RegForm$jsp.java:263: Method 
isReadOnly() not found in class java.lang.Object.
  _jspx_th_html_text_1.setReadonly( reg.isReadOnly() );

my code:



...


What is wrong?




>From: Louis Leung <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: dynamicly set an attribute of tags
>Date: Tue, 12 Mar 2002 16:14:31 -0500
>
>you can't do that, because your jsp page won't know where to find that 
>function.
>
>if, in your case, you want to call a form's function, then you have to 
>store the
>form in some scope, then use  to get the form bean in your 
>jsp, then
>you can call the form's function freely
>
>yanming lu wrote:
>
> > I got error:
> >
> > Method isReadOnly() not found in class org.apache.jsp.RegForm$jsp.
> >
> > when I define isReadOnly() function the the form and used in the tag:
> >
> > 
> >
> > Why?
> >
> > >From: Louis Leung <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > >Subject: Re: dynamicly set an attribute of tags
> > >Date: Tue, 12 Mar 2002 14:51:11 -0500
> > >
> > >you can define whether an attribute is a RTExpression (runtime 
>expression)
> > >or
> > >not.  for many of the struts tags, the attributes value can be of a
> > >RTExpression.
> > >
> > >so for your case, you are certainly legal to do something like
> > >
> > >
> > >
> > >or any scriplet you wanna put
> > >
> > >yanming lu wrote:
> > >
> > > > Is there any way in the struts to dynamically set an attribute?
> > > >
> > > > Example:
> > > > 
> > > >
> > > > For this tag, can we somehow to set readonly to true sometimes to 
>false
> > > > based on certian conditions?
> > > >
> > > > _
> > > > Join the world’s largest e-mail service with MSN Hotmail.
> > > > http://www.hotmail.com
> > > >
> > > > --
> > > > 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]>
> > >
> >
> > _
> > Join the world’s largest e-mail service with MSN Hotmail.
> > http://www.hotmail.com
> >
> > --
> > 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]>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: dynamicly set an attribute of tags

2002-03-12 Thread yanming lu

I got error:

Method isReadOnly() not found in class org.apache.jsp.RegForm$jsp.

when I define isReadOnly() function the the form and used in the tag:



Why?

>From: Louis Leung <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: dynamicly set an attribute of tags
>Date: Tue, 12 Mar 2002 14:51:11 -0500
>
>you can define whether an attribute is a RTExpression (runtime expression) 
>or
>not.  for many of the struts tags, the attributes value can be of a 
>RTExpression.
>
>so for your case, you are certainly legal to do something like
>
>
>
>or any scriplet you wanna put
>
>yanming lu wrote:
>
> > Is there any way in the struts to dynamically set an attribute?
> >
> > Example:
> > 
> >
> > For this tag, can we somehow to set readonly to true sometimes to false
> > based on certian conditions?
> >
> > _
> > Join the world’s largest e-mail service with MSN Hotmail.
> > http://www.hotmail.com
> >
> > --
> > 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]>
>


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




struts menu

2002-03-12 Thread yanming lu

Is there anyone who downloaded the struts menu example from the struts user 
guide home page? I'v had difficulty to download it. The page is not 
avaliable now.

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: dynamicly set an attribute of tags

2002-03-12 Thread yanming lu

louis:
is giveMeTrueOrFalse() a form function defined in my struts form?


>From: Louis Leung <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: dynamicly set an attribute of tags
>Date: Tue, 12 Mar 2002 14:51:11 -0500
>
>you can define whether an attribute is a RTExpression (runtime expression) 
>or
>not.  for many of the struts tags, the attributes value can be of a 
>RTExpression.
>
>so for your case, you are certainly legal to do something like
>
>
>
>or any scriplet you wanna put
>
>yanming lu wrote:
>
> > Is there any way in the struts to dynamically set an attribute?
> >
> > Example:
> > 
> >
> > For this tag, can we somehow to set readonly to true sometimes to false
> > based on certian conditions?
> >
> > _
> > Join the world’s largest e-mail service with MSN Hotmail.
> > http://www.hotmail.com
> >
> > --
> > 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]>
>


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




dynamicly set an attribute of tags

2002-03-12 Thread yanming lu

Is there any way in the struts to dynamically set an attribute?

Example:


For this tag, can we somehow to set readonly to true sometimes to false 
based on certian conditions?


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: