Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Failed to display/run but I dont know why

 
Hiu Xiu Huang Lo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone!

Ok so i have to install and test run this webpayment, its written in .jsp.
I loaded a simple helloworld.jsp that just test the tags and whats not which works.

But when i run the webpayment jsp, it get a literal version of the code as if i open a txt editor...ie i see all the tags and everything

Does anyone know what do i have to do to fix this? is it scripting or server problem?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Robert H.L",

There aren't may rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you haven't really given us much to go on. Please start with what JSP engine you are using and how you have set up your web app in it.
 
Hiu Xiu Huang Lo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Bear

I am sorry about the naming convention, but I am asian, so mine are an odd ball...but not a problem I'll use the non-english version.

As for the server type and everything:
Linux Red Hat 2.4.1
Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.7i PHP/4.4.0 mod_perl/1.29 FrontPage/5.0.2.2510

The rest of the information is hidden from me as for as the .jsp itself as it is a payment gateway that i am trying to install the server.
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, you don't have a server there that knows how to deal with a JSP. Apache will just serve it as a file without processing it. A lot of people use Tomcat for JSPs, and it works with Apache. Maybe give that a try.

http://tomcat.apache.org/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic