0

I am working on web application project and it have many jsp files. If I do any modification on particular jsp file, I need to give whole build and I have to check the appropriate changes in that JSP file. { I have tried to run jsp on server it shows like resources are missing.}

Please let me know is there any way to compile and run individual jsp file in eclipse project which can show the changes instantly without whole build project.

Sharab
  • 41
  • 1
  • 1
  • 4
  • I guess by building whole project you mean you create a war file and deploy ? if yes you can add Server in eclipse and the changes should get deployed automatically – Abdullah Shaikh Mar 07 '14 at 09:25

3 Answers3

1

It is possible. Right click on the specific jsp file and click run on server. But make sure there is no dependencies from previous file.

Shriram
  • 4,343
  • 8
  • 37
  • 64
0

As you say JSP files run on the server , so they need a server to run . They can't be run individually from the application since they might have a application flow (i.e. dependencies with previous files).

You might try using the browser tools like Firebug to make UI changes in your pages,

  • Make note of the changes

  • Fix it as a whole

Then Clean and build .

Another option to enable build automatically . see here

Hope this helps!!

Community
  • 1
  • 1
Santhosh
  • 8,181
  • 4
  • 29
  • 56
  • Thanks for the response, Server is already added but individual jsp are notable to run on server from whole project, as san krish told can check changes using firebug that's what i have been using for existing jsp's. if i created new jsp file i can't able to check individually only in whole build i can check right. I am seeking alternate for this. – Sharab Mar 07 '14 at 09:52
  • i guess you have no option when you deploy your code in server as `war` file . you can import your code locally and make changes that would be effective – Santhosh Mar 07 '14 at 10:00
0

you just goto use this link and see the image wise jsp run:

click 1

click 2

click 3

Note: its all of the to same one in different website.

Another one sample:

1.Right click>Run as>Run on server>choose an exiting server>next>add(your project)>finish.

2.Right click>Run as>Run on server>finish.
jmail
  • 5,944
  • 3
  • 21
  • 35