How Do i execute a jsp file placed on another machine on LAN.I have written my code in netBeans using Glassfish server..It will be helpful if i get a reply

Recommended Answers

All 6 Replies

A "JSP" does not run "standalone". Install a tomcat (or some other web container) on that "other machine" and deploy the web application to that web container then use a standard http request (i.e. browser view) to "execute" it.

A "JSP" does not run "standalone". Install a tomcat (or some other web container) on that "other machine" and deploy the web application to that web container then use a standard http request (i.e. browser view) to "execute" it.

What is the syntax of standard http request to execute the file from other machine on LAN.
Thanks For Reply

See HttpUrlConnection.

Edit: I assume you know how to enter a url into a browser so the formation of the url itself should not be the problem.

See HttpUrlConnection.

Edit: I assume you know how to enter a url into a browser so the formation of the url itself should not be the problem.

I have entered url as follows:
http://xx.xx.xx.xx:8080/onlineexam/home.jsp
but its not working
"onlineexam" is a folder in netBeans project where all my files are stored
So,do i need to keep this folder somewhere else so that all machines in LAN can execute those files

Find someone that can physically sit with you and explain how web containers work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.