Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Dynamic page content display

Thread view: 
sconeek@gmail.com - 18 Jan 2006 21:42 GMT
hi all,

i am working on a java tapestry based web application. i have a lot of
web pages in HTML, JavaScript which talk to a java backend which
connects to a Postgres DB. Now my HTML pages contain a few dynamically
updated pages which update information in real time from the DB.

my problem is that if the user doesnt login and tries to visit those
pages, they should be redirected to the user login page where they have
to enter their username and password. now i am able to redirect them
but the corresponding login page does not get displayed. i mean i know
that the user is redirected to that page, but it just doesnt render. i
have a javascript check on that page which checks if the username and
password field is entered with some information. when i come to that
*empty* page and press enter on the keyboard it comes up with a dialog
box saying that the username field cannot be blank. so obviously the
user is on that page but it just doesnt render.

can somebody help me out with this problem coz i dont have a clue whats
wrong there. its causing me a lot of grief.

thanks.
isamura - 18 Jan 2006 22:07 GMT
: hi all,
:
[quoted text clipped - 13 lines]
: box saying that the username field cannot be blank. so obviously the
: user is on that page but it just doesnt render.

Are you really really sure the redirect is working? How can you tell?

Perhaps JS is disabled in the browser. It can be and can cause you more grief.

.k
sconeek@gmail.com - 18 Jan 2006 22:30 GMT
i can tell coz when i hit the enter key a dialog box comes up saying
you have not entered anything in the password field and this check
happens on the login page. so that page is definately there but its
just not rendering *i think so anyways*
isamura - 18 Jan 2006 22:37 GMT
: i can tell coz when i hit the enter key a dialog box comes up saying
: you have not entered anything in the password field and this check
: happens on the login page. so that page is definately there but its
: just not rendering *i think so anyways*

Try "view source" from the browser. It may tell you where it dies.

.k


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.