Comparison Tags in STRUTS 1.0.2

2003-02-27 Thread Jana Navaneethan
Hi, I am currently using STRUTS 1.0.2, In my JSP I need to check for null and empty (String and Collection) before I display the values. I know there is a logic:notEmpty tag in 1.1 but what about 1.0.2? What is the work around for this except using scriptlets in JSP? Please let me know the

Help with indexId property of logic:iterate!

2003-01-29 Thread Jana Navaneethan
Hi, I want to utilize indexId of logic:iterate to display list of values from the collection, I want to set this indexId as a property from my action form bean like this, bean:define id=startIndex name=categorySearchResultForm type=java.lang.Integer property=startNum/ In my form bean

How to assign form bean value in my JSP!

2003-01-27 Thread Jana Navaneethan
Hi, I have a form bean with session scope, I want to get a value from this form bean and assign it to local variable in my JSP page like % int currPage = searchResultForm.getPageNumber();%,Where searchResultForm is the name of my Action form bean. For some reason I am getting compilation

Paginating the search results from a collection.

2003-01-27 Thread Jana Navaneethan
Hi , I have a collection of Search results, I want to display 30 items per page (JSP) from the collection, How to paginate the results using struts tags? Is there any better way of doing this? Any help would be greatly appreciated! Thanks, Jana. -- To unsubscribe, e-mail:

Collection iterate question!

2002-12-05 Thread Jana Navaneethan
Hi , I have a collection in my JSP, I want to iterate this collection and display even rows only. Is there a way to do this? Any help would be greatly appreciated! Thanks in advance, Jana. % java.util.ArrayList paymentListOdd = new java.util.ArrayList(); paymentListOdd.add(American

Re: Help with Multiple Input!

2002-12-04 Thread Jana Navaneethan
help will be greatly appreciated! Thanks, Jana. - Original Message - From: Sri Sankaran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 03, 2002 3:03 PM Subject: RE: Help with Multiple Input! -Original Message- From: Jana

Internationalization of checkbox label

2002-12-04 Thread Jana Navaneethan
Hi, I want to use values, labels for the multibox from my application properties file. I want to create a String[] in my form bean containing elements from properties file (keys). for example in the code below I want to create string [] items form my properties file, i.e. UPS should come

Re: Internationalization of checkbox label

2002-12-04 Thread Jana Navaneethan
resources. Then use the bean:message or fmt:message tag to output the key's value. David From: Jana Navaneethan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Internationalization of checkbox label Date

if condition with or

2002-12-04 Thread Jana Navaneethan
Hi, I want to use logic:equal in my JSP to replace the following code. if (count = 0 || count = 2 || count = 4) do something. How to achieve this using logic:equal By the count is index value of the iterator i.e indexId. Thanks in advance, Jana. -- To unsubscribe, e-mail:

Help with Multiple Input!

2002-12-03 Thread Jana Navaneethan
Hi, I have a form in which I am collecting multiple input from the user, for example for each day of the week I am collecting opening hour and closing hour something in the format of day - checkbox - select/option - select/option , I want to do this in a loop for all 7 days of the week. I

Re: Help with Multiple Input!

2002-12-03 Thread Jana Navaneethan
will be available in the request object. Khalid - Original Message - From: Jana Navaneethan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 03, 2002 11:08 AM Subject: Help with Multiple Input! Hi, I have a form in which I am collecting

Re: Help with Multiple Input!

2002-12-03 Thread Jana Navaneethan
Hi Wendy, All I am trying to do is to avoid repeating the HTML code. I am trying to do something like html:checkbox property=dayFlag%= i %/ where i is an integer 1 thru 7 and in my form bean I will have getter like getDayFlag1(), etc. Now the problem is with the static text ie

Help with bean:message

2002-12-02 Thread Jana Navaneethan
Hi, I want to create a String[] using messages in my JSP page. Can somebody tell me how to do that? Or is there any other better way of doing this? Requirement is simple, I want to display days (Monday thru Sunday) in my JSP, Since our application is multi-lingual I want to get this from

How to collect user input?

2002-12-02 Thread Jana Navaneethan
Hi, I have a form which collects multiple values, How to collect the user input effectively using STRUTS? For example I want to use some index for the checkbox? like day1,day2 in that case, do I need to have two properties in my form bean? like getDay1() and getDay2() or Is there any

Problem! Displaying Spanish Characters in JSP

2002-11-22 Thread Jana Navaneethan
Hi, I have a problem with displaying Spanish special characters in the JSP page. I am using iPlanet Application server, I am not using struts for this particular application, I have added META HTTP-EQUIV=content-type CONTENT=text/html; charset=ISO-8859-1 in my JSP pages. When I look at

Re: Problem! Displaying Spanish Characters in JSP

2002-11-22 Thread Jana Navaneethan
: Friday, November 22, 2002 11:46 AM Subject: Re: Problem! Displaying Spanish Characters in JSP Your charset is specifying ASCII which I don't think contains the special spanish characters. You might try using UTF-8 or UTF-16. David From: Jana Navaneethan [EMAIL PROTECTED] Reply

Re: How to build Multi-Lingual Web Site?

2002-11-20 Thread Jana Navaneethan
to have locale-specific images as well as text. Jim Jana Navaneethan jana.navaneethan@laTo: Struts Users Mailing List [EMAIL PROTECTED] bs.gte.com cc

Re: Using Google like search results

2002-11-19 Thread Jana Navaneethan
- Original Message - From: Divakar Satyanarayan [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, November 19, 2002 4:58 AM Subject: RE: Using Google like search results http://www.javanovic.com/articles/paging.html -Original Message- From:

Question! ApplicationResources.properties file

2002-11-19 Thread Jana Navaneethan
Hi, I have a multi-lingual application, Which uses STRUTS 1.0.2. I have an ApplicationResources.properties file which has more than 600 lines of code. Is it good to have one large properties file? Or Can I split it into multiple properties file? Which is the best approach? in terms of

Re: Question! ApplicationResources.properties file

2002-11-19 Thread Jana Navaneethan
. David From: Jana Navaneethan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Question! ApplicationResources.properties file Date: Tue, 19 Nov 2002 14:32:17 -0500 Hi, I have a multi-lingual

How to build Multi-Lingual Web Site?

2002-11-19 Thread Jana Navaneethan
Hi, We have a multi-lingual application. We are trying to convert our existing application using STRUTS. We have few static HTML pages (.html) How to serve this pages to the User? because these are not JSP pages and I can't use bean:message and the it has lot of static content for example

Help! logic:iterate Incrementing the indexId property?

2002-11-14 Thread Jana Navaneethan
Hi, I have a logic:iterate tag in my JSP which is a Vector and I can display all the contents in my page. Problem is I need to get the index value of the Vector in my JSP and I should be able to increment this index for displaying purpose. Is it possible to do that using logic:iterate?

Problem with logic:iterate using Vector?

2002-11-13 Thread Jana Navaneethan
Hi, I have a Vector in my form bean which contains multiple Objects, I want to loop through the contents of this Vector in my JSP page, I have a getListingsSummary() method in my form bean which is viewListingForm, But for some reason when I call my JSP it throws some exception like No bean