|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Need your help.Dear All, Added all the entries in web.xml and dwr.xml files for
testing this program but when I’m accessing the TestDemo.jsp page it is
throwing ‘TestDemo’ is undefined
error. Please find the files in attachment. Thanks for your help in advance. Regards, Sharath. This electronic message contains information from CNSI, which may be company sensitive, proprietary, privileged or otherwise protected from disclosure. The information is intended to be used solely by the intended recipient(s). If you are not an intended recipient any review, disclosure, copying, distribution or use of this transmission or its contents is prohibited. If you have received this transmission in error, please notify the sender immediately and delete all copies of this message. <!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.org/dwr/dwr20.dtd"> <dwr> <allow> <create creator="new" javascript="TestDemo"> <param name="class" value="com.sharath.ajax.TestDemo"/> <include method="sayHello"/> </create> </allow> </dwr> <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <display-name>Struts Blank Application</display-name> <!-- Following section is added for AJAX - Begin --> <servlet> <servlet-name>dwr-invoker</servlet-name> <display-name>DWR Servlet</display-name> <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/dwr.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr-invoker</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> <!-- Following section is added for AJAX - End --> <!-- The Usual Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <!-- Struts Tag Library Descriptors --> <taglib> <taglib-uri>/tags/struts-bean</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/tags/struts-html</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/tags/struts-logic</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/tags/struts-nested</taglib-uri> <taglib-location>/WEB-INF/struts-nested.tld</taglib-location> </taglib> <taglib> <taglib-uri>/tags/struts-tiles</taglib-uri> <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location> </taglib> <mime-mapping> <extension>gif</extension> <mime-type>image/gif</mime-type> </mime-mapping> </web-app> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
RE: Need your help.You missed some steps. Assuming everything is registered properly with dwr go to http://server/myapp/dwr (make sure that debug is true in web.xml). You'll then you can look at the class as dwr published it and copy the engine and TestDemo js includes into your page. Also this type of thread would be better on the users list as more people watch it.
Randy ________________________________ From: Karnati, Sharath [mailto:Sharath.Karnati@...] Sent: Tue 1/8/2008 7:11 PM To: dev@... Subject: [dwr-dev] Need your help. Dear All, Added all the entries in web.xml and dwr.xml files for testing this program but when I'm accessing the TestDemo.jsp page it is throwing 'TestDemo' is undefined error. Please find the files in attachment. Thanks for your help in advance. Regards, Sharath. <http://www.cns-inc.com/> This electronic message contains information from CNSI, which may be company sensitive, proprietary, privileged or otherwise protected from disclosure. The information is intended to be used solely by the intended recipient(s). If you are not an intended recipient any review, disclosure, copying, distribution or use of this transmission or its contents is prohibited. If you have received this transmission in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: Need your help.<script type="text/javascript" src="/context Home/dwr/interface/TestDemo.js"> </script>--add to ur jsp
com.sharath.ajax.TestDemo--add to ur web.xml and try
|
| Free Forum Powered by Nabble | Forum Help |