Dynamic page content display

S

sconeek

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.
 
I

isamura

: 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.
:
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
 
S

sconeek

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*
 
I

isamura

: 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top