- This topic has 4 replies, 4 voices, and was last updated 12 years, 6 months 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>
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.
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.
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?
support-joyMemberrss245b,
Please refer post – http://myeclipseide.com/PNphpBB2-viewtopic-t-29031-postdays-0-postorder-asc-start-15.html
-
AuthorPosts