yogi maheshnath

Ranch Hand
+ Follow
since Jan 07, 2008
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by yogi maheshnath


I am using apache commons file upload and getting following error:-
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
servlet code

jsp code


when i write

It returns Ljava.lang.Object

Please help
I m getting classcastException in hibernate subquery.I am using Hibernate 3.2.2

Please help
I am using struts1.1,JDK 1.5,Tomcat 5.5
I have created Resource file for Hindi Language by native2ascii tool in UTF-8 format.It converts resource file into


Filter class

web.xml code for filter

13 years ago
I am using struts 1.1,there is images folder for all the images in my project.
when I am using below code,image is displaying in google chrome,but not in mozilla or
if i use " <table background="../images/image2486.gif">" ,it works in IE.

So,to get rid of above problem i have define context-param in web.xml with Variable Site and given value in web.xml
an then used follwoing code,but still problem is there

Please help me in solving this Problem
13 years ago
I want to upload files on server and create directories dynamically according to unique client_name.Here is my code:-

Its Showing cannot find the sepecified path,as i want create directories in upload folder on my server.Please help to solve this.
13 years ago

siva np wrote:Sir,

I have one doubt regardding alfresco.

I think that Alfresco tool is used for content management system.

Are you able to develop application.

thanks & regards,

Siva NP

Dear Siva,
I know that Alfresco tool is used for content management system and i also know struts. I was asking can we use struts with Alfresco for developing any Application(by integrating alfresco in Java IDE). I am 110% able to develop Application.

13 years ago
Can we use Alfresco for struts Development. Is alfresco supports struts.
13 years ago

Originally posted by Paul Clapham:
If you look at the XML document, you will see it has a blank before the prolog. At least, the version you posted does. That's what the error message is about.

As you mentioned there is a blank before the prolog.i didn't find anyone.
I come to know sometimes there are hex strings add up in starting of our xml.
I had used XVi32 hex editor to check the hex strings and i found FF FE in starting.which characters to use in Place of FF FE to fix it.

Pleas solve it.

XML file :-

JSP file:-

Following error is occuring:-
[Fatal Error] jstl::1:1: Content is not allowed in prolog.

Please solve it.

Thanks and Regards
Amit Oberoi

I have included xsu12.jar,xmlparserv2.jar,xdb.jar(oracle xml parsers) in my build path.I am using oracle 9i and MyEclipse IDE.
I have written following code:-
Welcome Emmanuel Bernard & John Griffin

Please tell me What are the differences between EJB 3.0 & Hibernate

Thanks and Regards
Amit Oberoi
I have written following code:--
But its giving following Exception though i have imported javax.mail.Authenticator :-
13 years ago
I am using struts 1.1 ,I want any action will be executed,if user has logged in the Application.So,i created ApplicationActionMapping class

and Struts-config.xml file

The following Exception is occuring:-
Parsing error processing resource path
java.lang.NoSuchMethodException: Bean has no property named loginRequired
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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.XML11Configuration.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:1548)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)
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:1029)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:687)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:284)
13 years ago
JSP code

Java Bean Code

when i use jsp code,following exception occurs,Please Explain
14 years ago