RE: jsp vs jstl in Math

2005-06-23 Thread Sunny
You can always use the jstl in struts. > -Original Message- > From: mario nee [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 23, 2005 1:44 PM > To: Struts Users Mailing List > Subject: jsp vs jstl in Math > > Hello, > > if i use jstl for Math operation i write this > > > if i use struts

Re: another newbie

2005-06-16 Thread Sunny
Paste your struts.xml. Seems you are missing some information in struts.xml Amin Mohd Sani wrote: Anyone using eclipse and jboss with struts? I'm getting this error as below : 12:30:48,329 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for ser vlet jsp threw exception javax.servl

RE: [HELP] tag can not write Japanese or Vietnamese

2005-04-12 Thread Sunny
Try this out: NOTE: Assuming browser locale is Japanese. -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 12:11 PM To: Struts Users Mailing List Subject: [HELP] tag can not write Japanese or Vietname

RE: [HELP] tag can not write Japanese or Vietnamese

2005-04-12 Thread Sunny
Try this out: NOTE: Assuming browser locale is Japanese. -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 12:11 PM To: Struts Users Mailing List Subject: [HELP] tag can not write Japanese or Vietname

Re: DB Connection Best practice

2004-12-23 Thread Sunny
Better practice would be delegating to a "handler" (application layer) class and let it return data in form of some bean and use that in action. In this way you'll be isolating Controller from Business model. uma.k wrote: Hi, I wanted to insert a record into the database or update a record in th

Re: NullPointerException

2004-12-23 Thread Sunny
Hey Uma, Kindly attach your logs when you face any exceptions. That'll really help in debugging. regards, Sunny. uma.k wrote: Hi, The solution is perfect. I forgot initialization. Now I dont get any error but nothing is displayed when the error is actually to be thrown. I get blank page a

Re: Problem with and HashMap

2004-12-23 Thread Sunny
Peter Neu wrote: Hello all, I have a problem with the tag. I need to iterate over a HashMap which stores wrapper objects(which include the actual data). A wrapper class has for example one attribute "velocity". As far as I know the only way to access such a HashMap is this method:

Re: Required help to name a worksheet in xls

2004-12-22 Thread Sunny
Are you using any wrapper classes for creating an Excel document.? [EMAIL PROTECTED] wrote: Hi, I have a problem regarding naming an excel when it is saved and have control to name the worksheet name in the excel. response.setContentType("application/vnd.ms-excel"); response.setHeader("Cont

Re: Required help to name a worksheet in xls

2004-12-22 Thread Sunny
look at this page ( search for "naming" ) http://www.mrexcel.com/td0007.html [EMAIL PROTECTED] wrote: Hi, I have a problem regarding naming an excel when it is saved and have control to name the worksheet name in the excel. response.setContentType("application/vnd.ms-excel"); response.setHe

Re: file upload problem

2004-12-19 Thread Sunny
JSP: <%@ taglib uri = "/WEB-INF/struts-html.tld" prefix = "html"%> <%@ taglib uri = "/WEB-INF/struts-bean.tld" prefix = "bean"%> <%@ taglib uri = "/WEB-INF/struts-logic.tld" prefix = "logic"%> Upload = struts-config.xml: == Actio

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Sunny
do some thing like this. ArticleForm: change the "keywords" to be a blank String instead of null private String keywords = ""; -- Action: execute ( ) method { ArticleForm articleForm = (ArticleForm) form; String kw = articleForm.getKeywords(); re

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Sunny
( no form submissions) and an action similar to testme.jsp hello your test is successful call the url with .do (testme.do) and paste the results. in this way we can know whether its the problem with struts itself or your page. rega

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-12 Thread Sunny
Are you able to Get other pages working? e.g. : login.do This kind of error comes *only* when ActionServlet itself is not initialised / not mapped. uma.k wrote: No, Nothing helped me. I still get that error and I cannot call Template.do as the tomcat gives error that the file is not found. --

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-12 Thread Sunny
Do following changes: your struts-config: your Template.jsp . uma.k wrote: Hi Bush, Its confusing me. How do I call an Action without the Template.jsp form being submitted? My Action and ActionForm are i web-inf/classes/articles folder. M

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-12 Thread Sunny
use http://localhost:8080/test/Template.do instead of http://localhost:8080/test/Template.jsp uma.k wrote: Hi Eddie, Are you saying that put a link to this jsp and pass this jsp through the controller? Buts its a simple jsp and it doesn't require any Actions. Any explanation on this please?

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-12 Thread Sunny
Hey thanks Eddie, I didnt think in this perspective. Cl, I need to think out of the box ;-) Eddie Bush wrote: In order to have a request properly setup, you need to be going through the controller. To go through the controller, you need to be viewing an action instead of a JSP page. Try i

Re: about logic tag

2004-12-12 Thread Sunny
Pramod wrote: I have a vector object in a jsp page. An ActionForm's two instances are stored in that vector. How can i display the values using bean & logic tag? - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-12 Thread Sunny
ModuleConfig is *NULL*. Seems struts is not able to load the module. Dakota Jack wrote: Check the code at the line 711 of FormTag and you will find what is wrong. Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-12 Thread Sunny
Try adding all the properties of your form some thing like regards, Sunny. uma.k wrote: Hi Sunny, This is my complete error message. Is this the one you are asking for? javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection at

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-12 Thread Sunny
I do suspect the initialization of ActionServlet, It would be better if you (uma) can paste your catalina logs regards, Sunny David G. Friedman wrote: Is that error at start-up or when you are invoking an action by going to a Struts *.do action through a URL? Regards, David

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-12 Thread Sunny
hi, Ensure that your are having your struts-config like the one below. And also please check your class path regards, Sunny http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";> uma.k wrote: Hello, I am new to Struts, my first application i

Re: html:errors and manual iterate

2004-12-12 Thread Sunny
can pass message = 'false' regards, Sunny. Erik Weber wrote: For reference, it looks like this: <%-- Display error message keyed under 'usernameError' if it exists --%> ${error}

Re: logic tag

2004-12-10 Thread Sunny
Pramod wrote: I have a bean object in the jsp page. How can i use the logic:iterate tag to producing the result? If the bean has a Collection say "collection" , you can do note: you should have a getter method for "collection" in the "bean", for e.g. getCollection() --

Re: Newbie question: listing files

2004-12-10 Thread Sunny
Brij Naald wrote: Hi, I want to list all the files in a directory. How do I start this? I assume I have to make an action: The action then creates an array of Strings (so String[]). and puts it in the request (so request.setAttribute("files",stringArray);) Then I have to make t

RE: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Desai, Sunny
BeanUtils.copyProperties() method does not work with date fields. One needs to copy it manually using DateFormatter ot something. To avoid garbage getting into date variable in domain object, one should name it other way. For example, if domain object has : Date paymentDate; you should rename the

Using Struts Web app with application context....

2004-05-24 Thread Desai, Sunny
ody help me into this if I'm missing something here. Maybe some settings of some sort? -Sunny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]