here is my problem:
When user logs-in : he is authenticated, and if success directed to
mainMenu page. So the url of mainMenu is http://127...../login.do?
There are some Lins on mainMenu page to navigate in the site. When i
click on some link say "view profile" and hit "back button" to come
back to my previous page - it is obviously taking me to the
http://127..../login.do?un=t&pw=t url. But unlike IE or other PC
browsers which just display the page, it is performing the login.do?
action again and authenticating the user automatically and then
taking me to mainMenu. Here I am saved, as it isn't causing any big
But this continues as all my other pages/links contact server and are
redirected from there. In those cases it's really becoming a huge
problem, For ex:
From mainMenu - I click on "remove item" link and remove an item from
DB. After doing that successfully I will be redirected from the
server back to my MainMenu and this time the URL of my mainMenu page
will be http://127..../removeItem.do?item=123
When I click on some other link on mainMenu say "view profile" and
hit "back button" to come back to my previous page - it is taking me
to the http://127..../removeItem.do?item=123 url and this time it is
really taking me to the removeItem page, instead of mainMenu.
I don't know how I can make it behave like IE which usually redirect
to such server-redirected urls and doesn't try to perform the action
mentioned in the url.
Did you find an answer to your question yet?
One thing that would probably help get your a quicker answer is to post something up on a real website somewhere that people can hit. That way, we can actually see what's going on versus what's supposed to be happening. It's difficult to provide an intelligent answer when the question is difficult to grasp in a few sentences.
So...having said that...I am going to take a stab at answering your question.
Use an explicit prev in your WML markup. And don't call it "Back". Label it something different (i.e. Previous) since Nokia phones have a permanent "back" button. In most Nokia phones, this will show up as an item under the Options softkey. The permanent back button will always pop the last item that was pushed onto the history stack.
(You can thank our friends in the WAP forum for not putting implicit prev in WML. For reasons such as this WML didn't take off very well in the US.)
You could also just provide a link on the page to go back to the calling WML. i.e. "Click 'here' to go back". With the word "here" wrapped in the <a href>. It's really a forward navigation though.
I am having a problem with my WAP application which im sure you could solve after reading your posting. I would be very very grateful if you could help.