PDA

View Full Version : so if I do not understand how to compile&deploy *.war & *.jar files , I may use inste


lse123
05-17-2009, 01:55 PM
if I use Netbeans IDE for compilation[make *.war & *.jar files from *.java like claimBeans.java], I must use also netbeans for upload/deploy ? Or for upload ONLY I may use and dreamweaver ? The jsp section of dreamweaver, is for app not require compilation, like from Code from:JSP STANDARD TAG LIBRARY , only ?

Basically whatever I may do with "JavaBeans", "Servlets" etc (*.java files) needed to get compiled, I may also do it with JSP STANDARD TAG LIBRARY etc NOT NEEDED Compilation, so if I do not understand how to compile&deploy *.war & *.jar files , I may use instead the latter way ?

florida
06-22-2009, 12:12 AM
if I use Netbeans IDE for compilation[make *.war & *.jar files from *.java like claimBeans.java], I must use also netbeans for upload/deploy ? Or for upload ONLY I may use and dreamweaver ? The jsp section of dreamweaver, is for app not require compilation, like from Code from:JSP STANDARD TAG LIBRARY , only ?

Basically whatever I may do with "JavaBeans", "Servlets" etc (*.java files) needed to get compiled, I may also do it with JSP STANDARD TAG LIBRARY etc NOT NEEDED Compilation, so if I do not understand how to compile&deploy *.war & *.jar files , I may use instead the latter way ?

If you create a JSP in your Dreamweaver IDE the JSP will be automatically compiled into servlet by a JSP compiler.

Not sure if I understand the other part of your question but maybe this will help:
To simplify I am showing the command line creation of a war file: jar cfM myApp.war *

This creates your war and includes everything in your app.
It will also include your JSTL (jstl-1.2.jar) that you put in your myApp\WEB-INF\lib.
All your JavaBeans, Servlets that you put in packages will also be included.
After you create your war it will be ready for deployment.

lse123
06-22-2009, 05:52 AM
"If you create a JSP in your Dreamweaver IDE the JSP will be automatically compiled into servlet by a JSP compiler.", on the web(website) ? What if my hosting is remote and not have such ? Am I needed to use a tool like NetBeans ?

In case appropriate, where you insert the command you refer for :
jar cfM myApp.war * ?

florida
06-22-2009, 11:44 PM
"If you create a JSP in your Dreamweaver IDE the JSP will be automatically compiled into servlet by a JSP compiler.", on the web(website) ? What if my hosting is remote and not have such ? Am I needed to use a tool like NetBeans ?

In case appropriate, where you insert the command you refer for :
jar cfM myApp.war * ?

I use Eclipse and dont use NetBeans but I think NetBeans has something called a Clean and Build button to create your war.
If you do it command line then you should go into your directory: cd myApp
then run the above jar command to create your war file.
Also to edit a JSP page in a remote server you can use Dreamweaver assuming you have access and permissions to the remote host.