Solved

JSP form sumitted to another JSP page returns source code.

Posted on 2004-09-30
5
322 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
ID: 12195507
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
ID: 12200253
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
ID: 12200367
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
ID: 12201502
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
ID: 12400130
:-(
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exception creating bean of class 5 205
Servlet Login session time and authentication using Filter 6 71
Help with LDAp login using jsp 6 118
servlet concurrency 13 111
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Ransomware continues to grow in reach and sophistication, putting data everywhere at risk. Learn how to avoid being caught in its sinister clutches with these 11 key tips.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 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