•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 363,514 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,436 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 1430 | Replies: 17
![]() |
•
•
Join Date: Sep 2007
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
Ok, I don't know what happened, but somehow, this issue resolved itself. What I did was instead of upload the file as index.jsp, i uploaded it as index2.jsp. i've made modifications to that file and re-uploaded and it all seems to work fine. I don't know what was going on, but I'm glad it's working now. Thanks for all the help.
•
•
Join Date: Jul 2007
Posts: 31
Reputation:
Rep Power: 1
Solved Threads: 4
Its good that issue got resolved, if u want please try one thing, which might help u in learning JSP.
Get the generated java files for index.jsp and index2.jsp, and have a look at them, am pretty sure file index.java will not be containing the changes you did, for the reason, that new jsp file was never used, and the changes never got reflected in generated classes. Hence, you never saw modifications in effect. Now that you have created a new JSP file, a new class file with your changes was generated and modifications were on.
This might have solved the problem (which is awesome), but definitely doesn't help in learning process.
Get the generated java files for index.jsp and index2.jsp, and have a look at them, am pretty sure file index.java will not be containing the changes you did, for the reason, that new jsp file was never used, and the changes never got reflected in generated classes. Hence, you never saw modifications in effect. Now that you have created a new JSP file, a new class file with your changes was generated and modifications were on.
This might have solved the problem (which is awesome), but definitely doesn't help in learning process.
•
•
Join Date: Sep 2007
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
Well, actually no, I don't think the problem is solved. The problem lies somewhere on the server or something. Here's what I'm doing now.
Upload index.jsp
View index.jsp in browser
Modify index.jsp in Dreamweaver
Attempt to upload index.jsp via FireFTP.
SOMETIMES { Upload fails: Text file busy.
Rename local index.jsp to index2.jsp
Upload index2.jsp }
View page in browser
Repeat process.
Sometimes I do not get the Text file busy, which is why I thought my problem was fixed. Also, I no longer have the WEB-INF and META-INF folders. I just have a plain old hello-world .jsp file. What can I do to fix this behavior?
Upload index.jsp
View index.jsp in browser
Modify index.jsp in Dreamweaver
Attempt to upload index.jsp via FireFTP.
SOMETIMES { Upload fails: Text file busy.
Rename local index.jsp to index2.jsp
Upload index2.jsp }
View page in browser
Repeat process.
Sometimes I do not get the Text file busy, which is why I thought my problem was fixed. Also, I no longer have the WEB-INF and META-INF folders. I just have a plain old hello-world .jsp file. What can I do to fix this behavior?
•
•
Join Date: Sep 2007
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
By the way, if I get the "Text file busy" message, then that filename is no-longer usable to me. Even if I telnet to the server and do a "rm index.php". If i ever tried to upload a new index.php, it would upload fine, but it would just display the old file without my changes. So I guess I'll just end up at index100.jsp until I can restart the server or find some other solution.
•
•
Join Date: Jul 2007
Posts: 31
Reputation:
Rep Power: 1
Solved Threads: 4
Seems like some permission issue on the folder at the server, which is not letting u overwrite some files, but it lets you add up new files (which is not at all a solution), please check with some IT guys or try logging through superuser and setting permissions to 777 (if your client permits), and repeat the steps.
•
•
Join Date: Aug 2007
Posts: 74
Reputation:
Rep Power: 1
Solved Threads: 8
Tomcat 5.0 onwards support hot deployment that means any changes to your JSP pages will be reflected back once the request is made for that page again. Here, I mean changees made only to JSP pages will be reflected not to your servlets or Java beans. All you need to do is make some changes to the web.xml file of your webapp in the WEB-INF directory and get started. For more information refer to Tomcat documentation.
•
•
Join Date: Jul 2007
Posts: 31
Reputation:
Rep Power: 1
Solved Threads: 4
•
•
•
•
Tomcat 5.0 onwards support hot deployment that means any changes to your JSP pages will be reflected back once the request is made for that page again. Here, I mean changees made only to JSP pages will be reflected not to your servlets or Java beans. All you need to do is make some changes to the web.xml file of your webapp in the WEB-INF directory and get started. For more information refer to Tomcat documentation.
Hot deployment definitely works, but only when your development and deployment server are same. If you are developing locally and deploying on a remote server (which I think is the case here), I am sure hot deployment has nothing to do with this.
I shall recommend discussing this issues with some server administrator and let know that uploading files with .jsp extension are throwing "Text file busy" message in your ftp tool.
Googled the message and it returned quite an informative link:
http://lists.freebsd.org/pipermail/f...er/009972.html
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
Similar Threads
- Contract: Java, JSP, J2EE, XML & Fuego - USA (anywhere) (Web Development Job Offers)
- Help for learnign JSP (JSP)
- about jsp files (JSP)
- variable Initialisation in JSP (JSP)
- File parsing and then parsing the string (C)
- Question about Standard C Library. (C)
- problem ragarding printing a jsp page (JSP)
- Date type problem JSP, mySQL (Java)
Other Threads in the JSP Forum
- Previous Thread: Last issue was resolved... but hey, I've got another
- Next Thread: Pls...guide Me.


Linear Mode