Re: exception

2006-09-07 Thread Tom Jerry
There are no database operations. It is the simplest one. I am learning by example. ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd;

Re: exception

2006-09-07 Thread paz . periasamy
Are you sure that the Form Bean class is loaded within the Web App;lication. Id teh package correct: code.LoginForm??? Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software Engineer, HCL Australia Services Pty. Ltd. Off : +61-3-9618-4085 Mob : +61-0411-354-838

Re: exception

2006-09-07 Thread Tom Jerry
Yes. Both LoginAction.java and LoginForm.java are in code package. Please let me know if I have to send you the entire folder ? What you mean by this loaded within the Web Appilication. ??? On 9/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are you sure that the Form Bean class is

Re: exception

2006-09-07 Thread paz . periasamy
Is the class files under the folder WEBAPP\WEB-INF\classes??? Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software Engineer, HCL Australia Services Pty. Ltd. Off : +61-3-9618-4085 Mob : +61-0411-354-838 Tom Jerry [EMAIL PROTECTED] 07/09/2006 04:13 PM Please

Re: exception

2006-09-07 Thread Tom Jerry
since the package name is code, the .class files are found in WEB-INF/classes/code folder. On 9/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is the class files under the folder WEBAPP\WEB-INF\classes??? Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software

Re: How to access Static Data in jsp file

2006-09-07 Thread Ashish Vijaywargiya
Thx for the reply puz. I changed as you said. and kept the values in pageContext and i also converted the member variable to public static. % request.setAttribute(hours, StaticData.hours); request.setAttribute(minutes, StaticData.minutes); % But in the combo box it is not populating the

Re: How to access Static Data in jsp file

2006-09-07 Thread paz . periasamy
The object should be Collection object... not just simple String array Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software Engineer, HCL Australia Services Pty. Ltd. Off : +61-3-9618-4085 Mob : +61-0411-354-838 Ashish Vijaywargiya [EMAIL PROTECTED] 07/09/2006

RE: exception

2006-09-07 Thread David Friedman
Are you certain your code.LoginForm class extends org.apache.struts.action.ActionForm? That could asily explain the problem. Then again you could get an exact reason by naming the specific Struts 1.2.X version you are using (it doesn't appear to be 1.2.7). Then you could check the svn tag for

Re: exception

2006-09-07 Thread Tom Jerry
I am using Struts 1.2.9 On 9/7/06, David Friedman [EMAIL PROTECTED] wrote: Are you certain your code.LoginForm class extends org.apache.struts.action.ActionForm? That could asily explain the problem. Then again you could get an exact reason by naming the specific Struts 1.2.X version you are

Several action in a jsp

2006-09-07 Thread Marcello Savino
In a struts jsp files can I have more form with different action defined ? I mean something like that ?xml version=1.0 encoding=UTF-8 ? %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib

Re: Sharing variables between Tiles

2006-09-07 Thread Antonio Petrelli
Gupta, Rahul ha scritto: Hi, I have a page with three tiles. Is there a way to share a variable between these tiles? AFAIK you cannot do it, anyway you can store your variable in request scope and access it with JSP tags. HTH Antonio

Re: Several action in a jsp

2006-09-07 Thread Manfred Wolff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcello! Of course you can. But only the values of the special form will be submitted and transport via the request. Otherwise you have to collect the values via javascript. Manfred Struts goes mobile. See http://www.strutsme.org Marcello

RE: exception

2006-09-07 Thread David Friedman
212 is in method createActionForm: obj = formBeanClass().newInstance(); So newInstance() isn't working. Can you show the declaration line of your code.LoginForm class? i.e. public class ... extends ActionForm ... ? Regards, David -Original Message- From: Tom Jerry [mailto:[EMAIL

Re: Several action in a jsp

2006-09-07 Thread Antonio Petrelli
Marcello Savino ha scritto: In a struts jsp files can I have more form with different action defined ? Absolutely yes, but why do you ask? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: Sharing variables between Tiles

2006-09-07 Thread David Friedman
I think I once did it but you have to put each variable inside each section. It make the config look very redundant. I probably got it from the Demoulas (spelling?) PDF. I think I used it once ages ago and no, I don't have the sample anymore. It was too cumbersome in my opinion. Regards, David

Re: Several action in a jsp

2006-09-07 Thread Michael Jouravlev
Of course you can. On 9/7/06, Marcello Savino [EMAIL PROTECTED] wrote: In a struts jsp files can I have more form with different action defined ? I mean something like that ?xml version=1.0 encoding=UTF-8 ? %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@

Re: exception

2006-09-07 Thread Tom Jerry
I am certain that my code.LoginForm class extends org.apache.struts.action.ActionForm On 9/7/06, Tom Jerry [EMAIL PROTECTED] wrote: I am using Struts 1.2.9 On 9/7/06, David Friedman [EMAIL PROTECTED] wrote: Are you certain your code.LoginForm class extends

Re: configuring tiles with struts 1.2.9

2006-09-07 Thread Antonio Petrelli
Darren Hall ha scritto: When attempt to view http://localhost/flc through a browser I get a 404 error. What did I do wrong?? I think that the URL is wrong :-) If you configured your webapp in as the ROOT webapp, then you can access that action at: http://localhost/flc.do (I supposed

Re: exception

2006-09-07 Thread Tom Jerry
package code; import org.apache.struts.action.ActionForm; public class LoginForm extends ActionForm { private String login; private String password; public String getLogin() { return login; } public void setLogin(String login) { this.login = login; } public

RE: [HELP][S2] spring configuration of hibernate

2006-09-07 Thread David Friedman
I do things a little differently in my spring 2.0 + hibernate3.2.0.cr2 config (and it sure looks like you are using a spring 2.0 release candidate to get the destroy-method attribute). Just note that my someDAO name of class example.MyHibernateDAOImpl extends HibernateDAOSupport and implements

R: Several action in a jsp

2006-09-07 Thread Marcello Savino
You mean I cannot, for instance, populate fields in the form2 after acquiring data from form1 ? -Messaggio originale- Da: Manfred Wolff [mailto:[EMAIL PROTECTED] Inviato: giovedì 7 settembre 2006 9.18 A: Struts Users Mailing List Oggetto: Re: Several action in a jsp -BEGIN PGP

Re: exception

2006-09-07 Thread Gareth Evans
Just out of interest, where have you put the struts.jar file? in /WEB-INF/lib? Tom Jerry wrote: package code; import org.apache.struts.action.ActionForm; public class LoginForm extends ActionForm { private String login; private String password; public String getLogin() { return

Re: R: Several action in a jsp

2006-09-07 Thread Manfred Wolff
Thats a html feature. Only the values of the submitted form will be transported in the request. And only those values, that are transported in the request, can be populated from the struts framework. Manfred Struts goes mobile. See http://www.strutsme.org Marcello Savino wrote: You mean I

RE: Several action in a jsp

2006-09-07 Thread David Friedman
Yes you can populate one form with data from another form. Assuming both forms already exist in some scope add the attribute name=someBeanName and it will take the property from that bean. That allows you to have form1 use fields pulled from beanA, beanB, it's own form, and more. I've used it

Re: exception

2006-09-07 Thread Tom Jerry
yes !!! Both servlet-api.jar and struts.jar are in WEB-INF/lib folder. Then I added these 2 jar files to the build path of that folder. On 9/7/06, Gareth Evans [EMAIL PROTECTED] wrote: Just out of interest, where have you put the struts.jar file? in /WEB-INF/lib? Tom Jerry wrote: package

RE: exception

2006-09-07 Thread David Friedman
Since we're picking your code apart... In your struts-config.xml you shouldn't need to specify the controller as a TilesRequestProcessor if you have the plugIn specified. I recommend you comment the TilesRequestProcessor line out. See: http://struts.apache.org/1.2.x/userGuide/configuration.html

R: Several action in a jsp

2006-09-07 Thread Marcello Savino
I want to populate data in the form 2 after acquiring data from form1 Before start coding, i would like to be sure i'm doing the right think. That's the reason -Messaggio originale- Da: Antonio Petrelli [mailto:[EMAIL PROTECTED] Inviato: giovedì 7 settembre 2006 9.22 A: Struts Users

Re: exception

2006-09-07 Thread Tom Jerry
I commented them. Still the same error comes. :(:( whatelse would be the other reasons ? On 9/7/06, David Friedman [EMAIL PROTECTED] wrote: Since we're picking your code apart... In your struts-config.xml you shouldn't need to specify the controller as a TilesRequestProcessor if you have the

removing jsessionid from the URL

2006-09-07 Thread sunil virmani
Hi , I want to remove the jsessionid attached with URL . Can you please tell me how can i confiure the same. Presently i am using apache tomcat server , can you please tell me is there any way to configure the same. Regards, Sunil Virmani

RE: exception

2006-09-07 Thread David Friedman
Double check your struts-config.xml file to ensure there are no extra characters in the form name or anywhere else. Retype them if you have to. Have you tried running the examples just to make sure everything will work normally in your application server? Additionally, what is the name of the

Re: removing jsessionid from the URL

2006-09-07 Thread Antonio Petrelli
sunil virmani ha scritto: I want to remove the jsessionid attached with URL . Can you please tell me how can i confiure the same. Presently i am using apache tomcat server , can you please tell me is there any way to configure the same. The jsessionid attribute is put when cookies are not

Re: exception

2006-09-07 Thread Tom Jerry
The struts-config.xml is correct. I have already tried sample applications before, and it works well with this application server (Weblogic). The url is http://localhost:7001/registeruser It can also be http://localhost:7001/registeruser/index.jsp Either way, the same error comes :( On 9/7/06,

Re: removing jsessionid from the URL

2006-09-07 Thread Jorge Martín Cuervo
Hi all, can i change the jsessionid name? is it mandatory to use jsessionid name to store the id? thanks to all. El jue, 07 de 09 de 2006 a las 10:24, Antonio Petrelli escribió: sunil virmani ha scritto: I want to remove the jsessionid attached with URL . Can you please tell me how

Re: removing jsessionid from the URL

2006-09-07 Thread sunil virmani
Hi Antonio, Thanks for your quick reply. I agree with you if cookies are disabled then URL rewriting will be used. 1. Is there any way to hide the jsession id attribute. Regards, Sunil Virmani On 9/7/06, Antonio Petrelli [EMAIL PROTECTED] wrote: sunil virmani ha scritto: I want to remove

Re: removing jsessionid from the URL

2006-09-07 Thread sunil virmani
Hi Antonio, Thanks for your quick reply. I agree with you if cookies are disabled then URL rewriting will be used. But Is there any way to hide the jsession id attribute? It is my client requirement or i have to handle the session management using cookie. Can you provide me the link for the

Re: exception

2006-09-07 Thread fausto mancini
The problem is not within the formbean... The web container is not able to find the Action (LoginAction) class... Please make sure you have a compiled class (LoginAction.class) under WEB-INF/classes/code folder in your production environment... On Thu, 7 Sep 2006, Tom Jerry wrote: The

Re: removing jsessionid from the URL

2006-09-07 Thread Antonio Petrelli
sunil virmani ha scritto: But Is there any way to hide the jsession id attribute? If you don't mind if the first page has the jsessionid attribute, you have simply to enable cookies in your browser. It is my client requirement or i have to handle the session management using cookie.

Re: exception

2006-09-07 Thread Tom Jerry
LoginAction.class is definitely present in WEB-INF/classes/code folder. It is referenced in struts-config.xml as code.LoginAction. On 9/7/06, fausto mancini [EMAIL PROTECTED] wrote: The problem is not within the formbean... The web container is not able to find the Action (LoginAction)

Re: exception

2006-09-07 Thread fausto mancini
Ok; I suggest to double check all paths again, classes, libs, pages... (I do this every time something goes wrong and I can't find the cause...); Your code is ok... also you configuration files are ok. I'm 100% sure of this because I've used your code to make test on my server instance and

Re: exception

2006-09-07 Thread Tom Jerry
I sent the same folder to my friend's system just now... and to my astonishment, output came :( what is wrong with my system ??? Will there be something wrong with Eclipse itself ??? On 9/7/06, fausto mancini [EMAIL PROTECTED] wrote: Ok; I suggest to double check all paths again,

Re: exception

2006-09-07 Thread Antonio Petrelli
Tom Jerry ha scritto: I sent the same folder to my friend's system just now... and to my astonishment, output came :( what is wrong with my system ??? Will there be something wrong with Eclipse itself ??? In a previous post you wrote that you put servlet-api.jar in WEB-INF/lib,

Re: How to access Static Data in jsp file

2006-09-07 Thread Puneet Lakhina
On 9/7/06, Ashish Vijaywargiya [EMAIL PROTECTED] wrote: Thx for the reply puz. I changed as you said. and kept the values in pageContext and i also converted the member variable to public static. % request.setAttribute(hours, StaticData.hours); request.setAttribute(minutes,

Re: exception

2006-09-07 Thread Tom Jerry
no..no.. no need just now, I run the same application using Tomcat WebServer and OUTPUT CAME !!! which means... definitely something is wrong with Weblogic :( How is exception of creating bean connected to weblogic ??? On 9/7/06, Antonio Petrelli [EMAIL PROTECTED]

[OT] Re: How to access Static Data in jsp file

2006-09-07 Thread Antonio Petrelli
Ashish Vijaywargiya ha scritto: Hello, I created an Interface as the code shown below : public interface StaticData { String[] minutes = { 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,

Re: [OT] Re: How to access Static Data in jsp file

2006-09-07 Thread Bart Busschots
Antonio Petrelli wrote: Ashish Vijaywargiya ha scritto: Hello, I created an Interface as the code shown below : public interface StaticData { String[] minutes = { 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,

Re: How to access Static Data in jsp file

2006-09-07 Thread Puneet Lakhina
On 9/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The object should be Collection object... not just simple String array Can someone please clarify on this, coz AFAIK it can be an array of Objects. -- Puneet

Re: How to set the property of a drop-down select list from an action class?

2006-09-07 Thread Tom Bednarz
Hi Puneet, Thanks for your input. The problem seems only to exist when using declarative programming in the struts-config.xml file using DynaValidatorActionForm. I now coded my onwn form class derived from ValidatorActionForm and everything works just fine with my datastructures. Tom

Re: exception

2006-09-07 Thread fausto mancini
Try to check your Application Server specific deployement decriptor files. Probably something is wrong oe missing. On Thu, 7 Sep 2006, Tom Jerry wrote: no..no.. no need just now, I run the same application using Tomcat WebServer and OUTPUT CAME !!! which means... definitely

Field check using DynaValidatorForm

2006-09-07 Thread leo mj
hi all, I want to do Dynamic field check using validator framework. I have done the following steps: 1.Add validator plugin in struts-config.xml plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames

RE: Field check using DynaValidatorForm

2006-09-07 Thread RoseIndia.net Help
Hi, Check this http://www.roseindia.net/struts/address_struts_validator.shtml above link shows you how to validate your form at client side. Regards Deepak Kumar -Original Message- From: leo mj [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 4:53 PM To:

about struts.

2006-09-07 Thread amit fulambarkar
How can i implement connection pooling in struts. What will be the server.xml? and what the things i would have to do.Give the code.

Field check using DynaValidatorForm

2006-09-07 Thread leo mj
hi all, I want to do Dynamic field check using validator framework. I have done the following steps: 1.Add validator plugin in struts-config.xml plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames

Re: about struts.

2006-09-07 Thread Jerome Gagner
WoW. On 9/6/06, amit fulambarkar [EMAIL PROTECTED] wrote: How can i implement connection pooling in struts. What will be the server.xml? and what the things i would have to do.Give the code. - To unsubscribe, e-mail: [EMAIL

RE: Field check using DynaValidatorForm

2006-09-07 Thread Samere, Adam J
You have validate=false in your action mapping. Change that to true. Adam -Original Message- From: leo mj [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 6:59 AM To: user@struts.apache.org Subject: Field check using DynaValidatorForm hi all, I want to do Dynamic field

Re: exception

2006-09-07 Thread Tom Jerry
like how ??? can u elaborately explain the steps... this will help me in understanding better what is actually deployed in the web application. On 9/7/06, fausto mancini [EMAIL PROTECTED] wrote: Try to check your Application Server specific deployement decriptor files. Probably something is

RE: Field check using DynaValidatorForm

2006-09-07 Thread leo mj
adam, Thanks... I have changed the validate=true but i am getting an exception at the plug-in part of struts-config.xml The exception is ValidatorPlug I org.apache.struts.validator.ValidatorPlugIn initResources Loading validation rules file from '/WEB-INF/validator-rules.xml' [9/7/06

RE: about struts.

2006-09-07 Thread RoseIndia.net Help
Hi, You can use apache DBCP for connection pooling. Apache DBCP is free and robust connection pooling software. Have a look at http://www.roseindia.net/struts/strutsdatasourcemanagerontomcat5.shtml. Tutorial shows you how to use DBCP with tomcat for your struts applications. Regards Deepak Kumar

How to set a form bean property of type HashMap in jsp

2006-09-07 Thread Vaneet Sharma
Can anybody tell me how to set a form bean property of type java.util.HashMap in a jsp page. Actually i am prepolulating this property in action and then forwarding to a jsp page. In this jsp page i need to again set this property ,so tht if there is some validation error then this HashMap is

Re: about struts.

2006-09-07 Thread Manfred Wolff
Hi. That's a little bit OT. The connection pool should be part of the tomcat configuration (or an other servlet engine). The server.xml may be a good part, better you place a xml into the $CATALINA_HOME/conf/Catalina/localhost folder such as: Context path=/example

RE: about struts.

2006-09-07 Thread Gaurav Jain
Add following code in server.xml to create a JNDI under context tag:- Here is the JNDI created for oracle DB Resource name=jdbc/XYZ auth=SERVLET type=oracle.jdbc.pool.OracleConnectionCacheImpl/ ResourceParams name=jdbc/XYZ parameter

Suneetha Kurakula is out of the office.

2006-09-07 Thread suneetha . kurakula
I will be out of the office starting 09/05/2006 and will not return until 09/11/2006. I will respond to your message when I return. The contents of this email are the property of the sender. If it was not addressed to you, you have no legal right to read it. If you think you received it in

Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
Hi All: I want to pass a Variable to my Javascript Function in the following manner html:link action=/delete onclick=return confirmationMessage('jsMessage') Where jsmessage= Are you sure you want to delete? Currently the Confirm-Box is printing jmessage. How do I force it

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread nirav bumia
Just pass the variable jsMessage(remove the quotes) i.e. html:link action=/delete onclick=return confirmationMessage(jsMessage) and use this variable in javascript. On 9/7/06, Chetan Pandey [EMAIL PROTECTED] wrote: Hi All: I want to pass a Variable to my Javascript Function in the

Re: exception

2006-09-07 Thread fausto mancini
I do not work with weblogic; each AS has its own deployement descriptors to configure enterprise applications modules (in your case the web application is one of this modules.) Take a look here http://edocs.bea.com/wls/docs81/programming/concepts.html#1050656 Perhaps you can ask in some

validator framework

2006-09-07 Thread Gomathi
Hai, Is the validator framework is only for dynavalidatorform? I am using actionform using validator framework.Its not working fine how? Kindly regards Gomes

RE: configuring tiles with struts 1.2.9

2006-09-07 Thread Darren Hall
Antonio, Thank you for your reply. And you forgoto the processorClass attribute in controller tag in struts-config.xml: controller pagePattern=$M$P inputForward=true processorClass=org.apache.struts.tiles.TilesRequestProcessor/ I've update my controller element in my struts-config to

Re: configuring tiles with struts 1.2.9

2006-09-07 Thread Antonio Petrelli
Darren Hall ha scritto: I think that the URL is wrong :-) If you configured your webapp in as the ROOT webapp, then you can access that action at: http://localhost/flc.do This application is not the root application, it is the flc application, located at the path /flc (under the

RE: configuring tiles with struts 1.2.9

2006-09-07 Thread Darren Hall
Interesting. Isn't the .do extension just a placeholder for .jsp or some other extension that is mapped in your struts-congif.xml? I was also under the impression (maybe incorrectly) that I could map a URI to a file (or in this case a tile definition) in my struts-config.xml and also associate

Re: configuring tiles with struts 1.2.9

2006-09-07 Thread Antonio Petrelli
Darren Hall ha scritto: Isn't the .do extension just a placeholder for .jsp or some other extension that is mapped in your struts-congif.xml? In fact you configure it in web.xml (when you configure the ActionServlet), and anyway the welcome file is treated as a different entity. I really

several parameter to LookupDispatchAction

2006-09-07 Thread Marcello Savino
Hi, i want to call a LookupDispatchAction passing more parameter I mean something like this public ActionForward myMethod( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)

Re: fmt:formatDate question...

2006-09-07 Thread Adam Gordon
Ok, after some heavy digging, here's the deal: Support for abbreviations is only kept around for compatibility for Java 1.1.x and apparently AEDT is not a standard time zone abbreviation (though I bet Sydney residents would beg to differ...). It appears that the preferred time zone string

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Puneet Lakhina
On 9/7/06, nirav bumia [EMAIL PROTECTED] wrote: Just pass the variable jsMessage(remove the quotes) i.e. html:link action=/delete onclick=return confirmationMessage(jsMessage) and use this variable in javascript. I suppose you are trying to pass a variable that you have in some scope in

Re: How to set a form bean property of type HashMap in jsp

2006-09-07 Thread Puneet Lakhina
On 9/7/06, Vaneet Sharma [EMAIL PROTECTED] wrote: Can anybody tell me how to set a form bean property of type java.util.HashMap in a jsp page. Actually i am prepolulating this property in action and then forwarding to a jsp page. In this jsp page i need to again set this property ,so tht if

Re: exception

2006-09-07 Thread Tom Jerry
Thanks a lot for ur help :):) I will look into it and get back to you :) On 9/7/06, fausto mancini [EMAIL PROTECTED] wrote: I do not work with weblogic; each AS has its own deployement descriptors to configure enterprise applications modules (in your case the web application is one of this

conditional required in struts validator

2006-09-07 Thread fea jabi
Have a Drop down and an input field. When user selects Type 1 from drop down only then the input field is required. otherwise it's not a required field. Looking at the validator guide in struts maybe I have to create a new validator rule which should check if drop down value Type 1. But not

RE: RE: [HELP][S2] spring configuration of hibernate

2006-09-07 Thread Garner Shawn
What is all this hibernate.c3p0 stuff and where can I find documentation on what to use? Where can I find the spring-hibernate3 examples at? Last I knew the props were just suppose to be prefixed with hibernate. Thanks, Shawn -- Forwarded message -- From: David Friedman [EMAIL

RE: Field check using DynaValidatorForm

2006-09-07 Thread David Friedman
From the note about the MalFormURL Exception I would initially guess you started the header DOCTYPE in the file incorrectly. You gave a 6 line entry from your validation.xml file split like so: !DOCTYPE form-validation PUBLIC -//Apache Software Foundation// DTD Commons Validator Rules

Display files on server

2006-09-07 Thread Dave Kennedy
I need to write an FTP client to upload/download files from a server I've implemented StrutsFileUplaod and StrutsFileDownload from the Struts Wiki How can I retrieve and display a directory/file list of the server? Does anyone have a Struts example which displays a list of directories and files?

RE: configuring tiles with struts 1.2.9

2006-09-07 Thread Darren Hall
Ok, maybe I'm approaching this from the wrong direction. In my web.xml, I have an ActionServlet called front-controller mapped to /flc. Anything with the /flc URI will get routed to the front-controller. Additionally my welcome-file-list specifies index.jsp as the default page. I've set up tiles

RE: configuring tiles with struts 1.2.9

2006-09-07 Thread David Friedman
Since everything looks in order then you are missing something key in a log file. Do you have your regular Tomcat log entries for this webapp's startup as well a any error logs. Can you zero them out then start Tomcat and post them to us? Regards, David

RE: configuring tiles with struts 1.2.9

2006-09-07 Thread Darren Hall
Do you have your regular Tomcat log entries for this webapp's startup as well a any error logs. Can you zero them out then start Tomcat and post them to us? Not sure what you mean by regular entries, David. I have my application's log files set to DEBUG level, so there's a lot in there. I

RE: configuring tiles with struts 1.2.9

2006-09-07 Thread Darren Hall
*sigh* Found the problem. It helps when your action mapping isn't inside a comment block. =P Thanks for the help. -Original Message- From: Darren Hall [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 2:54 PM To: 'Struts Users Mailing List' Subject: RE: configuring tiles

Re: configuring tiles with struts 1.2.9

2006-09-07 Thread Frank W. Zammetti
Don't feel bad, I did the same thing last week... staring for about ten minutes at a bit of JavaScript, unable to figure out why a particular AJAX call didn't seem to be firing... because it was commented out! As Carlos Mencia would say... dee-dee-dee!! Frank (And yes, it was color-coded,

Re: [HELP][S2] spring configuration of hibernate

2006-09-07 Thread Ted Husted
With Struts 2, something to keep in mind is that it already uses Spring under the covers. There should already be a Spring 1.2.8 listener included the default web.xml. Generally, you can just put applicationContext.xml in the WEB-INF and have at it. Using Hibernate with Struts 2 shouldn't be a

Re: How to access Static Data in jsp file

2006-09-07 Thread Ashish Vijaywargiya
Hi Puneet, Thx for the reply. I think if you have the facility to import classes then you should use the import statement at the top of JSP file.That's what I did in my case. Like this : %@ page import=java.util.*, com.exporder.web.StaticData % and then as simple as I used is shown

File I/O with Struts

2006-09-07 Thread Asad Habib
I am trying to read from a file using a utility class that I invoke from an action. However, my application is unable to find the file and a java.io.FileNotFoundException is thrown. I have tried placing the file in /WEB-INF/classes as well as the root directory of the application however the

Re: validator framework

2006-09-07 Thread Laurie Harper
Gomathi wrote: Hai, Is the validator framework is only for dynavalidatorform? I am using actionform using validator framework.Its not working fine how? You need to derive your form beans from ValidatorActionForm, not just ActionForm. DynaValidatorForm extends ValidatorForm, so that should be

Re: File I/O with Struts

2006-09-07 Thread Laurie Harper
Asad Habib wrote: I am trying to read from a file using a utility class that I invoke from an action. However, my application is unable to find the file and a java.io.FileNotFoundException is thrown. I have tried placing the file in /WEB-INF/classes as well as the root directory of the

Re: Validator FRamework

2006-09-07 Thread Laurie Harper
sheetal wrote: Thanks for the help.. Yesterday I tried and it worked... But the problem now is that its message string is not coming... I had made an entry for it in applicationresoUrces.properties... BUT STILL IT'S UNABLE TO PICK IT FROM THERE.. What message string? How are you specifying

Re: conditional required in struts validator

2006-09-07 Thread Laurie Harper
fea jabi wrote: Have a Drop down and an input field. When user selects Type 1 from drop down only then the input field is required. otherwise it's not a required field. Looking at the validator guide in struts maybe I have to create a new validator rule which should check if drop down value

Session scope ActionMessages

2006-09-07 Thread Kevin Maeer
Hi, I'm using ActionMessages stored in the session to display messages on a page and everything works splendidly except that the messages never get removed from the session so every time the user re-enters the page old messages get redisplayed. After a bit of digging around, this appears to be

RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
Hi Puneet: None of the suggestions worked. I even tried onclick =returnconfirmationMessage(%=jsMessage%) And other combinations with no help. Thanks. Chetan -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 11:13 PM To: Struts

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Frank W. Zammetti
Is the value of jsMessage a string with quotes around it? I'm assuming it's a string value, maybe it isn't, but if it is, you'll need quotes around it, and single quotes at that since its within a quoted event handler. Did you look at the generated source to see if your expected value was

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread 皮苗
Is jsMessage a java variable or a javascript variable? If it's a java variable and you want to pass its value to the javascript function, I think onclick=return confirmationMessage('%=jsMessage%'); will work. The quotes inside the parentheses shouldn't be omitted. 2006/9/8, Chetan Pandey [EMAIL

RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
Doing what you suggested results in a Confirm Box with Text = %=jsMessage% Is something wrong with my JS function. Here it is: script type=text/javascript function confirmationMessage(message) { var agree = confirm(message); if (agree) return true ; else return false ; }

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread 皮苗
What if you replace the html:link tag with a anchor tag of the standard html tags? Just for a try. 2006/9/8, Chetan Pandey [EMAIL PROTECTED]: Doing what you suggested results in a Confirm Box with Text = %=jsMessage% Is something wrong with my JS function. Here it is: script

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Frank W. Zammetti
Then your JSP expression is not being evaluated... this *is* in a JSP, right?? Frank Chetan Pandey wrote: Doing what you suggested results in a Confirm Box with Text = %=jsMessage% Is something wrong with my JS function. Here it is: script type=text/javascript function

RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
Yes it is a JSP Page. I am printing %=jsMessage% also for debugging purposes and it prints correctly. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 11:47 AM To: Struts Users Mailing List Subject: Re: Setting a Variable in

Re: File I/O with Struts

2006-09-07 Thread Asad Habib
Hi Laurie. Actually, I am not using any method to determine the path of the file. Should I be doing that? In general, where should one place files used for I/O within the WAR structure? Thanks for your help. - Asad On Thu, 7 Sep 2006, Laurie Harper wrote: Asad Habib wrote: I am trying to

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Frank W. Zammetti
Chetan Pandey wrote: Yes it is a JSP Page. Ok, that's good at least :) I am printing %=jsMessage% also for debugging purposes and it prints correctly. The only way for you to see a confirmation popup with the text %=jsMessage% in it is if that expression isn't being evaluated, because

  1   2   >