Solved

JSP form sumitted to another JSP page returns source code.

Posted on 2004-09-30
5
315 Views
Last Modified: 2010-05-18
Hey everyone.  Here's my issue.   We recently switch our app server from Windows to Solaris.   The app -server is up and running fine.   There is even a samples directory on the web-server which lets you run some of their sample pages.  All of these work.

I ported over a specific directory from the old box to the new one.  The login page I have for my site is called login.jsp
Whenever I enter in my login info and submit the form to another page fopr processing, all I get is the JSP source code displayed in full on the next page.  The way it is supposed to work is that the page only shows the word "Processing.." as the parameter passed from my login page are sent to the database server as a test.  The status returned by the database is interpreted and handled by the JavaScript code on the page (If you enter the wrong info, it sends you right back to the login page).

I am not even getting an error at all.  It is just displaying all the source code for the JSP file.   Is there something I need to check in the configuration files?
0
Comment
Question by:ZeeshanSyedJC
  • 3
5 Comments
 
LVL 35

Expert Comment

by:TimYates
Comment Utility
What webserver are you running?  Tomcat?

What version?

Are you sure the webserver on solaris is a JSP processing webserver?  Sounds like you are trying to run jsps in a normal webserver like apache or httpd or something...

Tim
0
 

Author Comment

by:ZeeshanSyedJC
Comment Utility
It is Apache-powered oracle 10g App Server.   On the same webserver, JSPs do run successfully.  However, they are in a different directory.  I am thinking that I have to define the path somewhere to allow for execution.   I am sure that it is a configuration issue related to the directory I am using because the server is definately J2EE enabled.
0
 
LVL 35

Expert Comment

by:TimYates
Comment Utility
have a look for the config files for that server...  especially look for what the other directory has that your directory is missing ;-)
0
 
LVL 1

Accepted Solution

by:
helloexpert earned 125 total points
Comment Utility
In most web servers, u would have to configure directories specifically for jsp processing. Otherwise the files in that path will be treated as normal files and displayed. Depending on your webserver, it will be in a config file.
so, do what Tim has suggested above....the other directory's name would be appearing in some config file.

0
 
LVL 35

Expert Comment

by:TimYates
Comment Utility
:-(
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now