Raveendra Mutyala

Greenhorn
+ Follow
since Sep 10, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Raveendra Mutyala

hi friends ,
I had been working on Validation framework in struts framework. When i had created validation.xml and validation-rules.xml from the dtd schema available in the the WSAD which are as follows:

Document tag included in my validation.xml file is:
< !DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Struts Validation Configuration 1.1//EN" "validation_1_1.dtd" >

Document tag included in my validation-rules.xml is:
< !DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Struts Validator Rules Configuration 1.1//EN" "validator-rules_1_1.dtd" >

When i restarted the server it is displaying the following error.

[3/6/06 12:59:05:828 EST] 3e72bf8a ValidatorPlug E org.apache.struts.validator.ValidatorPlugIn TRAS0014I: The following exception was logged java.io.FileNotFoundException: C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\validator-rules_1_1.dtd (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:123)
at java.io.FileInputStream.<init>(FileInputStream.java:86)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:102)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:190)
at java.net.URL.openStream(URL.java:985)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:140)
at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:222)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:161)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1005)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:128)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
.
similarly for the validation.xml file also.

Can any one suggest the solution for the the above problem or can any body suggest me an alternative solution for this.

Awaiting for ur valuable replies..
Thanking you,
Yours True Friend,
Ravindra
14 years ago
hi friends ,
i am having a small problem related to struts ager tag. i had the following code written in to my page.

when i display it for the first time it is working properly. but when we try to refresh it , it is displaying the following error while the other pages are working as usual without displaying errors(about the session).
can any body tell me the solution to solve this problem.



i will be awaiting for ur valuable replies..
Thanking You,
From Ur True Friend(Ravi)
14 years ago
Thank You Very much .. for ur reply........
14 years ago
hi friends,
i had done an application related to struts in WSAD5.1.2 and wanted to run the same application on tomcat. so i had created a war file and deployed on tomcat. then it is raising and exception as follows:

Feb 3, 2006 2:22:51 PM org.apache.struts.action.ActionServlet handleConfigException
SEVERE: Parsing error processing resource path
java.net.MalformedURLException: Path WEB-INF/struts-config.xml does not start with a "/" character
at org.apache.catalina.core.ApplicationContext.getResource(ApplicationContext.java:522)
at org.apache.catalina.core.ApplicationContextFacade.getResource(ApplicationContextFacade.java:233)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1002)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1033)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3814)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4090)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:868)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:852)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:614)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:319)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:835)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:589)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:954)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:399)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1135)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:792)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2311)
at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394)


i had tried to solve it, but could not get the solution.

Awaiting for your valuable replies..
Thanking you,
From ur true friend..
14 years ago
hi friends,

i had been converting the html pages to struts i had been facing a problem that is, I can select(check) so many checkboxes and all are having the same name (as they belong to group) . i wanted to store all the checkboxes which are selected in the form into the form bean. if i had written a formbean it is just storing only the first check box which is being selected if i accept it with a string type setter method in the form bean.
how can i do this.



14 years ago

Originally posted by Scott Selikoff:
What are your import statements? It sounds like you're not using the correct String or Pattern class, as all Strings implement CharSequence interface.
import java.util.regex.*; is the only import statement i used in my program.

14 years ago
hi i am using Websphere studio application development 5.1.2 version .
it is giving error at p.matcher(input);

Error:
The method matcher(CharSequence) in the type Pattern is not applicable for the arguments (String)EmailValidation.java

so kindly can u suggest me the solution to solve this problem.
14 years ago
hi friends ,
can any one help me in solving the errors for validation email address using the code or any other code if other had u can send me if u like..

this code is there in http://java.sun.com/developer/technicalArticles/releases/1.4regex/
but it is not working..

14 years ago
hi ,
i had an html page which is submitted with values and due to errors we are redirecting the page back to the same html page with some warnings appended to it. i wanted to fill all the details which are correct in the previous request except the errors fields . how can we do that in struts or jsp.

Waiting for ur reply..
bye..
14 years ago
JSP
Connection conn= DriverManager.getConnection("jdbc dbc:sqlserver");
Statement st=conn.createStatement();
ResultSet rs=st.executeQuery("Select * from sysobjects");


in this, we know that Connection and Statements are Interface's , so how can the objects be created and referred by 'conn' and 'st' objects in the above example even though they are interfaces..
We know that for an interface only subclass objects can be referenced so what about the above case?...

the st.executeQuery() is just signature in the interface so,where is that methods functionality implemented...

Can some one help me in clarifing the doubt ..
i Will be very thankful to u if u help me about it...

Truly Friend ,
Awaiting for ur valuable replies..
14 years ago
Can any one tell me, How to call a garbage collector implicitly other than using System.gc();
15 years ago
In autoexec.bat please add the path
PATH=%PATH%;C:\JDK1.4.2\BIN;c:\jdk1.4.2;
please verify the path in which ur java is loaded and the drive in which it is loaded
15 years ago
String a="abc";
String b="abc";
String c= new String("abc");
String d= new String("abc");
if (a==b)
{System.out.println(" a and b are equal");
}
else System.out.println(" a and b are not equal");
if (b==c)
{System.out.println(" b and c are equal");
}
else System.out.println(" b and c are not equal");
if (c==d)
{System.out.println(" c and d are equal");
}
else System.out.println(" c and d are not equal");
if ("abc"=="abc")
{System.out.println(" abc and abc are equal");
}
else System.out.println(" abc and abc are not equal");

output:
a and b are equal
b and c are not equal
c and d are not equal
abc and abc are equal..
15 years ago