- This topic has 4 replies, 4 voices, and was last updated 13 years, 1 month ago by
support-joy.
-
AuthorPosts
-
gj_softMemberthe index.jsp file need two javascript files named RemoteCarViewer.js and engine.js, but I can’t find the two files from the source checked out from cvs respository of myeclipse example.
I dont’ know whether the two files need to be writted by myself or should be provided by the myeclipse example cvs respository.Ablow is the source code of index.jsp file including javascript part:
<script type=”text/javascript” src=”<%=request.getContextPath()%
>/dwr/interface/RemoteCarViewer.js”>
</script>
<script type=”text/javascript” src=”<%=request.getContextPath()%>/dwr/engine.js”>
</script>May 12, 2008 at 1:01 pm #284906
Loyal WaterMemberthe index.jsp file need two javascript files named RemoteCarViewer.js and engine.js, but I can’t find the two files from the source checked out from cvs respository of myeclipse example.
I dont’ know whether the two files need to be writted by myself or should be provided by the myeclipse example cvs respository.This stuff is hosted dynamically from the server side (the DWR Servlet). You don’t have to write it.
May 12, 2008 at 1:21 pm #284907
Loyal WaterMemberFYI : There is a servlet mapping in the web.xml file for anything under the /dwr path incase your curious to know *how* it is hosted dynamically.
May 19, 2012 at 1:33 am #326198
Rob SilverParticipantI just noticed that the ApplicationContext.xml file contains something I had not seen before
Perhaps this is the key to better understanding the working code:<bean id=”carViewer” name=”CarViewer”
class=”com.myeclipseide.examples.dwrspring.bean.CarViewer” abstract=”false”
lazy-init=”default” autowire=”default” dependency-check=”default”
depends-on=”carManager”>
<property name=”carManager”>
<ref bean=”carManager” />
</property>
<dwr:remote javascript=”RemoteCarViewer”/>
</bean>
What does the dwr: tag do and how was it enabled as a valid tag?
was it the line:?
xmlns:dwr=”http://www.directwebremoting.org/schema/spring-dwr”
What does this do? Does it map to carViewer class to the Javascript object, RemoteCarViewer ?
So within the javascript of RemoteCarViewer.getCustomerData(reply) does what?
because there are no methods called getCustomerData(value) only no parameters exist in the methods – So what gives here? what is reply? why in the Javascript but not in the methods of CarViewer class?May 30, 2012 at 5:58 am #326477
support-joyMemberrss245b,
Please refer post – http://myeclipseide.com/PNphpBB2-viewtopic-t-29031-postdays-0-postorder-asc-start-15.html
-
AuthorPosts