RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
I wasn't looking at the Source cos I am working through Eclipse and I don't think there is a way to lookup Source in Eclipse. So I manually generated WAR and tested in on IE. And surprising results For usage of onclick = '<%="return confirmationMessage(" + jsMessage + ")" %>' I saw oncl

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Frank W. Zammetti
When you say these suggestions didn't work, what is happening? What is in the generated HTML returned to the browser? Frank Chetan Pandey wrote: onclick = '<%="return confirmationMessage(" + jsMessage + ")" %>' Did not work. Chetan -Original Message- From: Puneet Lakhina [mailto:

RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
onclick = '<%="return confirmationMessage(" + jsMessage + ")" %>' Did not work. Chetan -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 2:18 PM To: Struts Users Mailing List Subject: Re: Setting a Variable in Javascript Functions parame

RE: Converting HTML content to PDF

2006-09-07 Thread Anjishnu Bandyopadhyay
Hi Frank, Thanks for your suggestion. My actual requirement is to display the print preview of the contents of the original page in the dynamically generated popup html page. For this, I am reading the contents of the parent page through "innerHTML" and outputting the contents in the popup

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Puneet Lakhina
Ok , I think I made a mistake here. This should actually be

Re: Converting HTML content to PDF

2006-09-07 Thread Frank W. Zammetti
Ah, your doing something even less typical :) There really is no easy way to do this... once your on the client, about the only way to generate a PDF would be if the user had Acrobat, or a suitable substitute available, one that exposes a print driver (i.e., Print to PDF functionality). Two

RE: Converting HTML content to PDF

2006-09-07 Thread MADISHETTY, ASHOK [AG-Contractor/8042]
Hi, Read the below link it may help you to convert HTML to PDF: http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html Thanks Ashok -Original Message- From: Anjishnu Bandyopadhyay [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 11:15 AM To: Struts Users Mailing Li

Re: How to access Static Data in jsp file

2006-09-07 Thread Puneet Lakhina
On 9/8/06, Ashish Vijaywargiya <[EMAIL PROTECTED]> wrote: 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.St

RE: Converting HTML content to PDF

2006-09-07 Thread Anjishnu Bandyopadhyay
Hi Frank, I am generating the HTML page from my JavaScript file through "document.writeln()"; I want to open this dynamically generated window in a PDF document. With best regards, Anjishnu. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Thursda

Re: Converting HTML content to PDF

2006-09-07 Thread Frank W. Zammetti
Hi, Setting the content type is not sufficient to generate a PDF... are you trying to output a PDF from an existing HTML file, or are you dynamically generating the HTML? You say you aren't using JSP, so I'm thinking your either forwarding to an HTML page, or generating it in your Action. W

Converting HTML content to PDF

2006-09-07 Thread Anjishnu Bandyopadhyay
Hi all, I am trying to programmatically convert an HTML file to pdf dynamically; by setting the content type. But, I am not being able to succeed. Any pointers regarding the same will be of much use. Please note that, I am not using a JSP here. (So that, I could be able to set the "content"

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

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

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 Java

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: > > > function confirmationMessage(message) > {

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: function confirmat

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: function confirmationMessage(message) { var agree = confirm(message); if (agree) return true ; else return false ; } -Original Message- Fr

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 <[E

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 ou

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 U

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 bec

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 valu

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 it?

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 applicat

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

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 er

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

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 p

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, an

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 wit

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.

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: Display files on server

2006-09-07 Thread Frank W. Zammetti
Dave Kennedy wrote: I need to write an FTP client to upload/download files from a server I've implemented StrutsFileUplaod and StrutsFileDownload from the Struts Wiki Then you aren't using FTP, right? Your using HTTP for uploads and downloads :) How can I retrieve and display a directory/

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 til

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: 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: http://jakarta.apache.org/ commons/dtds/validator_1_0.dtd"> In a DOCTYPE you should NEVER break

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" <[EM

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 n

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 mo

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 th

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. and use this variable in javascript. I suppose you are trying to pass a variable that you have in some scope in your jsp to your javascript function. Am not really sure the above sug

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 for

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: 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 real

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: 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 web

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 tag in > struts-config.xml: > > processorClass="org.apache.struts.tiles.TilesRequestProcessor"/> I've update my controller element in my struts-config to appear as above. > I think that the URL is wrong :-

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: 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 relate

Re: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread nirav bumia
Just pass the variable jsMessage(remove the quotes) i.e. 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 following manner Where jsmessage=

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 Where jsmessage= " Are you sure you want to delete?" Currently the Confirm-Box is printing "jmessage". How do I force it to print the contents of "jmessage". I also tried using retur

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 e

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 factory org.apache.naming.factory.BeanFactory

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: Then you are able to configure a connec

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 no

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

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 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 17:35:15:422 I

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 w

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: 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: [EMAI

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 2.I have used index.jsp as my LOGIN page. With the following code: <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ tagli

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.

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: user@struts.apach

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 2.I have used index.jsp as my LOGIN page. With the following code: <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ tagli

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 som

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 Puneet

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: [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",

[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", "2

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]> wr

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", StaticData.

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: 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 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 every

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) class.

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. What

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 struts-

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 sess

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 remo

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 > >

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 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 e

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 web

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 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

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 Maili

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 A

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 c

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: 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 ca

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

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 SIGNE

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 exa

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 Stri

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 that

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 > org.apache.struts.action.A

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 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/struts-

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 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: [EMAIL

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 PROTE

  1   2   >