RE: bean exception when using weblogic and NOT tomcat

2006-09-08 Thread David Friedman
Not really. There are various messages on the internet about certain (usually older) versions of Weblogic's classloader having problems with .war and .ear deployments. I've also found notes suggesting someone had this kind of problem but had the code duplicated into two jars so there was an unres

Re: bean exception when using weblogic and NOT tomcat

2006-09-08 Thread Tom Jerry
however dumb the question maybe... the output should come As per you said, I deployed a copy of tomcat's version into weblogic... still the same error. I deployed the folder as a exploded module and NOT as archived one. I am sorry if you think it is a dumb question. But think from my point of

RE: bean exception when using weblogic and NOT tomcat

2006-09-08 Thread David Friedman
Also, how are your classes deployed? In a .jar file or in /WEB-INF/classes/code/LoginForm.class? Regards, David -Original Message- From: Tom Jerry [mailto:[EMAIL PROTECTED] Sent: Saturday, September 09, 2006 2:18 AM To: Struts Users Mailing List Subject: bean exception when using weblogi

RE: bean exception when using weblogic and NOT tomcat

2006-09-08 Thread David Friedman
Dumb question: Have you delete everything in your weblogic copy and brought over a copy from your working Tomcat version of it? That would ensure 100% that there are no odd files in the weblogic version of your webapp. Regards, David -Original Message- From: Tom Jerry [mailto:[EMAIL PROT

bean exception when using weblogic and NOT tomcat

2006-09-08 Thread Tom Jerry
why do I get this error when using Weblogic??? org.apache.struts.util.RequestUtils createActionForm SEVERE: Error creating form bean of class code.LoginForm java.lang.NullPointerException No error is reported when deployed in Tomcat. The output comes !!! Anyone, please throw light on this :

Re: Double Execution of Struts Actions

2006-09-08 Thread Daniel Chacón Sánchez
O MY GOD!! This was the mistake: and the td doe´s not have a background!!! How can it be posible!!! The double submit problem is for html problems!!! You will ask how I can discover this yes... I cut all the code and put ir step by step again since I found th

Re: Double Execution of Struts Actions

2006-09-08 Thread Daniel Chacón Sánchez
Ok let me see 2006/9/8, David Durham <[EMAIL PROTECTED]>: Daniel Chacón Sánchez wrote: > thanks Frank and Juan Pablo, > > Ok let me explain better (by the way, sorry for my english...) > > > Yes Juan Pablo i have this javascript: > > function *cambiarAction*(formulario, action){ > formulario.a

Re: Double Execution of Struts Actions

2006-09-08 Thread David Durham
Daniel Chacón Sánchez wrote: thanks Frank and Juan Pablo, Ok let me explain better (by the way, sorry for my english...) Yes Juan Pablo i have this javascript: function *cambiarAction*(formulario, action){ formulario.action = action; formulario.submit(); return false; } But not i don´t ca

Re: question in html select and html option, and logic iterate

2006-09-08 Thread Wendy Smoak
On 9/8/06, Vishal <[EMAIL PROTECTED]> wrote: I am stumped with something which i thought would not take that long and I would appreciate any help i can get from you all. I am pasting below the code. What does the corresponding action mapping in struts-config.xml look like?

Re: Double Execution of Struts Actions

2006-09-08 Thread Daniel Chacón Sánchez
thanks Frank and Juan Pablo, Ok let me explain better (by the way, sorry for my english...) Yes Juan Pablo i have this javascript: function *cambiarAction*(formulario, action){ formulario.action = action; formulario.submit(); return false; } But not i don´t call it on a

question in html select and html option, and logic iterate

2006-09-08 Thread Vishal
Hi, I am stumped with something which i thought would not take that long and I would appreciate any help i can get from you all. I am pasting below the code. org.act.rsp.util.Utils.java - public class Utils { private Map passwordQuest

RE: Double Execution of Struts Actions

2006-09-08 Thread Juan Pablo
Daniel, may be you are doing this: Function yourFunction(){ //your code here form.submit(); } ... ... ... ... ... ... So when you click BLABLABLA the form will be submitted two times; the first because your clicking a submit button and the second when the function yourFunction()

Re: Double Execution of Struts Actions

2006-09-08 Thread Frank W. Zammetti
Hi Daniel, This is most usually a result of some Javascript executing that causes the form submission, while the usual form submission occurs as well... any chance your doing something like that? If not, my first suggestion would be to fire up Firefox, and install Firebug if you don't have i

Re: Converting HTML content to PDF

2006-09-08 Thread Frank W. Zammetti
Do you mean you want to generate the PDF client-side, to get around the no Java requirement of your client? Just want to understand what your looking for before I comment :) Frank Martin Gainty wrote: Frank/David- I'm looking at the same sort of idea where an ajax control is desired which w

Double Execution of Struts Actions

2006-09-08 Thread Daniel Chacón Sánchez
*Double Execution of Struts Actions* -- I'm having trouble figuring out some strange behavior,some actions are executed *twice* on every submission. The app works fine, but my logs show that the first execution is the 'real' one. But there is also a log of another cal

text/pdf

2006-09-08 Thread Martin Gainty
This is a followup to Franks posting earlier today- Following along this most excellent tutorial located at http://java.sun.com/javaee/javaserverfaces/ajax/tutorial.jsp I didnt see PhaseListener supporting mimetype: "text/pdf" Is this on a nice to have or todo list? Thanks, Martin - **

Re: Problem while deploying on Weblogic

2006-09-08 Thread Laurie Harper
Asthana, Rahul wrote: Hi All, I am trying to deploy a struts 1.2.4 application on WebLogic Server 8.1 SP3. The application deploys correctly on tomcat.The exception I am getting on Weblogic is this- Parsing of JSP File '/admin.jsp' failed: /admin.jsp(3): Error in using tag library uri='/WEB-IN

Re: Session scope ActionMessages

2006-09-08 Thread Laurie Harper
Kevin Maeer wrote: 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, t

Re: File I/O with Struts

2006-09-08 Thread Laurie Harper
Unless the file is at an already known, absolute location, you need some way to determine the correct path to it. If it's part of your WAR, and the WAR could have been deployed anywhere (according to where the container is installed, etc.) then you will need a way to figure out the correct path

Re: Converting HTML content to PDF

2006-09-08 Thread Martin Gainty
Frank/David- I'm looking at the same sort of idea where an ajax control is desired which will either build out a pdf from xml or build out a pdf from text I have this working fine with FOP from a servlet but the client is *java shy* so I'm looking to package it up and hide the 'gory details' in a

Re: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread Michael Jouravlev
From: http://www.raizlabs.com/blog/2006/08/explorations-in-firefox-ui.html "There are several problems with URL's/URI's and several ideas to address these problems. * URL's get too long making it difficult to copy/paste * URL's get used to pass form data (that users don't usually need or underst

Re: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread Frank W. Zammetti
I know, they're so passe, aren't they?!? LOL (hehe, not sure how to put the e with the tick over it in an eMail!) Frank Monkeyden wrote: yeah, I overlooked those pesky slashes. who needs 'em? :) On 9/7/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: But again, the URL you show here is NO

Re: Converting HTML content to PDF

2006-09-08 Thread Frank W. Zammetti
It does look cool, but it doesn't look like it would (easily) solve the problem at hand... this is a stand-alone tool (unless I missed the API that you can feed a stream to and get a PDF out)... he could write the HTML to a temp file and shell out to this, then read the file back and output to

Re: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread Monkeyden
yeah, I overlooked those pesky slashes. who needs 'em? :) On 9/7/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: But again, the URL you show here is NOT valid... if your just making a typo, then OK, but http:localhost is a malformed URL... it needs to be http://localhost (the rest after that

Re: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread Monkeyden
Then the answer depends on how you have your app configured. Post the and snippets, from web.xml. On 9/8/06, liner_zhao <[EMAIL PROTECTED]> wrote: no typing error, my context path is C:tomcat/struts_project/x.html, the file is stored in the path http:localhost:8080/struts_project/x.html,

Re: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread Frank W. Zammetti
But again, the URL you show here is NOT valid... if your just making a typo, then OK, but http:localhost is a malformed URL... it needs to be http://localhost (the rest after that looks fine). Frank liner_zhao wrote: no typing error, my context path is C:tomcat/struts_project/x.html, the fil

RE: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread liner_zhao
no typing error, my context path is C:tomcat/struts_project/x.html, the file is stored in the path http:localhost:8080/struts_project/x.html, is not displayed. David Friedman-2 wrote: > > Normally a person maps *.do as the extension for a Struts servlet so it > will > not interfere wit

RE: Converting HTML content to PDF

2006-09-08 Thread David Friedman
Too bad you don't have $69 USD because http://www.easysw.com/htmldoc looks promising. Too bad iText doesn't have anything like that yet. Not unless you switch to assembling the pages in iText then use the PDF Write or HTML Write off that in the last minute. Regards, David -

RE: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread David Friedman
Normally a person maps *.do as the extension for a Struts servlet so it will not interfere with the display of regular files. What are all of your mappings for the webapp with the "/struts_project" context path. Also, you list .html files in your example urls but your next line states a .htm (not

Vector in FormBean

2006-09-08 Thread Vikas Phonsa
Hi Everybody, I'm using Struts 1.2. On my JSP, I have two buttons: Generate Report and Print Report. On the click of the "Generate Report", I need to generate a variable length table on the JSP using data from a database and on the click of "Print Report", I need to take the data in the

Re: How to validate an ip address

2006-09-08 Thread Monkeyden
As a minimum requirement for this board, and all others, the original poster should state his/her terms. Personally, I'm here to answer (and occasionally ask) questions, not to extract questions. On 9/8/06, David Friedman <[EMAIL PROTECTED]> wrote: > BTW, does anyone know a regular expression

RE: [friday] Re: Geronimo ??

2006-09-08 Thread David Friedman
I started to wonder "why did David write that" when I realized, hey it is Friday. On a serious note, if you do not understand the statements made on the front page of each project then your grasp of Java may need some refreshing. For example, the front page of Tomcat lists "...is the servlet cont

RE: How to validate an ip address

2006-09-08 Thread David Friedman
> BTW, does anyone know a regular expression to validate an IP address? You could use a search engine... And look what comes up - A page with a few different IP matching regex(es) on the first page: http://www.regular-expressions.info/examples.html As for the other poster, you can use the regex

[friday] Re: Geronimo ??

2006-09-08 Thread David Durham
A. Lotfi wrote: Hi, I have a simple question, what's the difference between Tomcat and Geronimo ? Think you misspelled TomKat, a 'celebrity couple portmanteau' for Tom Cruise and Katie Holmes. http://en.wikipedia.org/wiki/Tomcat Geronimo himself was a Bedonkohe Apache. http://en.wiki

Re: [HELP][Struts 2] problem initializing hibernate in spring xml file

2006-09-08 Thread David Durham
This is a mysql related issue. Garner Shawn wrote: ERROR main org.hibernate.tool.hbm2ddl.SchemaExport - Access denied for user: '[EMAIL PROTECTED]' to database 'agejsoft' ERROR main org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: create table products (product_id integer not null auto_in

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

2006-09-08 Thread David Friedman
Hibernate C3P0 is (or used to be) the default connection pooling mechanism for Hibernate. I believe it is auto detected unless you specify another connection pool in your hibernate.cfg.xml or hibernate.properties files. The C3P0 project can be found at http://c3p0.sourceforge.net and these links b

Re: Converting HTML content to PDF

2006-09-08 Thread Frank W. Zammetti
Ok, I understand the requirement... Seems like a lot of trouble to go through to solve it, but I understand, if that's what the client says to do, you do it. However, I don't see any good way to do it... Hmm... if I remember correctly, filters fire AFTER a JSP is interpreted, if you set it up

Re: How to validate an ip address

2006-09-08 Thread Monkeyden
But to validate it for what? Syntax? Validity? Connectivity? Network legality? On 9/8/06, Guido García Bernardo <[EMAIL PROTECTED]> wrote: BTW, does anyone know a regular expression to validate an IP address? I think this is what Pankaj is looking for, isn't it ? Thank you. Pankaj Gupta

Re: How to access in ActionClass

2006-09-08 Thread leo mj
robert, I guess you are mentioning the way to access ApplicationResources.properties... Correct me if i am wrong... Or is it a way to access struts-config.xml elements??? Regards, Leo Robert Harrison <[EMAIL PROTECTED]> wrote: Leo, Hope I understood the question. If so, th

Re: How to validate an ip address

2006-09-08 Thread Guido García Bernardo
BTW, does anyone know a regular expression to validate an IP address? I think this is what Pankaj is looking for, isn't it ? Thank you. Pankaj Gupta escribió: hi, please tell me how can i validate an ip address. Validation needs to eb both client side as well server side. regards --

Re: how to display a series of new generated html files

2006-09-08 Thread Frank W. Zammetti
Any file or directory under WEB-INF is not accessible to the outside world, as per the servlet spec. So that's the first problem, you won't be able to get this to work in any case. Second, if the URL you show here is accurate, the error message is telling you the problem: the URL is malformed

Geronimo ??

2006-09-08 Thread A. Lotfi
Hi, I have a simple question, what's the difference between Tomcat and Geronimo ? thanks - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.

[OT?]AJAX How can I do a Google Personalized Home kind of page... if OT where I can find mailing list on AJAX the subject?

2006-09-08 Thread David Gagnon
Hi all, I was wondering if there is a javascript/AJAX libraries or example that allow me to do a page like google Personalized Home http://www.google.ca/ig%3Fhl%3Den&sig=__o-KrRDBI3nbRElKzYEMqfOl3_t0=> page (see top right corner http://www.google.ca/). I need it to be compatible with IE and

Problem while deploying on Weblogic

2006-09-08 Thread Asthana, Rahul
Hi All, I am trying to deploy a struts 1.2.4 application on WebLogic Server 8.1 SP3. The application deploys correctly on tomcat.The exception I am getting on Weblogic is this- Parsing of JSP File '/admin.jsp' failed: /admin.jsp(3): Error in using tag library uri='/WEB-INF/struts-html.tld' pref

[HELP][Struts 2] problem initializing hibernate in spring xml file

2006-09-08 Thread Garner Shawn
ERROR main org.hibernate.tool.hbm2ddl.SchemaExport - Access denied for user: '[EMAIL PROTECTED]' to database 'agejsoft' ERROR main org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: create table products (product_id integer not null auto_increment, product_name varchar(255), product_desc varc

Re: How to validate an ip address

2006-09-08 Thread Monkeyden
Even if this was on topic, no one would know what you're talking about. In any case, read the spec. http://www.w3.org/Protocols/rfc2616/rfc2616.html On 9/8/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote: hi, please tell me how can i validate an ip address. Validation needs to eb both client side

response.setContentType("text/html; charset=utf-8")

2006-09-08 Thread Raghuveer
>From the source examples jakarta-struts-1.1-src\jakarta-struts-1.1-src\src\upload\org\apache\struts\w ebapp\upload What does the use of response.setContentType("text/html; charset=utf-8"); --- /this line is here for when the input page is upload-utf8.js

How to validate an ip address

2006-09-08 Thread Pankaj Gupta
hi, please tell me how can i validate an ip address. Validation needs to eb both client side as well server side. regards

Re: How to access in ActionClass

2006-09-08 Thread Robert Harrison
Leo, Hope I understood the question. If so, this: ResourceBundle resource = ResourceBundle.getBundle ("nameOfYourResourceBundle"); You can then access the bundle using its keys: Properties properties = new Properties(); properties.put("yourVariableName",resource.getString("bundleKey")); Bob On

Re: Action will be processed two times

2006-09-08 Thread Martin Gainty
It may be attributed to the fact that you have a submit and action both submitting to the same action- We could get a better picture If we could see the code Viel Gluck, Martin -- * This email message and any files transmitted wi

validating an array object

2006-09-08 Thread Pankaj Gupta
hi, i have an array object in my Action Form which i display on the jsp page using iterate. I want to validate those fields using struts validator framework as "required field" & "integer". What should i write in validation.xml to achieve the same? regards, Bhasker

Died with html:link

2006-09-08 Thread Francisco Exposito Aguilera
Hi, I have a jsp page where I show a table with some fields of a session collection (listUsers). In every row of the table I want to call a new jsp page in order to show all fields. value='${lee.lastName}'/> value='${lee.name}'/> action="searchUser.do?parametro=edi

why an arbitrary html page can not be displayed in struts

2006-09-08 Thread liner_zhao
in a normal servlert project, an arbitrary html page can be dsplayed, when i click on the link http:localhost:8080/servlet_project/x.html but in struts project it can not be dipayed, if when i click on the link http:localhost:8080/struts_project/x.html, although the x.htm file exists in the

How to access in ActionClass

2006-09-08 Thread leo mj
hi all, Anyone knows how to access parameter in struts-config.xml through Action class??? other than using XML reader class.is there any feature in struts framework to do so That is i need to modify the parameter value based on some logic in Action class. Regards, Leo

RE: Exception

2006-09-08 Thread rajeshKota
Hi Antonio, It working fine now.. Thanks for the help. Regards, Rajesh.Kota -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 2:52 PM To: Struts Users Mailing List Subject: Re: Exception rajeshKota ha scritto: > 2006-09-08 14:43

how to display a series of new generated html files

2006-09-08 Thread liner_zhao
hello, everyone, i am new for struts. maybe someone can help me, thx in adwance. in my struts action a series of html files are generated in a dictionary in struts, like (WEB_INF/config/project/a.html...z.html), i want to display their name in a new page with Url, http:localhost:8080/.../WE

[OT] Re: Forward to the same page

2006-09-08 Thread Antonio Petrelli
Manfred Wolff ha scritto: hi antonio, It wasn't me that asked the question, thank you anyway :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Setting a Variable in Javascript Functions parameter

2006-09-08 Thread Puneet Lakhina
On 9/8/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: Problem Resolved. When I set jsMessage in the following manner: <% String jsMessage = (String) "\'" + request.getAttribute("jsMessage") + "\'"; %> By providing the single-quotes to jsMessage it is evaluated as 'Are you sure you want to delet

Re: Forward to the same page

2006-09-08 Thread Manfred Wolff
hi antonio, Try http://www.manfred-wolff.de/struts/articles/HowTo-Back.html. In this solution you can go back and stay where you are for language switching. Manfred Struts goes mobile. See http://www.strutsme.org leo mj wrote: > hi antonio, > > > It can be done by using ActionForwards.Also

Re: Setting a Variable in Javascript Functions parameter

2006-09-08 Thread Puneet Lakhina
On 9/8/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: 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 conf

Re: Exception

2006-09-08 Thread Antonio Petrelli
rajeshKota ha scritto: 2006-09-08 14:43:42 - LoadOnStartupInterceptor: cannot load servlet name: action - java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet It's Jakarta Commons Digester... If you find other similar exceptions, simply follow the pattern :-) Ciao Antonio

RE: Exception

2006-09-08 Thread rajeshKota
Hi Antonio, I checked it, now its giving this error, 2006-09-08 14:43:42 - LoadOnStartupInterceptor: cannot load servlet name: action - java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Clas

RE: Exception

2006-09-08 Thread rajeshKota
Hi Antonio, No, I dint put it. You want me to put that jar in application lib directory and check.? Regards, Rajesh.Kota -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 2:32 PM To: Struts Users Mailing List Subject: Re: Exception

RE: Forward to the same page

2006-09-08 Thread leo mj
hi antonio, It can be done by using ActionForwards.Also go tru internatinalization in struts for displaying langauage : http://www.allapplabs.com/struts/struts_internationalization.htm in the action class use ActionForward forward=new ActionForward(); if(chk whther the language combo box

Re: Exception

2006-09-08 Thread Antonio Petrelli
rajeshKota ha scritto: - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter Have you got Jakarta Commons BeanUtils JAR file in /WEB-INF/lib? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

RE: Exception

2006-09-08 Thread rajeshKota
Hi Leo, Thanks for the replay, I have check it. It is there...and my struts.jar path is, jakarta-tomcat-3.3.2\webapps\strutsShop\WEB-INF\lib Regards, Rajesh.Kota -Original Message- From: leo mj [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 2:18 PM To: Struts Users Maili

Re: deletion of browser cache

2006-09-08 Thread leo mj
Restart the server and chk 1 more time whether the view changes [EMAIL PROTECTED] wrote: Gomathi, Is this a statement or are you asking any help from us? Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software Engineer, HCL Australia Services Pty. Ltd. Off : +61-3-

Re: Exception

2006-09-08 Thread leo mj
hi rajesh, chk in web.xml whther the following is there action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml Also chk the build path whther struts.jar exist Regards, Leo rajeshKota <[EMAIL PROTECTED]>

RE: Forward to the same page

2006-09-08 Thread Artem Zhmurov
What about using JavaScript? Try this: Changing location function changeLanguage(lang){ var location = window.location.href; if(location.indexOf("?") == -1){ location += "?lang="; location += lang; wind

RE: Setting a Variable in Javascript Functions parameter

2006-09-08 Thread Chetan Pandey
Problem Resolved. When I set jsMessage in the following manner: <% String jsMessage = (String) "\'" + request.getAttribute("jsMessage") + "\'"; %> By providing the single-quotes to jsMessage it is evaluated as 'Are you sure you want to delete' Previously jsMesage was being evaluated as Are you

Re: deletion of browser cache

2006-09-08 Thread paz . periasamy
Gomathi, Is this a statement or are you asking any help from us? 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 "Gomathi" <[EMAIL PROTECTED]> 08/09/2006 05:04 PM Please

Exception

2006-09-08 Thread rajeshKota
Hi all, I am new to struts, and I did all the necessary configuration things, I am using tomcat 3.3.2 And struts 1.2.9 I am getting this error if I start tomcat. 2006-09-08 12:13:15 - LoadOnStartupInterceptor: cannot load servlet name: action - java.lang.NoClassDefFoundError: org/apache/commons/

deletion of browser cache

2006-09-08 Thread Gomathi
Hai, whenever i am insert new image i am displaying the image in view .But we doent have any problem until we change the image.when we change the existing image into new image ,the new image is not displayed in view.When we make refresh we can able to newly updated image thanks and advan