MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to General Development
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gj_soft
Post subject: About the DWRSpringJPAExample example  PostPosted: May 10, 2008 - 12:37 PM



Joined: May 10, 2008
Posts: 1

the 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>
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: About the DWRSpringJPAExample example  PostPosted: May 12, 2008 - 07:01 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

Quote:

the 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.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
support-nipun
Post subject: RE: About the DWRSpringJPAExample example  PostPosted: May 12, 2008 - 07:21 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

FYI : 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.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
rss245b
Post subject: About the DWRSpringJPAExample example  PostPosted: May 19, 2012 - 07:33 AM
Registered Member
Registered Member


Joined: May 03, 2010
Posts: 45

I 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?
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject:   PostPosted: May 30, 2012 - 11:58 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442


_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits