0

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

3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by peter_budo
0

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.

Edited by masijade: n/a

0

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

0

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.

Edited by masijade: n/a

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.