autocompleter struts2 onchange parameter not working
Dear All, I want to apply onchange parameter in function testjavscriptmethod() { alert('Hi'); } but the method is not call why? plz help me with regards, VIVEK KUMAR JAISWAL
Re: provide Helloworld application in Struts2.0
Please look in your server logs for startup errors. Seriously! Dave On Tue, Nov 15, 2011 at 2:14 PM, Praveen Jain < jain_praveen_mail...@yahoo.com> wrote: > On using it is showing the error as follows > > HTTP Status 404 - /HelloWorldStruts2/HelloWorldAction.actiontype Status > reportmessage /HelloWorldStruts2/HelloWorldAction.actiondescription The > requested resource (/HelloWorldStruts2/HelloWorldAction.action) is not > available. > > > Thanks, Praveen Jain > > > > > --- On Tue, 11/15/11, Ilya Kazakevich > wrote: > > From: Ilya Kazakevich > Subject: RE: provide Helloworld application in Struts2.0 > To: "'Struts Users Mailing List'" > Date: Tuesday, November 15, 2011, 10:31 AM > > What URL do you use? > > Struts uses ".action" extension by default. > > Try /HelloWorldStruts2/HelloWorldAction.action if HelloWorldStruts2 is your > .war file name > > > > > > Ilya Kazakevich, > Developer > JetBrains Inc > http://www.jetbrains.com > "Develop with pleasure!" > > -Original Message- > From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] > Sent: Tuesday, November 15, 2011 9:52 PM > To: Struts Users Mailing List > Subject: Re: provide Helloworld application in Struts2.0 > > Dear Demo, Still it is not running and following error message is occurring > > HTTP Status 404 - /HelloWorldStruts2/ > > > type Status report > message /HelloWorldStruts2/ > description The requested resource (/HelloWorldStruts2/) is not > available. > > > Apache Tomcat/5.0.28 > > > Thanks Praveen Jain > > --- On Mon, 11/14/11, Damian Krawcewicz wrote: > > From: Damian Krawcewicz > Subject: Re: provide Helloworld application in Struts2.0 > To: "Struts Users Mailing List" > Date: Monday, November 14, 2011, 8:58 AM > > For starters, this line: > > > either remove "struts-default" or change it to: extends="struts-default" > > Damo > > On 14 November 2011 16:53, Praveen Jain > wrote: > > > Yes I made a Simple hello application in Servlet and it is running fine. > > But my hello world application in struts is not running please find the > > four files which compose the application i have made 4 files index.jsp , > > Helloworld.jsp , web.xml , struts.xml > > > > Please go through the code and help me out to run the application. > > code for index.jsp > > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > >pageEncoding="ISO-8859-1"%> > > <%@taglib prefix="s" uri="/struts-tags" %> > > > http://www.w3.org/TR/html4/loose.dtd";> > > > > > > > > Hello World > > > > > > Hello World fron struts 2 > > > > Please enter ur name > > > > > > > > > > Code for Helloworld.jsp > > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > >pageEncoding="ISO-8859-1"%> > > <%@taglib prefix="s" uri="/struts-tags" %> > > > http://www.w3.org/TR/html4/loose.dtd";> > > > > > > > > Hello World JSP > > > > > > > > Hello world, > > > > > > > > > > > > > > Code for Web.xml > > > > http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" > > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" > > http://java.sun.com/xml/ns/j2ee > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > > >HelloWorldStruts2 > > > >index.jsp > > > > > >Struts2 > > > > > org.apache.struts2.dispatcher.FilterDispatcher > > > > > > > >Struts2 > >/* > > > > > > > > > > > > Code for Struts.xml > > > > > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > > "http://struts.apache.org/dtds/struts-2.0.dtd";> > > > > > > > > > class="Struts2.HelloWorldAction" method="execute"> > >Helloworld.jsp > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- On Sun, 11/13/11, Ilya Kazakevich > > wrote: > > > > From: Ilya Kazakevich > > Subject: RE: provide Helloworld application in Struts2.0 > > To: "'Struts Users Mailing List'" > > Date: Sunday, November 13, 2011, 10:07 AM > > > > You probably need to familiarize yourself with concepts of servlet and > > context. > > > > Please read servlet specification (at least "Overview" chapter) and > tomcat > > context manual > http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > > > Try to write and deploy simple servlet then that does nothing but writes > > "hello" to the output. After success you may get back to struts. > > > > > > > > Ilya Kazakevich, > > Developer > > JetBrains Inc > > http://www.jetbrains.com > > "Develop with pleasure!" > > > > -Original Message- > > From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] > > Sent: Sunday, November 13, 2011 9:51 PM > > To: Struts Users Mailing List > > Subject: RE: provide Helloworld application in Struts2.0 > > > > > > HelloWorldStruts2 > > is the name of the project made in Eclipse and its web.xml is as under > > mentioned > > > > > > > > > xmlns="h
RE: provide Helloworld application in Struts2.0
Does your context works? Try to put "hello.html" file in the root of your .war file Then open it: /HelloWorldStruts2/hello.html Show us your logs please Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] Sent: Tuesday, November 15, 2011 11:14 PM To: Struts Users Mailing List Subject: RE: provide Helloworld application in Struts2.0 On using it is showing the error as follows HTTP Status 404 - /HelloWorldStruts2/HelloWorldAction.actiontype Status reportmessage /HelloWorldStruts2/HelloWorldAction.actiondescription The requested resource (/HelloWorldStruts2/HelloWorldAction.action) is not available. Thanks, Praveen Jain --- On Tue, 11/15/11, Ilya Kazakevich wrote: From: Ilya Kazakevich Subject: RE: provide Helloworld application in Struts2.0 To: "'Struts Users Mailing List'" Date: Tuesday, November 15, 2011, 10:31 AM What URL do you use? Struts uses ".action" extension by default. Try /HelloWorldStruts2/HelloWorldAction.action if HelloWorldStruts2 is your .war file name Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] Sent: Tuesday, November 15, 2011 9:52 PM To: Struts Users Mailing List Subject: Re: provide Helloworld application in Struts2.0 Dear Demo, Still it is not running and following error message is occurring HTTP Status 404 - /HelloWorldStruts2/ type Status report message /HelloWorldStruts2/ description The requested resource (/HelloWorldStruts2/) is not available. Apache Tomcat/5.0.28 Thanks Praveen Jain --- On Mon, 11/14/11, Damian Krawcewicz wrote: From: Damian Krawcewicz Subject: Re: provide Helloworld application in Struts2.0 To: "Struts Users Mailing List" Date: Monday, November 14, 2011, 8:58 AM For starters, this line: either remove "struts-default" or change it to: extends="struts-default" Damo On 14 November 2011 16:53, Praveen Jain wrote: > Yes I made a Simple hello application in Servlet and it is running fine. > But my hello world application in struts is not running please find the > four files which compose the application i have made 4 files index.jsp , > Helloworld.jsp , web.xml , struts.xml > > Please go through the code and help me out to run the application. > code for index.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World > > > Hello World fron struts 2 > > Please enter ur name > > > > > Code for Helloworld.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World JSP > > > > Hello world, > > > > > > > Code for Web.xml > > http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" > http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > HelloWorldStruts2 > > index.jsp > > > Struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > > > Struts2 > /* > > > > > > Code for Struts.xml > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > "http://struts.apache.org/dtds/struts-2.0.dtd";> > > > > class="Struts2.HelloWorldAction" method="execute"> > Helloworld.jsp > > > > > > > > > > > > > > > --- On Sun, 11/13/11, Ilya Kazakevich > wrote: > > From: Ilya Kazakevich > Subject: RE: provide Helloworld application in Struts2.0 > To: "'Struts Users Mailing List'" > Date: Sunday, November 13, 2011, 10:07 AM > > You probably need to familiarize yourself with concepts of servlet and > context. > > Please read servlet specification (at least "Overview" chapter) and tomcat > context manual http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > Try to write and deploy simple servlet then that does nothing but writes > "hello" to the output. After success you may get back to struts. > > > > Ilya Kazakevich, > Developer > JetBrains Inc > http://www.jetbrains.com > "Develop with pleasure!" > > -Original Message- > From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] > Sent: Sunday, November 13, 2011 9:51 PM > To: Struts Users Mailing List > Subject: RE: provide Helloworld application in Struts2.0 > > > HelloWorldStruts2 > is the name of the project made in Eclipse and its web.xml is as under > mentioned > > > > xmlns="http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins
Re: Beginner question
Why do I use Struts2/Tiles/openJPA? > tiles: to work with layouts > struts2: the action concept and the posibility to make mapping between > html and the object in my action. Same for me. openJPA: to work with database entities I use mybatis for DB queries. Just curious to know, does someone know the performance between mybatis, openJPA, etc DB process tools? Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: provide Helloworld application in Struts2.0
On using it is showing the error as follows HTTP Status 404 - /HelloWorldStruts2/HelloWorldAction.actiontype Status reportmessage /HelloWorldStruts2/HelloWorldAction.actiondescription The requested resource (/HelloWorldStruts2/HelloWorldAction.action) is not available. Thanks, Praveen Jain --- On Tue, 11/15/11, Ilya Kazakevich wrote: From: Ilya Kazakevich Subject: RE: provide Helloworld application in Struts2.0 To: "'Struts Users Mailing List'" Date: Tuesday, November 15, 2011, 10:31 AM What URL do you use? Struts uses ".action" extension by default. Try /HelloWorldStruts2/HelloWorldAction.action if HelloWorldStruts2 is your .war file name Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] Sent: Tuesday, November 15, 2011 9:52 PM To: Struts Users Mailing List Subject: Re: provide Helloworld application in Struts2.0 Dear Demo, Still it is not running and following error message is occurring HTTP Status 404 - /HelloWorldStruts2/ type Status report message /HelloWorldStruts2/ description The requested resource (/HelloWorldStruts2/) is not available. Apache Tomcat/5.0.28 Thanks Praveen Jain --- On Mon, 11/14/11, Damian Krawcewicz wrote: From: Damian Krawcewicz Subject: Re: provide Helloworld application in Struts2.0 To: "Struts Users Mailing List" Date: Monday, November 14, 2011, 8:58 AM For starters, this line: either remove "struts-default" or change it to: extends="struts-default" Damo On 14 November 2011 16:53, Praveen Jain wrote: > Yes I made a Simple hello application in Servlet and it is running fine. > But my hello world application in struts is not running please find the > four files which compose the application i have made 4 files index.jsp , > Helloworld.jsp , web.xml , struts.xml > > Please go through the code and help me out to run the application. > code for index.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World > > > Hello World fron struts 2 > > Please enter ur name > > > > > Code for Helloworld.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World JSP > > > > Hello world, > > > > > > > Code for Web.xml > > http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" > http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > HelloWorldStruts2 > > index.jsp > > > Struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > > > Struts2 > /* > > > > > > Code for Struts.xml > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > "http://struts.apache.org/dtds/struts-2.0.dtd";> > > > > class="Struts2.HelloWorldAction" method="execute"> > Helloworld.jsp > > > > > > > > > > > > > > > --- On Sun, 11/13/11, Ilya Kazakevich > wrote: > > From: Ilya Kazakevich > Subject: RE: provide Helloworld application in Struts2.0 > To: "'Struts Users Mailing List'" > Date: Sunday, November 13, 2011, 10:07 AM > > You probably need to familiarize yourself with concepts of servlet and > context. > > Please read servlet specification (at least "Overview" chapter) and tomcat > context manual http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > Try to write and deploy simple servlet then that does nothing but writes > "hello" to the output. After success you may get back to struts. > > > > Ilya Kazakevich, > Developer > JetBrains Inc > http://www.jetbrains.com > "Develop with pleasure!" > > -Original Message- > From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] > Sent: Sunday, November 13, 2011 9:51 PM > To: Struts Users Mailing List > Subject: RE: provide Helloworld application in Struts2.0 > > > HelloWorldStruts2 > is the name of the project made in Eclipse and its web.xml is as under > mentioned > > > > xmlns="http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > HelloWorldStruts2 > > index.jsp > > > Struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > > > Struts2 > /* > > > > > > > ThanksPraveen Jain > > > > - > To unsubscribe, e-ma
RE: provide Helloworld application in Struts2.0
What URL do you use? Struts uses ".action" extension by default. Try /HelloWorldStruts2/HelloWorldAction.action if HelloWorldStruts2 is your .war file name Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] Sent: Tuesday, November 15, 2011 9:52 PM To: Struts Users Mailing List Subject: Re: provide Helloworld application in Struts2.0 Dear Demo, Still it is not running and following error message is occurring HTTP Status 404 - /HelloWorldStruts2/ type Status report message /HelloWorldStruts2/ description The requested resource (/HelloWorldStruts2/) is not available. Apache Tomcat/5.0.28 Thanks Praveen Jain --- On Mon, 11/14/11, Damian Krawcewicz wrote: From: Damian Krawcewicz Subject: Re: provide Helloworld application in Struts2.0 To: "Struts Users Mailing List" Date: Monday, November 14, 2011, 8:58 AM For starters, this line: either remove "struts-default" or change it to: extends="struts-default" Damo On 14 November 2011 16:53, Praveen Jain wrote: > Yes I made a Simple hello application in Servlet and it is running fine. > But my hello world application in struts is not running please find the > four files which compose the application i have made 4 files index.jsp , > Helloworld.jsp , web.xml , struts.xml > > Please go through the code and help me out to run the application. > code for index.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World > > > Hello World fron struts 2 > > Please enter ur name > > > > > Code for Helloworld.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World JSP > > > > Hello world, > > > > > > > Code for Web.xml > > http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" > http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > HelloWorldStruts2 > > index.jsp > > > Struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > > > Struts2 > /* > > > > > > Code for Struts.xml > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > "http://struts.apache.org/dtds/struts-2.0.dtd";> > > > > class="Struts2.HelloWorldAction" method="execute"> > Helloworld.jsp > > > > > > > > > > > > > > > --- On Sun, 11/13/11, Ilya Kazakevich > wrote: > > From: Ilya Kazakevich > Subject: RE: provide Helloworld application in Struts2.0 > To: "'Struts Users Mailing List'" > Date: Sunday, November 13, 2011, 10:07 AM > > You probably need to familiarize yourself with concepts of servlet and > context. > > Please read servlet specification (at least "Overview" chapter) and tomcat > context manual http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > Try to write and deploy simple servlet then that does nothing but writes > "hello" to the output. After success you may get back to struts. > > > > Ilya Kazakevich, > Developer > JetBrains Inc > http://www.jetbrains.com > "Develop with pleasure!" > > -Original Message- > From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] > Sent: Sunday, November 13, 2011 9:51 PM > To: Struts Users Mailing List > Subject: RE: provide Helloworld application in Struts2.0 > > > HelloWorldStruts2 > is the name of the project made in Eclipse and its web.xml is as under > mentioned > > > > xmlns="http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > HelloWorldStruts2 > > index.jsp > > > Struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > > > Struts2 > /* > > > > > > > ThanksPraveen Jain > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: provide Helloworld application in Struts2.0
have you checked the tomcat's logs to see if the app is deployed correctly? 2011/11/15 Praveen Jain > Dear Demo, Still it is not running and following error message is occurring > > HTTP Status 404 - /HelloWorldStruts2/ > > > type Status report > message /HelloWorldStruts2/ > description The requested resource (/HelloWorldStruts2/) is not > available. > > > Apache Tomcat/5.0.28 > > > Thanks Praveen Jain > > --- On Mon, 11/14/11, Damian Krawcewicz wrote: > > From: Damian Krawcewicz > Subject: Re: provide Helloworld application in Struts2.0 > To: "Struts Users Mailing List" > Date: Monday, November 14, 2011, 8:58 AM > > For starters, this line: > > > either remove "struts-default" or change it to: extends="struts-default" > > Damo > > On 14 November 2011 16:53, Praveen Jain >wrote: > > > Yes I made a Simple hello application in Servlet and it is running fine. > > But my hello world application in struts is not running please find the > > four files which compose the application i have made 4 files index.jsp , > > Helloworld.jsp , web.xml , struts.xml > > > > Please go through the code and help me out to run the application. > > code for index.jsp > > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > >pageEncoding="ISO-8859-1"%> > > <%@taglib prefix="s" uri="/struts-tags" %> > > > http://www.w3.org/TR/html4/loose.dtd";> > > > > > > > > Hello World > > > > > > Hello World fron struts 2 > > > > Please enter ur name > > > > > > > > > > Code for Helloworld.jsp > > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > >pageEncoding="ISO-8859-1"%> > > <%@taglib prefix="s" uri="/struts-tags" %> > > > http://www.w3.org/TR/html4/loose.dtd";> > > > > > > > > Hello World JSP > > > > > > > > Hello world, > > > > > > > > > > > > > > Code for Web.xml > > > > http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" > > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" > > http://java.sun.com/xml/ns/j2ee > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > > >HelloWorldStruts2 > > > >index.jsp > > > > > >Struts2 > > > > > org.apache.struts2.dispatcher.FilterDispatcher > > > > > > > >Struts2 > >/* > > > > > > > > > > > > Code for Struts.xml > > > > > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > > "http://struts.apache.org/dtds/struts-2.0.dtd";> > > > > > > > > > class="Struts2.HelloWorldAction" method="execute"> > >Helloworld.jsp > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- On Sun, 11/13/11, Ilya Kazakevich > > wrote: > > > > From: Ilya Kazakevich > > Subject: RE: provide Helloworld application in Struts2.0 > > To: "'Struts Users Mailing List'" > > Date: Sunday, November 13, 2011, 10:07 AM > > > > You probably need to familiarize yourself with concepts of servlet and > > context. > > > > Please read servlet specification (at least "Overview" chapter) and > tomcat > > context manual > http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > > > Try to write and deploy simple servlet then that does nothing but writes > > "hello" to the output. After success you may get back to struts. > > > > > > > > Ilya Kazakevich, > > Developer > > JetBrains Inc > > http://www.jetbrains.com > > "Develop with pleasure!" > > > > -Original Message- > > From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] > > Sent: Sunday, November 13, 2011 9:51 PM > > To: Struts Users Mailing List > > Subject: RE: provide Helloworld application in Struts2.0 > > > > > > HelloWorldStruts2 > > is the name of the project made in Eclipse and its web.xml is as under > > mentioned > > > > > > > > > xmlns="http://java.sun.com/xml/ns/j2ee"; > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > > > HelloWorldStruts2 > > > > index.jsp > > > > > > Struts2 > > > > > org.apache.struts2.dispatcher.FilterDispatcher > > > > > > > > Struts2 > > /* > > > > > > > > > > > > > > ThanksPraveen Jain > > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > >
Re: provide Helloworld application in Struts2.0
Dear Demo, Still it is not running and following error message is occurring HTTP Status 404 - /HelloWorldStruts2/ type Status report message /HelloWorldStruts2/ description The requested resource (/HelloWorldStruts2/) is not available. Apache Tomcat/5.0.28 Thanks Praveen Jain --- On Mon, 11/14/11, Damian Krawcewicz wrote: From: Damian Krawcewicz Subject: Re: provide Helloworld application in Struts2.0 To: "Struts Users Mailing List" Date: Monday, November 14, 2011, 8:58 AM For starters, this line: either remove "struts-default" or change it to: extends="struts-default" Damo On 14 November 2011 16:53, Praveen Jain wrote: > Yes I made a Simple hello application in Servlet and it is running fine. > But my hello world application in struts is not running please find the > four files which compose the application i have made 4 files index.jsp , > Helloworld.jsp , web.xml , struts.xml > > Please go through the code and help me out to run the application. > code for index.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World > > > Hello World fron struts 2 > > Please enter ur name > > > > > Code for Helloworld.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World JSP > > > > Hello world, > > > > > > > Code for Web.xml > > http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" > http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > HelloWorldStruts2 > > index.jsp > > > Struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > > > Struts2 > /* > > > > > > Code for Struts.xml > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > "http://struts.apache.org/dtds/struts-2.0.dtd";> > > > > class="Struts2.HelloWorldAction" method="execute"> > Helloworld.jsp > > > > > > > > > > > > > > > --- On Sun, 11/13/11, Ilya Kazakevich > wrote: > > From: Ilya Kazakevich > Subject: RE: provide Helloworld application in Struts2.0 > To: "'Struts Users Mailing List'" > Date: Sunday, November 13, 2011, 10:07 AM > > You probably need to familiarize yourself with concepts of servlet and > context. > > Please read servlet specification (at least "Overview" chapter) and tomcat > context manual http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > Try to write and deploy simple servlet then that does nothing but writes > "hello" to the output. After success you may get back to struts. > > > > Ilya Kazakevich, > Developer > JetBrains Inc > http://www.jetbrains.com > "Develop with pleasure!" > > -Original Message- > From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] > Sent: Sunday, November 13, 2011 9:51 PM > To: Struts Users Mailing List > Subject: RE: provide Helloworld application in Struts2.0 > > > HelloWorldStruts2 > is the name of the project made in Eclipse and its web.xml is as under > mentioned > > > > xmlns="http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > HelloWorldStruts2 > > index.jsp > > > Struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > > > Struts2 > /* > > > > > > > ThanksPraveen Jain > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: provide Helloworld application in Struts2.0
Dear Dev , I have also specified the HelloWorldAction.java in package whose code is as follows . package Struts2; public class HelloWorldAction { private String name; public String execute()throws Exception { return "success"; } public String getName() { return name; } public void setName(String name) { this.name=name; } } Thanks Praveen Jain --- On Mon, 11/14/11, Dave Newton wrote: From: Dave Newton Subject: Re: provide Helloworld application in Struts2.0 To: "Struts Users Mailing List" Date: Monday, November 14, 2011, 8:57 AM Did you not make an action class? There's one specified in your config file. Dave On Mon, Nov 14, 2011 at 11:53 AM, Praveen Jain < jain_praveen_mail...@yahoo.com> wrote: > Yes I made a Simple hello application in Servlet and it is running fine. > But my hello world application in struts is not running please find the > four files which compose the application i have made 4 files index.jsp , > Helloworld.jsp , web.xml , struts.xml > > Please go through the code and help me out to run the application. > code for index.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World > > > Hello World fron struts 2 > > Please enter ur name > > > > > Code for Helloworld.jsp > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@taglib prefix="s" uri="/struts-tags" %> > http://www.w3.org/TR/html4/loose.dtd";> > > > > Hello World JSP > > > > Hello world, > > > > > > > Code for Web.xml > > http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" > http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > HelloWorldStruts2 > > index.jsp > > > Struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > > > Struts2 > /* > > > > > > Code for Struts.xml > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > "http://struts.apache.org/dtds/struts-2.0.dtd";> > > > > class="Struts2.HelloWorldAction" method="execute"> > Helloworld.jsp > > > > > > > > > > > > > > > --- On Sun, 11/13/11, Ilya Kazakevich > wrote: > > From: Ilya Kazakevich > Subject: RE: provide Helloworld application in Struts2.0 > To: "'Struts Users Mailing List'" > Date: Sunday, November 13, 2011, 10:07 AM > > You probably need to familiarize yourself with concepts of servlet and > context. > > Please read servlet specification (at least "Overview" chapter) and tomcat > context manual http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > Try to write and deploy simple servlet then that does nothing but writes > "hello" to the output. After success you may get back to struts. > > > > Ilya Kazakevich, > Developer > JetBrains Inc > http://www.jetbrains.com > "Develop with pleasure!" > > -Original Message- > From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] > Sent: Sunday, November 13, 2011 9:51 PM > To: Struts Users Mailing List > Subject: RE: provide Helloworld application in Struts2.0 > > > HelloWorldStruts2 > is the name of the project made in Eclipse and its web.xml is as under > mentioned > > > > xmlns="http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > HelloWorldStruts2 > > index.jsp > > > Struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > > > Struts2 > /* > > > > > > > ThanksPraveen Jain > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >