Sunday, August 2, 2009

How do I preview a .asp web page that i am designing. It wont preview in iexplorer or my tomcat server 4 java?

I need some advice because I want to pursue a freelance career doing web design.


I've mastered html and I'm mastering flash slowly, so now i'm trying to move on to javascript. I've designed a shopping-cart and check-out facility for an online shop that I'm working on. the pages display fine as html but are not fully functional. I realised that alot of the fully functional online shopping carts are .asp-files so i changed one of my files to .asp to experiment but now it won't preview in iexplore or my Tomcat server which is specifically for javascript. When I try to preview it in the Tomcat Server this is the error i get


[unknown command line option "http://localhost/basket.asp"]





My computer's java platform is quite good so I know I'm making a mistake somewhere along the line. I'm using Dreamweaver and Netbeans IDE 5.5.





Can anyone figure out what I'm doing wrong, itz got nothing to do with the code because I cant even preview the .asp to see if the code functions or not.

How do I preview a .asp web page that i am designing. It wont preview in iexplorer or my tomcat server 4 java?
OK, sorry to tell you this, but a .asp or .aspx is an active server page. This runs on IIS (part of XP-Pro).





You need to check out these tools. Visual Studeo 2005 Express (free from microsoft.), SQL Server 2005 Express (also free). Visual Web Developer 2005 Express (also free)





Check out the training videos available on these tools. (also free)





Once you see the free demonstrations of these tools, you will not develop outside of that environment anymore.





http://msdn.microsoft.com/vstudio/expres...


http://www.learnvisualstudio.net/


http://msdn.microsoft.com/vstudio/expres...


http://msdn.microsoft.com/library/defaul...


http://msdn.microsoft.com/vstudio/expres...


http://msdn2.microsoft.com/en-us/asp.net...


http://www.learn2asp.net/web/Campaign.as...
Reply:"Tomcat server which is specifically for javascript."





If you have this little knowledge of Tomcat I am not sure why you are using it.





1) Tomcat is a Java servlet container. Tomcat can process Java Servlets, server side Java code, jsp's (Java Server pages), etc. Tomcat has nothing to do with JavaScript.


2) Javascript is a client side scripting language that runs in a web browser. Java and Javascript are not the same thing, not even close.


3) Instead of attempting to use ASP (A Microsoft Technology) you should take a look at Java and Java Server Pages since you are running Tomcat. Here is a brief introduction to JSP's from Sun's (the creator of Java) site:


http://java.sun.com/developer/onlineTrai...
Reply:If i read you correctly, you merely change the file extension from html to asp??





This won't work. First your page is not coded in the ASP language and its syntax.





Second, your local machine is not set up to display asp files, if you are using winxp pro, you can install the IIS service to be able to read asp files.





Do google and read up the basics of asp. once you inderstand that asp is a server-side languange rather then a local-side(javascript), i think you will fully understand why your local PC don't show. Of cos remember that your file is not coded properly in the asp syntax in the first place.





Hope this helps
Reply:Remember that asp only runs on Windows servers. There are few of them on the internet compared to Apache. Your server obviously does not support it. You would be better working in php for this. Just changing a file extension to php or asp will not change how it works, you need to write the code in the appropriate language. Learn the language, there are severe limitations to the use of web building guis.

botanical garden

No comments:

Post a Comment