Exception raised while loading image in to application

2007-11-30 Thread vijay vijay
 i am loading the image from database(in  data base i used colom type
longraw)
in to my application...

in this image is loaded application sucessfully but i got this exception in
applet viewer.i don't understand why i am getting like this.



un.plugin.cache.DownloadException
 at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:178)
 at sun.plugin.cache.JarCache.get(JarCache.java:204)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(
CachedJarURLConnection.java:121)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(
CachedJarURLConnection.java:105)
 at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:858)
 at sun.misc.URLClassPath$JarLoader.(URLClassPath.java:813)
 at sun.misc.URLClassPath$3.rtJarLoader(URLClassPath.java:588)
 at sun.misc.URLClassPath$3.run(URLClassPath.java:519)
 at java.security.AccessController.doPrivileged(AccessController.java:242)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:508)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:473)
 at sun.misc.URLClassPath.getResource(URLClassPath.java:322)
 at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:959)
 at java.security.AccessController.doPrivileged(AccessController.java:275)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:487)
 at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:179)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:601)
 at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:151)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
 at java.lang.J9VMInternals.verifyImpl(Native Method)
 at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
 at java.lang.Class.newInstanceImpl(Native Method)
 at java.lang.Class.newInstance(Class.java:1243)
 at sun.applet.AppletPanel.createApplet(AppletPanel.java:776)
 at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1765)
 at sun.applet.AppletPanel.runLoader(AppletPanel.java:705)
 at sun.applet.AppletPanel.run(AppletPanel.java:368)
 at java.lang.Thread.run(Thread.java:799)
sun.plugin.cache.DownloadException
 at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:178)
 at sun.plugin.cache.JarCache.get(JarCache.java:204)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(
CachedJarURLConnection.java:121)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(
CachedJarURLConnection.java:105)
 at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:858)
 at sun.misc.URLClassPath$JarLoader.(URLClassPath.java:813)
 at sun.misc.URLClassPath$3.rtJarLoader(URLClassPath.java:588)
 at sun.misc.URLClassPath$3.run(URLClassPath.java:519)
 at java.security.AccessController.doPrivileged(AccessController.java:242)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:508)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:473)
 at sun.misc.URLClassPath.getResource(URLClassPath.java:322)
 at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:959)
 at java.security.AccessController.doPrivileged(AccessController.java:275)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:487)
 at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:179)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:601)
 at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:151)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
 at java.lang.J9VMInternals.verifyImpl(Native Method)
 at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
 at java.lang.Class.newInstanceImpl(Native Method)
 at java.lang.Class.newInstance(Class.java:1243)
 at sun.applet.AppletPanel.createApplet(AppletPanel.java:776)
 at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1765)
 at sun.applet.AppletPanel.runLoader(AppletPanel.java:705)
 at sun.applet.AppletPanel.run(AppletPanel.java:368)
 at java.lang.Thread.run(Thread.java:799)
sun.plugin.cache.DownloadException
 at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:178)
 at sun.plugin.cache.JarCache.get(JarCache.java:204)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(
CachedJarURLConnection.java:121)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(
CachedJarURLConnection.java:105)
 at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:858)
 at sun.misc.URLClassPath$JarLoader.(URLClassPath.java:813)
 at sun.misc.URLClassPath$3.rtJarLoader(URLClassPath.java:588)
 at sun.misc.URLClassPath$3.run(URLClassPath.java:519)
 at java.security.AccessController.doPrivileged(AccessController.java:242)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:508)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:473)
 at sun.misc.URLClassPath.getResource(URLClassPath.java:322)
 at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:959)
 at java.security.AccessController.doPrivileged(AccessController.java:275)
 at j

Re: Could not load class org.apache.struts2.s1.ActionFormValidationInterceptor

2007-11-26 Thread vijay vijay
Hi Nuwan,
   thanks for your suggestion.i have removed that from my lib still i
got the error not the same one.I found  my error in struts.xml there i have
not given my package name.once it is done it is starrted to work. i have one
query  from the day one 1) i use to get the error like error filter start
and 2) after exporting my project as a war file in webinf i am not getting
the jar files.i am doing this manually myself? these two are my issues
bugging me for a while

vijay


On 11/26/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> If your not using the strus1 pluging for you can remove the
> struts1-plugin-2.0.9.jar from your WEB-INF/lib directory
>
> Thanks,
>
> Nuwan
>
> vijay vijay wrote:
> > Hi
> >   i am getting the fallowing error when i try to run my program.
> >
> > """Could not load class
> > org.apache.struts2.s1.ActionFormValidationInterceptor . Perhaps it
> exists but
> > certain dependencies are not available? - interceptor -
> > jar:file:/C:/Tomcat%205.5/webapps/StrutsSample/WEB-INF/lib/struts2-
> > struts1-plugin-2.0.9.jar!/struts-plugin.xml:12:118 """ fallowed by many
> lines
> > at the end these are lines are displayed in tomcat logs
> >
> >  ... 32 more
> > Nov 26, 2007 3:21:01 PM org.apache.catalina.core.StandardContext start
> > SEVERE: Error filterStart
> > Nov 26, 2007 3:21:01 PM org.apache.catalina.core.StandardContext start
> > SEVERE: Context [/sessions] startup failed due to previous errors
> >
> > can any one help me. i am getting this error when i ever i try to run my
> new
> > program,when i export my project i don't get jar file in WEB-INF. i am
> > fallowing roseindia and i am new to this work env.can any one tell me
> why do
> > i get this kind of error.what is the solution for it.
> >
> > vijay
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Could not load class org.apache.struts2.s1.ActionFormValidationInterceptor

2007-11-26 Thread vijay vijay
Hi
  i am getting the fallowing error when i try to run my program.

"""Could not load class
org.apache.struts2.s1.ActionFormValidationInterceptor. Perhaps it exists but
certain dependencies are not available? - interceptor -
jar:file:/C:/Tomcat%205.5/webapps/StrutsSample/WEB-INF/lib/struts2-
struts1-plugin-2.0.9.jar!/struts-plugin.xml:12:118""" fallowed by many lines
at the end these are lines are displayed in tomcat logs

 ... 32 more
Nov 26, 2007 3:21:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Nov 26, 2007 3:21:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/sessions] startup failed due to previous errors

can any one help me. i am getting this error when i ever i try to run my new
program,when i export my project i don't get jar file in WEB-INF. i am
fallowing roseindia and i am new to this work env.can any one tell me why do
i get this kind of error.what is the solution for it.

vijay


Re: Having query on action chaining

2007-11-21 Thread vijay vijay
hi *Alexis ,*
*i am looking action chaining in struts 2, i have gone
through the page which is there in docs and observing the showcase also. but
i wanted to be more specific to this point even interseptors can you help
me?? *

**




On 11/21/07, Alexis Pigeon <[EMAIL PROTECTED]> wrote:
>
> Hi vijay,
>
> On 21/11/2007, vijay vijay <[EMAIL PROTECTED]> wrote:
> > thank you,
> > i have seen this iam looking for more
> links...
>
> http://www.google.com/search?hl=en&q=struts+action+chaining
>
> I don't mean to be rude, but that's the best we can offer if you are
> not more specific about what you are looking for...
>
> cheers,
> alexis
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Having query on action chaining

2007-11-21 Thread vijay vijay
thank you,
i have seen this iam looking for more links...

vijay


On 11/21/07, Omkar Patil <[EMAIL PROTECTED]> wrote:
>
>
> http://struts.apache.org/2.0.11/docs/action-chaining.html
>
>
> vijay vijay wrote:
> >
> > Hi,
> >  i am want to work on action chaining can any one give me links
> > for
> > it.
> >
> > vijay
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Having-query-on-action-chaining-tf4847957.html#a13873158
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Having query on action chaining

2007-11-20 Thread vijay vijay
Hi,
 i am want to work on action chaining can any one give me links for
it.

vijay


what about the concept of action forms in struts2

2007-11-20 Thread vijay vijay
Hi
do we have the concepts like dynavalidator form and other forms in
struts2 .

thnak you


Re: what abt actions in struts2.

2007-11-19 Thread vijay vijay
Thanks man for your reply but i have been fallowing that..

On 11/19/07, Deepak Kumar <[EMAIL PROTECTED]> wrote:
>
> Please check tutorial at http://www.roseindia.net/struts/struts2
>
> Thanks
>
> -Original Message-
> From: vijay vijay [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 5:58 PM
> To: Struts Users Mailing List
> Subject: what abt actions in struts2.
>
>
> Hi
>   what about actions in struts 2, earlier we have actios like dispatch
> action,lookup action,forward actions,includeactions  can i use them here
> too.
>
> what about action cahing?where do we use this concept.how far this
> usefull?
>
> can any one tell me.plz don't say look in to docs i have seen it there,
> but
> i could not undesstand it better way.
>
> thank you
> vijay
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


what abt actions in struts2.

2007-11-19 Thread vijay vijay
Hi
   what about actions in struts 2, earlier we have actios like dispatch
action,lookup action,forward actions,includeactions  can i use them here
too.

what about action cahing?where do we use this concept.how far this usefull?

can any one tell me.plz don't say look in to docs i have seen it there, but
i could not undesstand it better way.

thank you
vijay


Re: getting an error like this repetedly

2007-11-16 Thread vijay vijay
thank you,
 my problem has been rectified. i am using all the api's which
are given by the apache. i am not using this spring classes i have removed
that jar file from my lib.it is working fine.One more query is there nay
problem if i use strut2 with tomcat 6.0?

vijay


On 11/17/07, Omkar patil <[EMAIL PROTECTED]> wrote:
>
> Vijay,
>
> Looks like you are using the spring plugin, and the following snippet
> from the stacktrace clearly indicates that the spring classes are not
> available -
>
> java.lang.NoClassDefFoundError:
> org/springframework/context/ApplicationContextAware
>
> If you look at the spring plugin pom.xml, it declares dependency on the
> following spring jars -
>
> spring-beans 2.0.5
> spring-core 2.0.5
> spring-context 2.0.5
> spring-web 2.0.5
>
> If you are using maven, there should not be any problem of dependencies.
> But if you are doing it manually, then you'll need to add all these
> jar's to you lib.
>
> -Omkar
>
> vijay vijay wrote:
> > Hi all
> >  i am getting an error like fallowing way. i have downloded
> latest
> > version copied all the jars  still i am facing this p[roblem.i ma
> running on
> > tomcat5.5 and ide is eclipse.
> >
> > some one help me.pl
> >
> > Nov 17, 2007 10:58:08 AM
> org.apache.catalina.core.StandardContextfilterStart
> > SEVERE: Exception starting filter struts2
> > Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:
> > org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
> > jar:file:/C:/Tomcat%205.5/webapps/DbConect/WEB-INF/lib/struts2-
> > spring-plugin-2.0.11.jar!/struts-plugin.xml:30:132
> >  at
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register
> (
> > XmlConfigurationProvider.java:208)
> >  at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(
> > StrutsXmlConfigurationProvider.java:101)
> >  at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
> > DefaultConfiguration.java:131)
> >  at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration
> (
> > ConfigurationManager.java:52)
> >  at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
> > Dispatcher.java:395)
> >  at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
> >  at org.apache.struts2.dispatcher.FilterDispatcher.init(
> > FilterDispatcher.java:201)
> >  at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
> > ApplicationFilterConfig.java:221)
> >  at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
> > ApplicationFilterConfig.java:302)
> >  at org.apache.catalina.core.ApplicationFilterConfig.(
> > ApplicationFilterConfig.java:78)
> >  at org.apache.catalina.core.StandardContext.filterStart(
> > StandardContext.java:3635)
> >  at org.apache.catalina.core.StandardContext.start(StandardContext.java
> > :4222)
> >  at org.apache.catalina.core.ContainerBase.addChildInternal(
> > ContainerBase.java:760)
> >  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
> :740)
> >  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java
> :544)
> >  at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java
> :825)
> >  at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java
> :714)
> >  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
> :490)
> >  at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
> >  at org.apache.catalina.startup.HostConfig.lifecycleEvent(
> HostConfig.java
> > :293)
> >  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> > LifecycleSupport.java:120)
> >  at org.apache.catalina.core.ContainerBase.backgroundProcess(
> > ContainerBase.java:1306)
> >  at
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren
> > (ContainerBase.java:1570)
> >  at
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren
> > (ContainerBase.java:1579)
> >  at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
> > ContainerBase.java:1559)
> >  at java.lang.Thread.run(Unknown Source)
> > Caused by: java.lang.NoClassDefFoundError:
> > org/springframework/context/ApplicationContextAware
> >  at java.lang.ClassLoader.defineClass1(Native Method)
> >  at java.lang.ClassLoader.defineClass(Unknown Source)
> >  at java.security.SecureClassLoader.defineClass(Unknown Source)
> >  at org.apache.catalina.loader.W

getting an error like this repetedly

2007-11-16 Thread vijay vijay
Hi all
 i am getting an error like fallowing way. i have downloded latest
version copied all the jars  still i am facing this p[roblem.i ma running on
tomcat5.5 and ide is eclipse.

some one help me.pl

Nov 17, 2007 10:58:08 AM org.apache.catalina.core.StandardContextfilterStart
SEVERE: Exception starting filter struts2
Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:
org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
jar:file:/C:/Tomcat%205.5/webapps/DbConect/WEB-INF/lib/struts2-
spring-plugin-2.0.11.jar!/struts-plugin.xml:30:132
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(
XmlConfigurationProvider.java:208)
 at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(
StrutsXmlConfigurationProvider.java:101)
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
DefaultConfiguration.java:131)
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:52)
 at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
Dispatcher.java:395)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
 at org.apache.struts2.dispatcher.FilterDispatcher.init(
FilterDispatcher.java:201)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
ApplicationFilterConfig.java:221)
 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
ApplicationFilterConfig.java:302)
 at org.apache.catalina.core.ApplicationFilterConfig.(
ApplicationFilterConfig.java:78)
 at org.apache.catalina.core.StandardContext.filterStart(
StandardContext.java:3635)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4222)
 at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:760)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
 at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
 at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:293)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:120)
 at org.apache.catalina.core.ContainerBase.backgroundProcess(
ContainerBase.java:1306)
 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren
(ContainerBase.java:1570)
 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren
(ContainerBase.java:1579)
 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
ContainerBase.java:1559)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at org.apache.catalina.loader.WebappClassLoader.findClassInternal(
WebappClassLoader.java:1847)
 at org.apache.catalina.loader.WebappClassLoader.findClass(
WebappClassLoader.java:873)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1326)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1205)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at org.apache.catalina.loader.WebappClassLoader.findClassInternal(
WebappClassLoader.java:1847)
 at org.apache.catalina.loader.WebappClassLoader.findClass(
WebappClassLoader.java:873)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1326)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1205)
 at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(
ClassLoaderUtil.java:139)
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(
XmlConfigurationProvider.java:180)
 ... 25 more


Re: how can i get my servlet result to jsp page

2007-11-16 Thread vijay vijay
i am using strut2 only thats why i asked you i am not able proceed further

On 11/16/07, Thilo Ettelt <[EMAIL PROTECTED]> wrote:
>
> I forgot to ask are you using Struts 1 or 2?
>
> In any case you should define your action mappings in the struts.xml.
> There you will define the different jsp results for your action. I don't
> think you need the requestdispatcher for that?
>
>
> - Thilo
>
> vijay vijay wrote:
> > Hi i am having small requirement like i have to connect to db from db i
> have
> > select ted the emp table from there i need to show that result in my
> > jsp.ihave written java code like this below in action .here i am not
> > able to knw
> > how to proceed from here
> >
> > can u help me here
> >
> > *
> >
> > public* *class* DbConnect {
> >
> > String result=*null*,SUCCESS;
> >
> > *public* String execute()
> >
> > {
> >
> > *try*{
> >
> > Connection con;
> >
> > Class.*forName*("oracle.jdbc.driver.OracleDriver").newInstance();
> >
> > con=DriverManager.*getConnection*("jdbc:oracle:thin:@192.168.0.186
> > :1521:earchive","scott","tiger");
> >
> > Statement stmt=con.createStatement();
> >
> > ResultSet rs = stmt.executeQuery("select * from emp");
> >
> > *if*(rs.next())
> >
> > {
> >
> > System.*out*.println(rs.getString(1));
> >
> > System.*out*.println(rs.getString(2));
> >
> > System.*out*.println(rs.getString(3));
> >
> > System.*out*.println(rs.getString(4));
> >
> > result=SUCCESS;
> >
> > *return* result;
> >
> > }
> >
> > // RequestDispatcher
> > requestDispatcher=getServletContext().getRequestDispatcher("/test.jsp");
> >
> > //requestDispatcher.forward(request,response);
> >
> >  }
> >
> > *catch*(Exception e){
> >
> > e.printStackTrace();
> >
> > }
> >
> > *return* result;
> >
> >
> >
> > On 11/16/07, Thilo Ettelt <[EMAIL PROTECTED]> wrote:
> >
> >> sure, in your action method you can define:
> >>
> >> ValueStack stack = ActionContext.getContext().getValueStack();
> >>
> >> and then fill whatever object you have into the valuestack:
> >>
> >> String sample = "Hello World";
> >> stack.set("myIdentifier", sample);
> >>
> >> In your JSP you can use the s:property tag to display your String in
> >> this case:
> >>
> >> 
> >>
> >> you can put any ognl expression into the value part, read the docs for
> >> more info on ognl.
> >> for example you could have put an array onto the stack and call the
> >> object at index 5 by using:
> >>
> >> 
> >>
> >> You can also call methods like this method of a String object:
> >>
> >> 
> >>
> >>
> >> - Thilo
> >>
> >> vijay vijay wrote:
> >>
> >>> Hi can u give me some sample code to me
> >>>
> >>> On 11/16/07, Thilo Ettelt <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>> Access the ValueStack in your action, it allows you to store objects
> >>>>
> >> and
> >>
> >>>> you can retrieve them from your jsp. You might need to know about the
> >>>> ActionContext object accessable from your action.
> >>>>
> >>>> Read more from the docs :)
> >>>>
> >>>>
> >>>> - Thilo
> >>>>
> >>>> vijay vijay wrote:
> >>>>
> >>>>
> >>>>> Hi
> >>>>>i am writting a database connectionin action, here i wanted
> to
> >>>>>
> >>>>>
> >>>> put
> >>>>
> >>>>
> >>>>> tth result back in to a jsp page.
> >>>>> in jsp what i need to write
> >>>>>
> >>>>> any one help me here
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> -
> >>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


ServletActionContext can't be resolved here

2007-11-16 Thread vijay vijay
do i nedd to add any jar for this "ServletActionContext". any suggeestions


Re: how can i get my servlet result to jsp page

2007-11-16 Thread vijay vijay
Hi i am having small requirement like i have to connect to db from db i have
select ted the emp table from there i need to show that result in my
jsp.ihave written java code like this below in action .here i am not
able to knw
how to proceed from here

can u help me here

*

public* *class* DbConnect {

String result=*null*,SUCCESS;

*public* String execute()

{

*try*{

Connection con;

Class.*forName*("oracle.jdbc.driver.OracleDriver").newInstance();

con=DriverManager.*getConnection*("jdbc:oracle:thin:@192.168.0.186
:1521:earchive","scott","tiger");

Statement stmt=con.createStatement();

ResultSet rs = stmt.executeQuery("select * from emp");

*if*(rs.next())

{

System.*out*.println(rs.getString(1));

System.*out*.println(rs.getString(2));

System.*out*.println(rs.getString(3));

System.*out*.println(rs.getString(4));

result=SUCCESS;

*return* result;

}

// RequestDispatcher
requestDispatcher=getServletContext().getRequestDispatcher("/test.jsp");

//requestDispatcher.forward(request,response);

 }

*catch*(Exception e){

e.printStackTrace();

}

*return* result;



On 11/16/07, Thilo Ettelt <[EMAIL PROTECTED]> wrote:
>
> sure, in your action method you can define:
>
> ValueStack stack = ActionContext.getContext().getValueStack();
>
> and then fill whatever object you have into the valuestack:
>
> String sample = "Hello World";
> stack.set("myIdentifier", sample);
>
> In your JSP you can use the s:property tag to display your String in
> this case:
>
> 
>
> you can put any ognl expression into the value part, read the docs for
> more info on ognl.
> for example you could have put an array onto the stack and call the
> object at index 5 by using:
>
> 
>
> You can also call methods like this method of a String object:
>
> 
>
>
> - Thilo
>
> vijay vijay wrote:
> > Hi can u give me some sample code to me
> >
> > On 11/16/07, Thilo Ettelt <[EMAIL PROTECTED]> wrote:
> >
> >> Access the ValueStack in your action, it allows you to store objects
> and
> >> you can retrieve them from your jsp. You might need to know about the
> >> ActionContext object accessable from your action.
> >>
> >> Read more from the docs :)
> >>
> >>
> >> - Thilo
> >>
> >> vijay vijay wrote:
> >>
> >>> Hi
> >>>i am writting a database connectionin action, here i wanted to
> >>>
> >> put
> >>
> >>> tth result back in to a jsp page.
> >>> in jsp what i need to write
> >>>
> >>> any one help me here
> >>>
> >>>
> >>>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: how can i get my servlet result to jsp page

2007-11-16 Thread vijay vijay
Hi can u give me some sample code to me

On 11/16/07, Thilo Ettelt <[EMAIL PROTECTED]> wrote:
>
> Access the ValueStack in your action, it allows you to store objects and
> you can retrieve them from your jsp. You might need to know about the
> ActionContext object accessable from your action.
>
> Read more from the docs :)
>
>
> - Thilo
>
> vijay vijay wrote:
> > Hi
> >i am writting a database connectionin action, here i wanted to
> put
> > tth result back in to a jsp page.
> > in jsp what i need to write
> >
> > any one help me here
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


how can i get my servlet result to jsp page

2007-11-16 Thread vijay vijay
Hi
   i am writting a database connectionin action, here i wanted to put
tth result back in to a jsp page.
in jsp what i need to write

any one help me here


Re: Getting an erro like Exception starting filter struts2

2007-11-15 Thread vijay vijay
HI
 ACTALLY  i am using tomacat 6.0 ,it is working for tomcat 5.5 i have
not used any class path here


On 11/15/07, joey <[EMAIL PROTECTED]> wrote:
>
> check whether the xwork2.jar exists in your classpath
>
> On Nov 15, 2007 5:16 PM, vijay vijay <[EMAIL PROTECTED]> wrote:
> > Hi
> >  i am new to this struts 2.i am getting an error like fallowing can
> any
> > one help me why i am getting  like this.
> >
> > 15/11/2007 12:51:47 ã org.apache.catalina.core.StandardContextfilterStart
> > SEVERE: Exception starting filter struts2
> > Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory -
> > bean -
> > jar:file:/C:/Tomcat%206.0/webapps/struts2tutorial/WEB-INF/lib/struts2-
> > core-2.0.11.jar!/struts-default.xml:30:72
> >  at
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register
> (
> > XmlConfigurationProvider.java:209)
> >  at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(
> > StrutsXmlConfigurationProvider.java:101)
> >  at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
> > DefaultConfiguration.java:131)
> >  at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration
> (
> > ConfigurationManager.java:52)
> >  at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
> > Dispatcher.java:395)
> >  at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
> >  at org.apache.struts2.dispatcher.FilterDispatcher.init(
> > FilterDispatcher.java:201)
> >  at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
> > ApplicationFilterConfig.java:275)
> >  at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
> > ApplicationFilterConfig.java:397)
> >  at org.apache.catalina.core.ApplicationFilterConfig.(
> > ApplicationFilterConfig.java:108)
> >  at org.apache.catalina.core.StandardContext.filterStart(
> > StandardContext.java:3696)
> >  at org.apache.catalina.core.StandardContext.start(StandardContext.java
> > :4343)
> >  at org.apache.catalina.core.ContainerBase.addChildInternal(
> > ContainerBase.java:791)
> >  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
> :771)
> >  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java
> :525)
> >  at org.apache.catalina.startup.HostConfig.deployDirectory(
> HostConfig.java
> > :920)
> >  at org.apache.catalina.startup.HostConfig.deployDirectories(
> HostConfig.java
> > :883)
> >  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
> :492)
> >  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
> >  at org.apache.catalina.startup.HostConfig.lifecycleEvent(
> HostConfig.java
> > :311)
> >  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> > LifecycleSupport.java:117)
> >  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
> :1053)
> >  at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> >  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
> :1045)
> >  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
> :443)
> >  at org.apache.catalina.core.StandardService.start(StandardService.java
> :516)
> >  at org.apache.catalina.core.StandardServer.start(StandardServer.java
> :710)
> >  at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> >  at java.lang.reflect.Method.invoke(Unknown Source)
> >  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> >  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> > Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with
> the
> > name xwork has already been loaded by bean -
> > jar:file:/C:/Tomcat%206.0/lib/struts2-
> > core-2.0.11.jar!/struts-default.xml:30:72 - bean -
> > jar:file:/C:/Tomcat%206.0/webapps/struts2tutorial/WEB-INF/lib/struts2-
> > core-2.0.11.jar!/struts-default.xml:30:72
> >  at
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register
> (
> > XmlConfigurationProvider.java:194)
> >  ... 33 more
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Getting an erro like Exception starting filter struts2

2007-11-15 Thread vijay vijay
Hi
 i am new to this struts 2.i am getting an error like fallowing can any
one help me why i am getting  like this.

15/11/2007 12:51:47 ã org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts2
Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory -
bean -
jar:file:/C:/Tomcat%206.0/webapps/struts2tutorial/WEB-INF/lib/struts2-
core-2.0.11.jar!/struts-default.xml:30:72
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(
XmlConfigurationProvider.java:209)
 at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(
StrutsXmlConfigurationProvider.java:101)
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
DefaultConfiguration.java:131)
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:52)
 at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
Dispatcher.java:395)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
 at org.apache.struts2.dispatcher.FilterDispatcher.init(
FilterDispatcher.java:201)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
ApplicationFilterConfig.java:275)
 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
ApplicationFilterConfig.java:397)
 at org.apache.catalina.core.ApplicationFilterConfig.(
ApplicationFilterConfig.java:108)
 at org.apache.catalina.core.StandardContext.filterStart(
StandardContext.java:3696)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4343)
 at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:791)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java
:920)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:883)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:117)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the
name xwork has already been loaded by bean -
jar:file:/C:/Tomcat%206.0/lib/struts2-
core-2.0.11.jar!/struts-default.xml:30:72 - bean -
jar:file:/C:/Tomcat%206.0/webapps/struts2tutorial/WEB-INF/lib/struts2-
core-2.0.11.jar!/struts-default.xml:30:72
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(
XmlConfigurationProvider.java:194)
 ... 33 more