Cannt connect Struts + Tiles with mysql

2010-02-25 Thread abhishek jain
* value=*true* / /plug-in I get the error message: Can't get definitions factory from context. I know due to the datasource it cannot find the tiles defs file, but why? Can anyone help and give me some pointers, thanks -- Thanks and kind Regards, Abhishek jain

Re: Cannt connect Struts + Tiles with mysql

2010-02-25 Thread abhishek jain
On Thu, Feb 25, 2010 at 6:40 PM, Antonio Petrelli antonio.petre...@gmail.com wrote: 2010/2/25 abhishek jain abhishek.netj...@gmail.com: I get the error message: Can't get definitions factory from context. I know due to the datasource it cannot find the tiles defs file, but why? Because

Locale and custom variables

2010-03-03 Thread abhishek jain
System.out.println(getResources(request,id2)); after setting a locale and it do not work. Pl. help, -- Thanks and kind Regards, Abhishek jain

Re: Locale and custom variables

2010-03-04 Thread abhishek jain
On Thu, Mar 4, 2010 at 7:30 PM, Alex Rodriguez Lopez alo...@flordeutopia.pt wrote: Em 04-03-2010 05:49, abhishek jain escreveu: Hi friends, I have a few variables who have diff values depending on the locale / country. I do want to use a message-resources for storing the values of those

jsp out to a differnet outputstream

2010-03-04 Thread abhishek jain
important for me for the time. Pl. let me know thanks, -- Thanks and kind Regards, Abhishek jain

Re: jsp out to a differnet outputstream

2010-03-04 Thread abhishek jain
On Fri, Mar 5, 2010 at 11:05 AM, Dale Newfield d...@newfield.org wrote: abhishek jain wrote: I am not sure if it a direct struts question, if it is not pl pardon me and let me know, Maybe a filter in your web.xml? How are your pages put together? tiles? sitemesh? Since those

logic bean iterator

2010-03-05 Thread abhishek jain
me access some notes which can correct me, Pl. dont mind i have tried but cannt find a starter tutorial at this the closest i found was http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp and it does not solve my problem. -- Thanks and kind Regards, Abhishek jain

Re: jsp out to a differnet outputstream

2010-03-05 Thread abhishek jain
, Dale Newfield d...@newfield.org wrote: abhishek jain wrote: I am not sure if it a direct struts question, if it is not pl pardon me and let me know, Maybe a filter in your web.xml? How are your pages put together? tiles? sitemesh? Since those are already filters

Re: logic bean iterator

2010-03-05 Thread abhishek jain
On Fri, Mar 5, 2010 at 2:02 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am using struts 1 , and i am trying to fetch a list from database, (as a use case the students and marks ) i need to display that in the jsp page by itegrating, I can print via out.print() in jsp

How to deploy struts on tomcat

2010-03-10 Thread abhishek jain
), and is it ok to use ant,i am new to ant. Please advise, Thanks a lot. -- Thanks and kind Regards, Abhishek jain

Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-13 Thread abhishek jain
is mysql in my case, Pl. advice, what to do in to remove this error, I have searched net and could not find a sol. -- Thanks and kind Regards, Abhishek jain

Re: How to deploy struts on tomcat

2010-03-13 Thread abhishek jain
can use it there is nothing wrong with it. Best greetings, Pawel Wielgus. 2010/3/10, abhishek jain abhishek.netj...@gmail.com: Hi friends, I have developed a struts 1 application, i need to know what are the ways and means to deploy a struts application, if i just copy and paste

Re: Catching url for action not defined

2010-03-13 Thread abhishek jain
Hi, urlrewrite.xml did worked for me, thanks abhishek On Thu, Mar 11, 2010 at 7:17 PM, Brian Thompson elephant...@gmail.comwrote: Wildcard mapping should do the trick. See [1]. -Brian [1] - http://struts.apache.org/2.0.14/docs/action-configuration.html#ActionConfiguration-WildcardMethod

Re: How to deploy struts on tomcat

2010-03-13 Thread abhishek jain
-09740091638 girish.n...@gmail.com On Sat, Mar 13, 2010 at 4:59 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi Girish and Pawal, Thanks for the help, the copy and paste worked, the error i am getting is that the code works on :8080 port and not via apache, Some of the code

Re: Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-15 Thread abhishek jain
thanks abhishek On Sat, Mar 13, 2010 at 4:48 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends. I am using strurts 1 with mysql and is using the datasource in struts-config.xml. I am gettting the following errors in my log file, Cannot get a connection, pool error Timeout waiting

Re: Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-15 Thread abhishek jain
abhishek On Mon, Mar 15, 2010 at 11:44 AM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am still having the problem, here is the config in my struts-config.xml data-sources data-source type=*org.apache.commons.dbcp.BasicDataSource* set-property property=*driverClassName* value

SQL Injection

2010-03-18 Thread abhishek jain
-- Thanks and kind Regards, Abhishek jain

PHP in the same folder of struts 1

2010-05-25 Thread abhishek jain
hi friends, I am running struts 1.x and want to place the php code in the same domain as where i am already running struts. I cannt remove either struts or php. How can i do so. I am using apache + Tomcat 5.x thanks -- Thanks and kind Regards, Abhishek jain

Re: PHP in the same folder of struts 1

2010-05-26 Thread abhishek jain
Pl. reply On Tue, May 25, 2010 at 2:15 PM, abhishek jain abhishek.netj...@gmail.comwrote: hi friends, I am running struts 1.x and want to place the php code in the same domain as where i am already running struts. I cannt remove either struts or php. How can i do so. I am using apache

Re: PHP in the same folder of struts 1

2010-05-31 Thread abhishek jain
. Chris Pl. reply On Tue, May 25, 2010 at 2:15 PM, abhishek jain abhishek.netj...@gmail.comwrote: hi friends, I am running struts 1.x and want to place the php code in the same domain as where i am already running struts. I cannt remove either struts or php. How can i do so

How to test optimization of a application in struts 1.x

2010-05-31 Thread abhishek jain
graph, ie the query took x time and the code x time and so on, Also can i do caching in struts 1.x and may be zip the HTML before sending to browser, i am using Tomcat 5.x and mysql. pl. advice. -- Thanks and kind Regards, Abhishek jain

Re: Regular Expression Denial of Service Attacks and Defenses

2010-05-31 Thread abhishek jain
Hi Greg, just a doubt , on looking at first sight i dont understand what does the regex ^(\d+)+$ do additionally. As it should be equivalent to ^(\d+)$ I am more perlish (from perl) biased which says the regex is greedy and hence it will anyway to the maximum match, pl. clarify, thanks abhishek

Re: How to test optimization of a application in struts 1.x

2010-06-01 Thread abhishek jain
, minimize duplicate data, using normal forms, proper closing of db connections once used etc.. Let me know if you want other info Rupali On 5/31/2010 5:05 PM, abhishek jain wrote: Dear friends, I have recently developed an application in struts 1.x and i am thinking is there a way i can get

Re: How to test optimization of a application in struts 1.x

2010-06-02 Thread abhishek jain
if you ask for test.html, even if it doesn't exist on your server you should still see a good web page because the server sent you the gzipped copy. On 6/1/2010 12:08 PM, abhishek jain wrote: Hi, Ok,thanks, how can i zip and send every page from the website. to reduce the size of HTMLs

Two applications, one in a sub folder

2010-06-18 Thread abhishek jain
, Abhishek jain

Re: Two applications, one in a sub folder

2010-06-25 Thread abhishek jain
On Fri, Jun 18, 2010 at 3:08 PM, abhishek jain abhishek.netj...@gmail.comwrote: Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using

OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread abhishek jain
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) -- Thanks and kind Regards, Abhishek jain

Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread abhishek jain
On Fri, Jul 9, 2010 at 1:13 PM, Brian Thompson elephant...@gmail.comwrote: You could also adjust your eclipse.ini to give more memory to the JVM: -XX:PermSize=64M -XX:MaxPermSize=128M Add it to the --vmargs section of the file. -Brian thanks Brian, Where will i find eclipse.ini file, i

Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-12 Thread abhishek jain
Hi, How can i check how much memory is it currently consuming / using. thanks abhishek On Sun, Jul 11, 2010 at 6:34 AM, Martin Gainty mgai...@hotmail.com wrote: sounds as if class and method objects could possibly be missed by GC..try this for running under Jboss using Sun JVM (bin/run.conf)

Session error while loading an object

2010-07-13 Thread abhishek jain
) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3050) ... 7 more -- Thanks and kind Regards, Abhishek jain

Re: Session error while loading an object

2010-07-13 Thread abhishek jain
interface? If not, try modifying Customer to implement Serializable and see if the error still persists. /robert - Original Message - From: abhishek jain abhishek.netj...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 13, 2010 4:33 AM Subject

Datasource object in any class

2010-07-14 Thread abhishek jain
globally and i dont need to pass that explicitly in every method i use it. I am using struts 1.x and tomcat. Pl advice. -- Thanks and kind Regards, Abhishek jain

Re: Session error while loading an object

2010-07-14 Thread abhishek jain
2010/7/14 Paweł Wielgus poulw...@gmail.com Hi all, You get this error every time when tomcat tries to save someone's session and object of class com.cart.Customer is in it. Like Robert said, add Serializable to com.cart.Customer and the problem will go away. Best greetings, Paweł Wielgus.

Dispatch action calling a function multiple times depending on browser

2010-07-16 Thread abhishek jain
side browser can affect the server side coding. i am not sure what to inspect. Pl. advice -- Thanks and kind Regards, Abhishek jain

if else in XML via struts 1.2

2010-08-08 Thread abhishek jain
condition on the xml file, probably allowing making the xml file behave like jsp file. One solution is that i do some rule via urlrewrite / mod_rewrite which passes all request for that xml to a jsp page, but that dont seem to be a good sol to me. Pl. advice. -- Thanks and kind Regards, Abhishek jain

Hosting for Struts 1.2 tomcat

2010-08-09 Thread abhishek jain
hi, I need shared hosting for struts 1.2 on tomcat. Would anyone recommend one, also what is better VPS or shared hosting for this . I am looking for lowcost , good quality . Please advice. -- Thanks and kind Regards, Abhishek jain

EL not working in tomcat 5.5.28 works in myeclipse

2010-08-31 Thread abhishek jain
the web.xml to 2.4 from 2.5 etc. Pl. help. -- Thanks and kind Regards, Abhishek jain

Re: EL not working in tomcat 5.5.28 works in myeclipse

2010-08-31 Thread abhishek jain
(ClassLoader.java:316) ... 27 more and the application is not started. abhishek On Tue, Aug 31, 2010 at 8:44 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I have a website in struts 1.2 hosted on tomcat 5.5.x and it uses EL. It is not being evaluated, any suggestions

Re: EL not working in tomcat 5.5.28 works in myeclipse

2010-09-01 Thread abhishek jain
On Tue, Aug 31, 2010 at 9:01 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hey , I just realized i acidently placed el-api.jar in WEB-INF/lib folder. If i dont than i get the following exception: Aug 31, 2010 4:28:44 PM org.apache.catalina.core.StandardContext listenerStart SEVERE

Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-09-15 Thread abhishek jain
On Fri, Jul 9, 2010 at 6:10 PM, Brian Thompson elephant...@gmail.comwrote: Oh, I misunderstood. I thought you were seeing this during development, not when running the app on a remote server. In this case, you will need to update the Catalina startup script. These pages have more info:

Optimize webserver performance

2010-10-09 Thread abhishek jain
applications in the commons folder of tomcat, so that the same file is not loaded individually for each project, Pl advice. -- Thanks and kind Regards, Abhishek jain

Urgent: how to run htaccess on tomcat

2010-10-22 Thread abhishek jain
Hi friends, I am in middle of urgent production issue. Can some one help me how to allow .htaccess on tomcat i have a virtualhost on apache with tomcat installed. Apache 2.x tomcat 5.5.x struts 1.2 Pl. help asap. Thanks -- Thanks and kind Regards, Abhishek jain

[Commercial] Part time developer - Delhi / noida

2010-12-26 Thread abhishek jain
. -- Thanks and kind Regards, Abhishek jain

cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread abhishek jain
.util.DomHelper.parse(DomHelper.java:107) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:893) ... 21 more -- Thanks and kind Regards, Abhishek jain

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread abhishek jain
On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI mhm.s...@gmail.com wrote: Hi, May be you dont have well configure your application context. check your web.xml file best wishes !! 2011/2/8 abhishek jain abhishek.netj...@gmail.com Hi, I am running myeclipse(8.x) on windows. trying my

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread abhishek jain
, it looks for a file named struts-default in your classpath, so in your classes directory can you check if you have this file or not, another alternative, check your classpathconfiguration in your eclipse . 2011/2/8 abhishek jain abhishek.netj...@gmail.com On Tue, Feb 8, 2011 at 2:47 PM

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread abhishek jain
hi, I noticed if i remove the xerces-2.6.2.jar file and restart the server, it works fine, dont know why, Pl. advice the reason and will it have any affect on Hibernate thing in the project, thanks abhishek On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain abhishek.netj...@gmail.comwrote: hi

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-10 Thread abhishek jain
Jayathilake kusha...@gmail.comwrote: It seems there is another xml parser is conflicting. Check the lib folder of the tomcat, there should be another Xml parser there. Remove it, and replace the parser in your application. On 8 Feb 2011 17:38, abhishek jain abhishek.netj...@gmail.com wrote: hi

Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse

2011-02-10 Thread abhishek jain
and hibernate with tiles capabilities in myeclipse. I think some libraries default in Myeclipse are conflicting each other . thanks -- Thanks and kind Regards, Abhishek jain

Re: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse

2011-02-10 Thread abhishek jain
in Myeclipse are conflicting each other . thanks -- Thanks and kind Regards, Abhishek jain

urlrewrite and calling appropriate method on a url type index.action?type=productotherparam=abc

2011-02-11 Thread abhishek jain
?type=productotherparam=abc) call i mean what configuration will i use, pl. advice more specifically for the second ques. -- Thanks and kind Regards, Abhishek jain

error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
) org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381) -- Thanks and kind Regards, Abhishek jain

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
/2011 14.20, abhishek jain abhishek.netj...@gmail.com ha scritto: hi, I am running a simple search of a product via Hibernate on struts code, the code runs fine when i run via a function in public static void main when i run the same code via struts i get the following exception

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
depending on. Are you attempting to do dependency management manually?! Dave On Sat, Feb 12, 2011 at 9:32 AM, abhishek jain abhishek.netj...@gmail.com wrote: hi, I am using myeclipse , and using its own default classpath. I have two antlr-2.7.2.jar in Struts core libraries and antlr-2.7.6

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
On Sat, Feb 12, 2011 at 8:12 PM, Dave Newton davelnew...@gmail.com wrote: On Sat, Feb 12, 2011 at 9:39 AM, abhishek jain abhishek.netj...@gmail.com wrote: no, i am not that experienced in java to do dependency management manually, i just tried removing the library after the probelm just

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
On Sat, Feb 12, 2011 at 9:47 PM, Dave Newton davelnew...@gmail.com wrote: On Sat, Feb 12, 2011 at 10:58 AM, abhishek jain abhishek.netj...@gmail.com wrote: I am not doing any dependency management, i am just relying on myeclipse, what is the best way, I'm not sure; I haven't used

Exception in hibernate3

2011-02-24 Thread abhishek jain
.idle_test_period3000/property property name=current_session_context_classthread/property Pl. help me. I have used hibernate3 with myeclipse as the development environment, and am using mysql 5.x and centos (Linux) with Tomcat 5.x -- Thanks and kind Regards, Abhishek jain

Re: Exception in hibernate3

2011-02-28 Thread abhishek jain
xml and let me compare with mine.Actually Even though it look like Server error,its more to do with hibernate Please feel free to currect me if my assumption is wrong Many Thanks and Regards, Jerson -Original Message- From: abhishek jain [mailto:abhishek.netj

Re: Exception in hibernate3

2011-03-05 Thread abhishek jain
removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true / /Context On 1 March 2011 07:09, abhishek jain abhishek.netj...@gmail.com wrote: hi, this didnt solved, i created a file c3po.properties with the mentioned property and it didnt

Re: Exception in hibernate3

2011-03-06 Thread abhishek jain
to ask on a hibernate-related list probably. Dave On Mar 5, 2011 3:32 AM, abhishek jain abhishek.netj...@gmail.com wrote: hi, thanks for the mail, i tried this but the problem still persists, i added the context.xml file in META-INF and the database information was not being picked

Re: Exception in hibernate3

2011-03-09 Thread abhishek jain
://www.howtogeek.com/howto/database/monitor-all-sql-queries-in-mysql/ On Mon, Mar 7, 2011 at 12:34 AM, abhishek jain abhishek.netj...@gmail.com wrote: No, i havent setup logs, but apparently it is not running else there would have been no exception message. Hey, can you guide me to the correct

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread abhishek jain
. Dave On Mon, Mar 14, 2011 at 4:26 PM, abhishek jain abhishek.netj...@gmail.com wrote: Hi friends, I am on production and getting this error: can anyone help me solve, i am using hte hibernate 3, tomcat 5.5 , struts2, linux centos 5.x. java.lang.reflect.InvocationTargetException

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread abhishek jain
/reflect/InvocationTargetException.html - -chris On 3/14/2011 4:26 PM, abhishek jain wrote: Hi friends, I am on production and getting this error: can anyone help me solve, i am using hte hibernate 3, tomcat 5.5 , struts2, linux centos 5.x. java.lang.reflect.InvocationTargetException

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread abhishek jain
On Tue, Mar 15, 2011 at 2:46 AM, Dave Newton davelnew...@gmail.com wrote: On Mon, Mar 14, 2011 at 5:14 PM, abhishek jain abhishek.netj...@gmail.com wrote: Also i forgot to add , i dont see this error when running on test server, Also you forgot to add , when you get the error, dave hey

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-15 Thread abhishek jain
On Tue, Mar 15, 2011 at 9:49 AM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: It looks like that your action execution fails inside the method you defined for the action. You should look inside the invocation target exception (through the get cause method) in order to investigate

Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-01 Thread abhishek jain
executing tag: Attribute 'title' not found. Cannt understand why , pl. help. Thanks a lot . -- Thanks and kind Regards, Abhishek jain

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-04 Thread abhishek jain
, hence i couldnt understand the error. pl. help. thanks abhishek On Fri, Apr 1, 2011 at 3:10 PM, jlm...@gmail.com wrote: Try setting cascade='true' in the definition of the attribute title. Sent via BlackBerry from T-Mobile -Original Message- From: abhishek jain abhishek.netj

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-04 Thread abhishek jain
abhishek jain abhishek.netj...@gmail.com hi, It didnt worked , first the cascade=true was not recognized by my IDE (Myeclipse). Second on running, i got the following error: Caused by: org.xml.sax.SAXParseException: Attribute cascade must be declared for element type put-attribute

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-05 Thread abhishek jain
: you can see here, http://tiles.apache.org/framework/tutorial/advanced/nesting-extending.html 2011/4/4 abhishek jain abhishek.netj...@gmail.com Hi, I had already posted the relevant portion of hte tiles.xml file which is: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE tiles-definitions

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-08 Thread abhishek jain
hi, Someone help please tiles:getAsString name=title / works in the document where layoutstore.jsp but not in seo.jsp which is a file called in layoutstore.jsp. thanks abhishek On Tue, Apr 5, 2011 at 2:50 PM, abhishek jain abhishek.netj...@gmail.comwrote: hi, It didnt solved my problem, i am

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-08 Thread abhishek jain
, abhishek jain abhishek.netj...@gmail.com wrote: hi, Someone help please tiles:getAsString name=title / works in the document where layoutstore.jsp but not in seo.jsp which is a file called in layoutstore.jsp. thanks abhishek On Tue, Apr 5, 2011 at 2:50 PM, abhishek jain

Re: E-Commerce website using struts

2011-04-13 Thread abhishek jain
hi, even i will like to more of this, open source APIs to create a shopping cart or more such examples. thanks abhishek On Fri, Dec 31, 2010 at 2:46 PM, Amol Ghotankar ghotankaru...@gmail.comwrote: This is a good tool but its difficult to intergrate as it has its own UI many other components,