RE: How to implement close button in Struts?

2003-09-23 Thread Rick Col
Thanks, guys. You are a lot of help.


--- "Chen, Gin" <[EMAIL PROTECTED]> wrote:
> Do it using Javascript instead.
> 
>   Close
> 
> 
> Server's cant send a message to the client to close
> a browser window.
> Another way is to send a response of that javascript
> or redirect to another
> window that has that in a javascript head.
> -Tim
> 
> -Original Message-
> From: Rick Col [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 23, 2003 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: How to implement close button in Struts?
> 
> 
> Hi,
> 
> I have a "close" button on a page, once user clicks
> on this button, the window should disappear. How to
> do this in Struts?
> 
> regards 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



How to implement close button in Struts?

2003-09-23 Thread Rick Col
Hi,

I have a "close" button on a page, once user clicks
on this button, the window should disappear. How to
do this in Struts?

regards 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



how to output value in text field?

2003-09-11 Thread Rick Col
Hi,

I am trying to output a default value in a textfield.
I did something like this:


It should work, but it does not seem to work. What did
I do wrong?

regards,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



click on button-->save data-->go to another page?

2003-09-08 Thread Rick Col
Hi,

If I have a go button like this:



once I click on this button on sample1.jsp, I want to
save some data to
database, then go to another jsp page sample2.jsp. I
definne
an action class to handle data saving.

Thus, once user clicks on go button, user should be
directed to
the data saving action class first to save data, then
go to
sample.jsp page. In struts-config, I define mapping as
the following:



Will that work?

And I am not sure how I can make "go" button go to
action class first and save data, then go to
sample12.jsp?


regards, 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



two actionForms for one action class?

2003-09-06 Thread Rick Col
Hi,

Is there any way to use two action forms for one
action class.

I have the following situation: one html form (form1)
and a "go" button for sample1.jsp, another html form
(form2) and "submit" button for sample2.jsp.
Once user clicks on "go" button, she will be directed
to sample2.jsp, form1 values will be used and
displayed on sample2.jsp. Once user clicks on "submit"
button on sample2.jsp, form2 values should be saved to
database.

I need to desgin one action form (actionForm1) for
form1 to be retrived and displayed on sample2.jsp, and
design another action form (actionForm2) to be
retrieved and saved to database. Thus, the action
class I design for sample2.jsp needs two actionForms.
I am wondering there is any way to set up
two forms for one action class (in struts-config and
elsewhere)?

regards, 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: How to click on a button to link to a page?

2003-09-05 Thread Rick Col
Thanks,

Yes, that's what I did. My question is: if I have a
"go" button on my "original.jsp" page, where there is
a drop down box user needs to select. After user
clicks on "go"
button, user will be directed to "sample.jsp". If I
want to retrieve user selected item stored in an
action Form, will I be able to get it once I am
directed to sample.jsp using your code below? (Sorry,
I probably need to test it, but I have not defined all
other stuff).

regards 


--- Aleksandr Shneyderman <[EMAIL PROTECTED]>
wrote:
> you would need to create a mapping the for the
> sample.jsp suppose you call
> it sample
> 
> in the action that will be processing your request
> when you ready to
> redirect to sample.jsp just state
> return mapping.findForward ("sample");
> 
> Unless I misunderstood again, but this is just a
> regular way to do the
> redirection to the view component in struts.
> 
> HTH
> 
> > -Original Message-
> > From: Rick Col [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 05, 2003 3:23 PM
> > To: Struts Users Mailing List
> > Subject: RE: How to click on a button to link to a
> page?
> >
> >
> > Thanks,
> >
> > Sorry, I did not make it clear. I actually need to
> > retrieve form data after I click go button. So,
> > basically, it has to go to action path specified
> in
> > struts-config.xml after clicking on the button.
> >
> > Can I simply replace "sample.jsp" with action path
> > specified in struts-config.xml in your code?
> >
> > regards,
> >
> >
> >
> > --- Aleksandr Shneyderman <[EMAIL PROTECTED]>
> > wrote:
> > >  > > onclick="document.location=' > > page="sample.jsp" />'">
> > >
> > > > -Original Message-
> > > > From: Rick Col [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, September 05, 2003 2:43 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: How to click on a button to link to a
> > > page?
> > > >
> > > >
> > > > Hi,
> > > >
> > > > If I have a go button like this:
> > > >
> > > >  > > > key="button.go"/>
> > > >
> > > > once I click on this button, I want it to go
> to
> > > > another jsp page sample.jsp. How can I do
> that? Is
> > > it
> > > > possible to use  to do the job?
> > > >
> > > > regards,
> > > >
> > > >
> > > >
> > > > __
> > > > Do you Yahoo!?
> > > > Yahoo! SiteBuilder - Free, easy-to-use web
> site
> > > design software
> > > > http://sitebuilder.yahoo.com
> > > >
> > > >
> > >
> >
>
-
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: How to click on a button to link to a page?

2003-09-05 Thread Rick Col
Thanks,

Sorry, I did not make it clear. I actually need to
retrieve form data after I click go button. So,
basically, it has to go to action path specified in
struts-config.xml after clicking on the button. 

Can I simply replace "sample.jsp" with action path
specified in struts-config.xml in your code?

regards,



--- Aleksandr Shneyderman <[EMAIL PROTECTED]>
wrote:
>  onclick="document.location=' page="sample.jsp" />'">
> 
> > -Original Message-
> > From: Rick Col [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 05, 2003 2:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to click on a button to link to a
> page?
> >
> >
> > Hi,
> >
> > If I have a go button like this:
> >
> >  > key="button.go"/>
> >
> > once I click on this button, I want it to go to
> > another jsp page sample.jsp. How can I do that? Is
> it
> > possible to use  to do the job?
> >
> > regards,
> >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



How to click on a button to link to a page?

2003-09-05 Thread Rick Col
Hi,

If I have a go button like this:



once I click on this button, I want it to go to
another jsp page sample.jsp. How can I do that? Is it
possible to use  to do the job?

regards,



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



image as link in diaplay taglib?

2003-08-11 Thread Rick Col
Hi,

I need expert advices from this forum about display
taglib.

I am trying to make an image as link on one of he
columns, how could I achieve that? If you have used
dipslay taglib, please advise. 

I appreciate your help.

regards, 

rick

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Is it possible to capture selected values on jsp page?

2003-07-31 Thread Rick Col
Thanks, very helpful...

Still one thing unclear: do I need to put my action
form
in classpath to be imported in my jsp page? Is there a
better way to do it? This sounds messy, but I will try
it out if it works.

regards,


--- Michael Ruppin <[EMAIL PROTECTED]> wrote:
> Well, ultimately jsp IS Java  You can always do
> this:
> 
> <%
> String
>
foo="http://myweb.com/mypage?companyid="+id+"&ssn="+ssn;
> %>
> 
> 
> However, use of scriptlet is discouraged here.  If
> you
> switch to JSTL tags, and put foo into an ActionForm
> property populated in your Action, you could:
> 
>  />
> 
> m
> 
> --- Rick Col <[EMAIL PROTECTED]> wrote:
> > Thanks, 
> > 
> > I will try that out. What I try to do is to
> capture
> > form variables as strings, and concatenate them
> with
> > 
> > a html address as request parameters. I am not
> sure
> > how to 
> > concatenate them with the link in JSP page, and
> add
> > the 
> > whole address to a taglib parameter like the
> > following:
> > 
> >  >
>
uri="http://myweb.com/mypage?companyid="+id+"&ssn="+ssn>
> > 
> > In Java, we can concatenate strings like that, in
> > Jsp,
> > can we do that? Or there is another way?
> > 
> > regards,
> > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Is it possible to capture selected values on jsp page?

2003-07-31 Thread Rick Col
Thanks, 

I will try that out. What I try to do is to capture
form variables as strings, and concatenate them with 
a html address as request parameters. I am not sure
how to 
concatenate them with the link in JSP page, and add
the 
whole address to a taglib parameter like the
following:

http://myweb.com/mypage?companyid="+id+"&ssn="+ssn>

In Java, we can concatenate strings like that, in Jsp,
can we do that? Or there is another way?

regards,



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Is it possible to capture selected values on jsp page?

2003-07-31 Thread Rick Col
Thanks, Michael:

I actually want to capture them outside
...<.html:form>. I know these values
will be in my action form, should I use 
to
get their string values?

regards,


--- Michael Ruppin <[EMAIL PROTECTED]> wrote:
> So long as both s are in the same  as
> the , they will both be in the
> request.
> 
> m
> 
> --- Rick Col <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > I have two drop down lists. Once a user selects
> once
> > item for every list, she will press on submit
> > button.
> > The two lists are collections. I am trying to
> > capture
> > these two values after the user submission. Is
> there
> > an easy way to do that?
> > 
> > regards,
> > 
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Is it possible to capture selected values on jsp page?

2003-07-31 Thread Rick Col
Hi,

I have two drop down lists. Once a user selects once
item for every list, she will press on submit button.
The two lists are collections. I am trying to capture
these two values after the user submission. Is there
an easy way to do that?

regards,

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: html:select and data refresh

2003-07-30 Thread Rick Col
Thanks, Richard:

The trouble is that I cannot use frameset in my
design.
So, it really gives me headache now :((.

regards,


--- "Yee, Richard K,,DMDCWEST"
<[EMAIL PROTECTED]> wrote:
> Rick,
> Check out using html frameset and frames. Have the
> result of your form go to
> a different results frame.
> 
> Regards,
> 
> Richard
> 
> 
> -Original Message-
> From: Rick Col [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 30, 2003 12:04 PM
> To: Struts Users Mailing List
> Subject: Re: html:select and data refresh
> 
> 
> Thanks,
> 
> Sorry for being naive on this. I am new to both
> javascript and struts. I am already using onchange
> to
> load data. Can I use another attribute, such as
> onblur, or onclick to do the job? And how do I
> reload
> the page to the previous page (that is: with no
> table
> display)?
> 
> regards
> 
> 
> --- Ashish Kulkarni <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> > i guess u can try onchange event on select, to
> find
> > out when the user selectes some thing and clear
> the
> > result table displayed below
> > for clearing the table u can use java script or
> will
> > have to reload the page
> > 
> > Ashish
> > --- Rick Col <[EMAIL PROTECTED]> wrote:
> > > Hi, guys:
> > > 
> > > I have a list for user to select, when user
> select
> > > one
> > > item from the list, and hit search button, a
> > results
> > > table will be displayed at the bottom half of
> the
> > > page. Now, if user selects another item from the
> > > list,
> > > I want to refresh the table (or page?) and make
> > the
> > > results table disappear before user hit search
> > > button
> > > again. I have no idea to do this. Can anyone
> give
> > > some
> > > thoughts on this?
> > > 
> > > regards,
> > > 
> > > rick
> > > 
> > > __
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: html:select and data refresh

2003-07-30 Thread Rick Col
Thanks,

Sorry for being naive on this. I am new to both
javascript and struts. I am already using onchange to
load data. Can I use another attribute, such as
onblur, or onclick to do the job? And how do I reload
the page to the previous page (that is: with no table
display)?

regards


--- Ashish Kulkarni <[EMAIL PROTECTED]>
wrote:
> Hi,
> i guess u can try onchange event on select, to find
> out when the user selectes some thing and clear the
> result table displayed below
> for clearing the table u can use java script or will
> have to reload the page
> 
> Ashish
> --- Rick Col <[EMAIL PROTECTED]> wrote:
> > Hi, guys:
> > 
> > I have a list for user to select, when user select
> > one
> > item from the list, and hit search button, a
> results
> > table will be displayed at the bottom half of the
> > page. Now, if user selects another item from the
> > list,
> > I want to refresh the table (or page?) and make
> the
> > results table disappear before user hit search
> > button
> > again. I have no idea to do this. Can anyone give
> > some
> > thoughts on this?
> > 
> > regards,
> > 
> > rick
> > 
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



html:select and data refresh

2003-07-30 Thread Rick Col
Hi, guys:

I have a list for user to select, when user select one
item from the list, and hit search button, a results
table will be displayed at the bottom half of the
page. Now, if user selects another item from the list,
I want to refresh the table (or page?) and make the
results table disappear before user hit search button
again. I have no idea to do this. Can anyone give some
thoughts on this?

regards,

rick

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
Hahahahaha.Kris, yes this is sickening. More so
after trying all possible solutions. This ruined my
Friday :((.

regards,

Rick  


--- Kris Schneider <[EMAIL PROTECTED]> wrote:
> Man, this is really sick ;-). If I'm understanding
> you, maybe this will work (or
> maybe not...):
> 
> var products = new Array();
>  indexId="i">
>   var productBeans = new
> Array();
>name="productBeans" indexId="j">
> productBeans[ name="j"/>] = [" name="productBean" property="productName"/>",
>     
>  " name="productBean" property="productId"/>"];
>   
>   products[] =
> productBeans;
> 
> 
> 
> Quoting Rick Col <[EMAIL PROTECTED]>:
> 
> > Hi,
> > 
> > I did the following, but the results were not
> > displayed.
> > Whats wrong with my code?
> > 
> > >>>>>>>>>>
> > products is a collection of ArrayLists, every
> > arrayList contains
> > a list of ProductBeans, ProductBean has
> productName
> > and productId properties.
> > 
> > products are retrieved in action class and are put
> > into session scope:
> > session.setAttribute("products", products);
> > 
> > var productsArray = new Array();
> > 
> >  indexId
> > = "idx">
> >  > indexId = "index">
> > productsArray[<%=idx%>][<%=index%>] 
> > = new Array( > property = "productName"/>,
> > > property = "productId"/>);
> > 
> > 
> > >>>>>>>>>>>>>
> > 
> > Thanks in advance.
> > 
> > rick
> > 
> > 
> > 
> > --- Rick Col <[EMAIL PROTECTED]> wrote:
> > > More questions about the following:
> > > 
> > > 1) It says in logic tags reference:
> > > id: "The name of a page scope JSP bean that will
> > > contain the current element of the collection on
> > > each
> > > iteration, if it is not null."
> > > 
> > > So, it means myList ArrayList should conform
> > > to JavaBean routines, is that right? For
> example:
> > > 
> > > If I have a List4Js class, it has to have
> > > getters/seters
> > > for getting/setting ArrayLists:
> > > 
> > > ArrayList myList = List4J.getResultList();
> > > 
> > > And the elements of an ArrayList should be a
> bean
> > > too.
> > > 
> > > 2) If I want to get a collection of arraylists,
> I
> > > can
> > > use the  tag as following:
> > > 
> > >   name="listForJavaScript"
> > >  indexId="idx">
> > >  > >  indexId="index">
> > > jsArray[<%=idx%>][<%=index%>] = 
> > >  <%=myBean.getYourValue()%>;
> > >   
> > >   
> > >  
> > > Since JavaScript Array usually has the following
> > > form:
> > >   myArray = new Array("sample", 1);
> > > 
> > > Do I need to conform to the above routine to
> create
> > > an
> > > 
> > > JavaScript Array element in order to correctly
> > > display
> > > the results?
> > > 
> > > regards,
> > > 
> > > rick
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- James Childers <[EMAIL PROTECTED]> wrote:
> > > > You'll need to do a couple of things:
> > > > 
> > > > 1) (Assuming you're using Struts, of course.)
> > > Create
> > > > your Java array/collection/whatever in the
> Action
> > > > that gets hit before your JSP page:
> > > > List myList = new ArrayList();
> > > > // populate the list, la la la
> > > > request.addAttribute("listForJavascript",
> > > myList);
> > > > return mapping.findForward("success");  //
> Takes
> > > > you to, say, bongabonga.jsp
> > > > 
> > > > 2) In bongabonga.jsp:
> > > > 
> > > > 
> > > > var jsArray = new Array();  // Do you have
> to
> > > init
> > > > this? I don't remember.
> > > > <logic:iterate id="jsList"
> > > > name="listForJavaScript" indexId="idx">
> > > > jsArray[<%=idx%>] =
> <%=jsList.getYourValue()%>;
> > > > </logic:iterate>
> > > > 
> > > > 
> > > > 3) Debug. This is all from memory. I'm sure
> there
> > > > are some glaring errors here, but this is the
> > > > general flow.
> > > > 
> > > > -= J
> 
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech   <http://www.dotech.com/>
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: [Friday] TV Commercial

2003-07-25 Thread Rick Col
Jing:

Its brakes, not breaks. This will ruin the whole joke.
I heard it long time ago though. Thanks for cheering
me up anyways.

rick


--- Jing Zhou <[EMAIL PROTECTED]> wrote:
> Jim was a new hire at the dot com booming time. He
> bought an economic car using his sign-on bonus.
> At the midnight, he tried the new car in the city's
> looped highway.
> 
> He enjoyed his car very much until a BMW car was
> passing by. "Have you driven a Mercedes-Benz
> before?"
> the driver asked. The car run away quickly after the
> question.
> 
> Jim continued to drive and then he heard the same
> question because that car was catching up
> with him from behind again.
> 
> This time Jim tried to catch that car. But his car
> failed. The BMW disappeared way ahead of him.
> Jim relaxed finally. Soon after he discovered a car
> crushed
> into the side way.
> 
> It was that BMW. Jim stopped his car behind it
> and walked to the driver.
> 
> "Have you driven a Mercedes-Benz before?" asked the
> driver with blood all over his face.
> 
> Jim was almost angry with him before he heard the
> next question.
> 
> "Do you know where the breaks are located?"
> 
>
***
> The last screen of the TV Commercial shows
>  "Why don't you ask the Struts list?"
>
***
> 
> 
> Jing
> Netspread Carrier
> http://www.netspread.com
> 
> 
> 
> 
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
Hi,

I did the following, but the results were not
displayed.
Whats wrong with my code?

>>>>>>>>>>
products is a collection of ArrayLists, every
arrayList contains
a list of ProductBeans, ProductBean has productName
and productId properties.

products are retrieved in action class and are put
into session scope:
session.setAttribute("products", products);

var productsArray = new Array();



productsArray[<%=idx%>][<%=index%>] 
= new Array(,
   );
    

>>>>>>>>>>>>>

Thanks in advance.

rick



--- Rick Col <[EMAIL PROTECTED]> wrote:
> More questions about the following:
> 
> 1) It says in logic tags reference:
> id: "The name of a page scope JSP bean that will
> contain the current element of the collection on
> each
> iteration, if it is not null."
> 
> So, it means myList ArrayList should conform
> to JavaBean routines, is that right? For example:
> 
> If I have a List4Js class, it has to have
> getters/seters
> for getting/setting ArrayLists:
> 
> ArrayList myList = List4J.getResultList();
> 
> And the elements of an ArrayList should be a bean
> too.
> 
> 2) If I want to get a collection of arraylists, I
> can
> use the  tag as following:
> 
>indexId="idx">
>   indexId="index">
> jsArray[<%=idx%>][<%=index%>] = 
>  <%=myBean.getYourValue()%>;
>   
>   
>  
> Since JavaScript Array usually has the following
> form:
>   myArray = new Array("sample", 1);
> 
> Do I need to conform to the above routine to create
> an
> 
> JavaScript Array element in order to correctly
> display
> the results?
> 
> regards,
> 
> rick
> 
> 
> 
> 
> 
> 
> --- James Childers <[EMAIL PROTECTED]> wrote:
> > You'll need to do a couple of things:
> > 
> > 1) (Assuming you're using Struts, of course.)
> Create
> > your Java array/collection/whatever in the Action
> > that gets hit before your JSP page:
> > List myList = new ArrayList();
> > // populate the list, la la la
> > request.addAttribute("listForJavascript",
> myList);
> > return mapping.findForward("success");  // Takes
> > you to, say, bongabonga.jsp
> > 
> > 2) In bongabonga.jsp:
> > 
> > 
> > var jsArray = new Array();  // Do you have to
> init
> > this? I don't remember.
> > <logic:iterate id="jsList"
> > name="listForJavaScript" indexId="idx">
> > jsArray[<%=idx%>] = <%=jsList.getYourValue()%>;
> > </logic:iterate>
> > 
> > 
> > 3) Debug. This is all from memory. I'm sure there
> > are some glaring errors here, but this is the
> > general flow.
> > 
> > -= J
> > 
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
More questions about the following:

1) It says in logic tags reference:
id: "The name of a page scope JSP bean that will
contain the current element of the collection on each
iteration, if it is not null."

So, it means myList ArrayList should conform
to JavaBean routines, is that right? For example:

If I have a List4Js class, it has to have
getters/seters
for getting/setting ArrayLists:

ArrayList myList = List4J.getResultList();

And the elements of an ArrayList should be a bean too.

2) If I want to get a collection of arraylists, I can
use the  tag as following:

 

jsArray[<%=idx%>][<%=index%>] = 
 <%=myBean.getYourValue()%>;


 
Since JavaScript Array usually has the following form:
  myArray = new Array("sample", 1);

Do I need to conform to the above routine to create an

JavaScript Array element in order to correctly display
the results?

regards,

rick






--- James Childers <[EMAIL PROTECTED]> wrote:
> You'll need to do a couple of things:
> 
> 1) (Assuming you're using Struts, of course.) Create
> your Java array/collection/whatever in the Action
> that gets hit before your JSP page:
>   List myList = new ArrayList();
>   // populate the list, la la la
>   request.addAttribute("listForJavascript", myList);
>   return mapping.findForward("success");  // Takes
> you to, say, bongabonga.jsp
> 
> 2) In bongabonga.jsp:
>   
>   
>   var jsArray = new Array();  // Do you have to init
> this? I don't remember.
>    name="listForJavaScript" indexId="idx">
>   jsArray[<%=idx%>] = <%=jsList.getYourValue()%>;
>   
>   
>   
> 3) Debug. This is all from memory. I'm sure there
> are some glaring errors here, but this is the
> general flow.
> 
> -= J
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
James:

Thanks for your nice presentation. I will try it out
right away. 

regards,

rick 


--- James Childers <[EMAIL PROTECTED]> wrote:
> You'll need to do a couple of things:
> 
> 1) (Assuming you're using Struts, of course.) Create
> your Java array/collection/whatever in the Action
> that gets hit before your JSP page:
>   List myList = new ArrayList();
>   // populate the list, la la la
>   request.addAttribute("listForJavascript", myList);
>   return mapping.findForward("success");  // Takes
> you to, say, bongabonga.jsp
> 
> 2) In bongabonga.jsp:
>   
>   
>   var jsArray = new Array();  // Do you have to init
> this? I don't remember.
>    name="listForJavaScript" indexId="idx">
>   jsArray[<%=idx%>] = <%=jsList.getYourValue()%>;
>   
>   
>   
> 3) Debug. This is all from memory. I'm sure there
> are some glaring errors here, but this is the
> general flow.
> 
> -= J
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
Hi,

I did not put my question in a nice method previously.


I am trying to retrieve data from database and pass
data into a JavaScript function as an Array and
display it on my JSP page. 

If I have to write a Scriptlet inside JavaScript code
to get data from db, what kind of Java data form
(ArrayList, Vector, Enemeration, List, Collection?) I
can use to directly pass it into javascript function?
If the above cannot work, How can I transform a Java
array (a array of strings) into a JavaScript Array?
Thank you in advance.

regards,

rick

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Strus/Java counterpart of JavaScript Array?

2003-07-24 Thread Rick Col
Hi, guys:

I can use JavaScript array of arrays su as the
following to fill a box.

students = new Array(
new Array(
new Array("Saku",1),
new Array("Martin",2),
new Array("Jeff", 3)
),
new Array(
new Array("Mario", 1),
new Array("Jaromir", 2),
new Array("Robert", 3),
new Array("Alexei", 4)
),
new Array(
new Array("Alexei", 1),
new Array("Daniel", 2),
new Array("Maria", 3),
new Array("Patrick", 4),
new Array("Radek", 5)
)
);


The above Array is used as a JavaScript function
parameter. 
When I use a collection or an ArrayList ofArrayLists
to replace 
the above JavaScript Array, it fails to show up in the
box. I 
am wondering if there is such array structure in
Struts/Java I 
can use to replace javascript array, because I need to
fill the 
box using dynamic data. thanks.

rick

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: dependent list help!

2003-07-24 Thread Rick Col
Thanks, steve:

Yes, I tried your code, it works. I got no error when
I run the program. I am not sure if the js function is
called, but it was fine when I ran the js code.

This is my JS file:
---
students = new Array(
new Array(
new Array("Saku", 39482304),
new Array("Martin", 34802389),
new Array("Jeff", 39823498)
),
new Array(
new Array("Mario", 23840238),
new Array("Jaromir", 92390484),
new Array("Robert", 29048203),
new Array("Alexei", 94098230)
),
new Array(
new Array("Alexei", 20394802),
new Array("Daniel", 34982039),
new Array("Maria", 92348902),
new Array("Patrick", 98203894),
new Array("Radek", 98234902)
)
);

function populateDependent(selectCtrl, itemArray,
goodPrompt, badPrompt, defaultItem) {
var i, j;
var prompt;
// empty existing items
for (i = selectCtrl.options.length; i >= 0; i--) {
selectCtrl.options[i] = null; 
}
prompt = (itemArray != null) ? goodPrompt : badPrompt;
if (prompt == null) {
j = 0;
}
else {
selectCtrl.options[0] = new Option(prompt);
j = 1;
 }
if (itemArray != null) {
// add new items
for (i = 0; i < itemArray.length; i++) {
selectCtrl.options[j] = new Option(itemArray[i][0]);
if (itemArray[i][1] != null) {
selectCtrl.options[j].value = itemArray[i][1]; 
}
j++;
}
// select first item (prompt) for sub list
selectCtrl.options[0].selected = true;
   }
}

This is my JSP file:
--
<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic" %>



stedent lists








select
department
  
   
 



   
   select
student




-

I have tried this code million times. It just does not
populate dependent list. I am not sure what's wrong,
wish you guys can point out my mistakes.

regards,

Rick



--- Steven Santiago <[EMAIL PROTECTED]> wrote:
> Rick,
> 
> Ah..misunderstood your original post. Coffee still
> working its way
> around. :) What errors are you getting? When I try
> with a simple
> onchange call it works fine. 
> 
>  onchange="this.form.student.selectedIndex = 1;">
> 
> 
>select
> student
>   Tom
> 
> 
> Sounds like it could be js related. Is your
> populateDependent function
> being called?
> 
> steve
> 
> 



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: dependent list help!

2003-07-24 Thread Rick Col
Hi, steve:
The department list appears ok, but when I select one 
department, nothing happens to the student dependent
list. It works very well with html/javascript code
shown below. Can Struts do the same thing? thanks. 


--- Steven Santiago <[EMAIL PROTECTED]> wrote:
> Rick,
> 
> Have you tried using optionsCollection? Maybe
> something like:
> 
> 
>   select
> department
>property="departments"
> label="description"  value="id"/>
> 
> 
> steve

>  onChange="populateDependent(this.form.student,
> ((this.selectedIndex == -1) ? null :
> students[this.selectedIndex-1]));">
> Select department
> Math
> Chemistry
> Computer science
> English
> 
> 
> 
> 
> 
> 
> But when I try to convert this into Struts code, it
> just does not work! Its driving me crazy.
> 
>onchange="populateDependent(this.form.student,
> ((this.selectedIndex == -1) ? null :
> students[this.selectedIndex-1]));>
>   select
> department
>property="id"labelProperty="description"/>
>
>  
> --
>
>select
> student
> 
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



dependent list help!

2003-07-24 Thread Rick Col
Hi,

I can use the follwoing javascript code to dynamically
fill a dependent list (students is aa array of
arrays).


Select Team
Montreal Canadiens
Pittsburg Penguins
Toronto Maple Leafs
Ottawa Senators






But when I try to convert this into Struts code, it
just does not work! Its driving me crazy.

select
department
  
   
 
--
   
   select
student


Could you guys tell me what is wrong with my struts
code? Thank you in advance!

regards,

rick


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



How to interate through a collection?

2003-07-23 Thread Rick Col
Hi,

If I have a collection of employees, an employee has a
name and id (int). How can I iterate through this
collection and put every employee between
?

--



 

--

regrads,

Rick

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: drop-down list help

2003-07-22 Thread Rick Col
Thanks, Caroline:

I just took a look, very good tutorial. 

regards,

rick



--- Caroline Jen <[EMAIL PROTECTED]> wrote:
> Hi, Rick:
> 
>  Take a look at
> http://www.reumann.net/do/struts/main
> 
> In Lesson II, you'll find an example of how to use
> the
> html:select tag
> 
> Lesson II-4 Create ActionForm - The UI element for
> entering a value into the department field will be a
> drop-down list.
> 
> Lesson II-6 Create DepartmentBean - This bean will
> be
> used to represent options for the drop-down list.
> 
> Lesson II-8 Create EmployerService - shows how the
> list of departments is created. 
> 
> Lesson II-9 Create SetUpEmployerAction - this is
> where
> the list of options is put into the session context.
> 
> 
> code:
> --
> 
>   Collection departments = service.getDepartments();
>   HttpSession session = request.getSession();
>   session.setAttribute( "departments", departments
> );
> 
> --
> 
> Lesson II-14 Create employeeForm.jsp - shows how the
> html:select and html:options is used to present a   
> 
> drop-down list of departments. 
> 
> Note the property and labelProperty attributes in
> the
> html:options tag: both id and description are
> properties of the DepartmentBean created in II-6.
> The 
> collection attribute is the name "departments" which
> was used when the list of DepartmentBeans was added
> to
> the session context (II-9).
> 
> --- Rick Col <[EMAIL PROTECTED]> wrote:
> > Hi, Swaroop:
> > 
> > I have a question about your implementation, do we
> > still need to implement an actionForm class for
> the
> > following drop down list? 
> > 
> > regards,
> > 
> > 
> > 
> > --- Swaroop George <[EMAIL PROTECTED]> wrote:
> > >  > > class="com.xxx.DropdownCollections">
> > >
> > > 
> > > 
> > >  > > property="months"
> > > toScope="request"/>
> > > 
> > >  property="key"
> > > labelProperty="value"/>
> > > 
> > > 
> > > 
> > > Hi this is a part of the page I developed..
> > > (Ofcourse a commercial
> > > application..) I have a class called
> > > DropDownCollections.java
> > > Now in the class I have a method getMonths()
> which
> > > will return me a
> > > collection of months..
> > > 
> > > I am using the months collection to populate the
> > > options..
> > > You can actually use an html:select instead of a
> > > nested:select
> > > 
> > > The getMonths() returns a set of beans having
> two
> > > attributes key and
> > > value..
> > > Key will be the month numbers 1,2,3,4..
> > > While value will be month names Jan, Feb,..
> > > While the dropdown is rendered the month name
> will
> > > be shown.. When the
> > > page is submitted the month num(key) will be set
> > to
> > > the property 'month'
> > > 
> > > Hope it helps..
> > > Swaroop
> > > 
> > > -Original Message-
> > > From: Rick Col [mailto:[EMAIL PROTECTED] 
> > > Sent: Tuesday, July 22, 2003 6:24 PM
> > > To: Struts Users Mailing List
> > > Subject: drop-down list help
> > > 
> > > Hi, guys:
> > > 
> > > I am a struts newbie. I have spent sevaral days
> > > trying
> > > build a struts page with several drop-down lists
> > in
> > > vain. I am wondering there are any struts drop
> > down
> > > lists examples out there. I appreciate your
> help. 
> > > 
> > > regards,
> > > 
> > > 
> > > __
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > http://sbc.yahoo.com
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: drop-down list help

2003-07-22 Thread Rick Col
Hi, Swaroop:

I have a question about your implementation, do we
still need to implement an actionForm class for the
following drop down list? 

regards,



--- Swaroop George <[EMAIL PROTECTED]> wrote:
>  class="com.xxx.DropdownCollections">
>
> 
> 
>  property="months"
> toScope="request"/>
> 
>  labelProperty="value"/>
> 
> 
> 
> Hi this is a part of the page I developed..
> (Ofcourse a commercial
> application..) I have a class called
> DropDownCollections.java
> Now in the class I have a method getMonths() which
> will return me a
> collection of months..
> 
> I am using the months collection to populate the
> options..
> You can actually use an html:select instead of a
> nested:select
> 
> The getMonths() returns a set of beans having two
> attributes key and
> value..
> Key will be the month numbers 1,2,3,4..
> While value will be month names Jan, Feb,..
> While the dropdown is rendered the month name will
> be shown.. When the
> page is submitted the month num(key) will be set to
> the property 'month'
> 
> Hope it helps..
> Swaroop
> 
> -Original Message-
> From: Rick Col [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 22, 2003 6:24 PM
> To: Struts Users Mailing List
> Subject: drop-down list help
> 
> Hi, guys:
> 
> I am a struts newbie. I have spent sevaral days
> trying
> build a struts page with several drop-down lists in
> vain. I am wondering there are any struts drop down
> lists examples out there. I appreciate your help. 
> 
> regards,
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: drop-down list help

2003-07-22 Thread Rick Col
Thanks, Swaroop, for your kind help.

regards,  


--- Swaroop George <[EMAIL PROTECTED]> wrote:
>  class="com.xxx.DropdownCollections">
>
> 
> 
>  property="months"
> toScope="request"/>
> 
>  labelProperty="value"/>
> 
> 
> 
> Hi this is a part of the page I developed..
> (Ofcourse a commercial
> application..) I have a class called
> DropDownCollections.java
> Now in the class I have a method getMonths() which
> will return me a
> collection of months..
> 
> I am using the months collection to populate the
> options..
> You can actually use an html:select instead of a
> nested:select
> 
> The getMonths() returns a set of beans having two
> attributes key and
> value..
> Key will be the month numbers 1,2,3,4..
> While value will be month names Jan, Feb,..
> While the dropdown is rendered the month name will
> be shown.. When the
> page is submitted the month num(key) will be set to
> the property 'month'
> 
> Hope it helps..
> Swaroop
> 
> -Original Message-
> From: Rick Col [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 22, 2003 6:24 PM
> To: Struts Users Mailing List
> Subject: drop-down list help
> 
> Hi, guys:
> 
> I am a struts newbie. I have spent sevaral days
> trying
> build a struts page with several drop-down lists in
> vain. I am wondering there are any struts drop down
> lists examples out there. I appreciate your help. 
> 
> regards,
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: drop-down list help

2003-07-22 Thread Rick Col
Thank you, suzette. I will take a look, and report
back to tell you if I make it or not. 

regards,


--- Suzette Daniel <[EMAIL PROTECTED]> wrote:
> The examples are in the struts war:
> [struts.war]/webapps/struts-exercise-taglib.war.
> They are also
>
http://jakarta.apache.org/struts/resources/projects.html.
> 
> Suzette H. Daniel
> Java Developer/Web dept
> 770 416.9222 ex: 5041
> 
> 
> 
> -Original Message-
> From: Rick Col [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 22, 2003 8:54 AM
> To: Struts Users Mailing List
> Subject: drop-down list help
> 
> 
> Hi, guys:
> 
> I am a struts newbie. I have spent sevaral days
> trying
> build a struts page with several drop-down lists in
> vain. I am wondering there are any struts drop down
> lists examples out there. I appreciate your help. 
> 
> regards,
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



drop-down list help

2003-07-22 Thread Rick Col
Hi, guys:

I am a struts newbie. I have spent sevaral days trying
build a struts page with several drop-down lists in
vain. I am wondering there are any struts drop down
lists examples out there. I appreciate your help. 

regards,


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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