I have a java web application. Here I have some javascript files which I want to be inside a jar file. I want there will be a servlet which will deliver the javascript files from the jar. The feature is like DWR library. They have some javascript files which is not included in the file system. Rather they deliver the javascripts from the jar. DWRServlet class do that. But the path is included in the html header. I want to implement such a feature. Could you guys give me some idea how to implement that
1
There are 1 best solutions below
Related Questions in SERVLETS
- java ee jdbc jstl servlet connection to db
- IOException parsing XML document from ServletContext resource What throws this exception in my SpringBoot RESTweb service?
- How can i connect my 4 objects in my jsp file so it can run perfectly
- Best Practice to skip URL pattern's from getting applied servlet filter
- How to accurately replace scripts / html before saving data from servlet to database
- Servlet not displaying data obtained from dao
- flutter Multipart file upload server side error: Unable to process parts as no multi-part configuration has been provided
- Read an image file using okhttp3.RequestBody in java and send it to client using HTTPServletResponse
- Unexpected servlet config parameter contextConfigLocation=<NONE>
- The servlets named [ClassName] and [com.example.ClassName] are both mapped to the url-pattern [/ClassName] which is not permitted
- How to Use an External JAR Offline in a Maven Project for Servlets Without Internet Access?
- session.invalidate() is sometimes not working and not destroying the session object. What should I do?
- Database ConnectionError
- In a web.xml, can the url-pattern of servlet-mapping containing more than one path component? (e.g. /path/to/*))
- How to update the resource property using the valuemap in the Sling servlet?
Related Questions in DWR
- python requests post with data/json payload and file to upload: json key not found
- DWR 3.0.2 in Spring and Spring MVC version 3.0 integration issue(name space error for schemalocation) Maven project
- Class doesn't exist error while defining another method inside a DWR class
- Playwright and direct web remoting (DWR)
- Is @RequestMapping annotation a replacement of DWR?
- Spring Boot - Localize requests arriving at custom (DWR) AbstractController, localize child threads, LocaleResolver vs. LocaleChangeInterceptor
- I wrote a relative path in JSP but it's not working
- Spring DWR engine.js failing unknown error
- undefined property error of objects returned by AJAX
- DWR 3.0.2 Spring 5.1.7 Upgrade 'You must include DWR engine before including this file'
- X-Content-Type-Options:nosniff in DWR
- DWR dwrsessionid per browser instance instead of per user session
- DWR3 not returning a valid JSON response
- Properly using bindCallback with RXJS6 and DWR
- Spring WebMvcConfigurerAdapter, WebApplicationInitializer and DWR null beans in controller
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Resources in JARs are part of the classpath. You can get an
InputStreamof a classpath resource byClassLoader#getResourceAsStream(). So, just let your Servlet do exactly that.Assuming that you have those JS resources in
/META-INF/resourcesof the JAR:Then you can get
/META-INF/resources/some.jsof the JAR by http://localhost:8080/contextname/resources/some.js.