Help coderanch get a
new server
by contributing to the fundraiser

Ven Red

Greenhorn
+ Follow
since Nov 10, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ven Red

Thanks for the quick reply.

return false; did not work for some reason.

Since i am using struts, tiles, request.getRequestURl() returns some jsp page rather than some action(abcd.do etc), so end up in WEB-INF/layouts/abcd.jsp
is there any way i can get the current action or current url some thing like https://localhost:9444/ABCD/XYZ/abcd.do

Thanks for your help.
14 years ago
Let me explain little more clarity.

I am trying to logout the application and as soon i click on logout link, java script promtps for confirmation. If user confirms, the application will be logged out and prompts for closing the window, and if clicked yes the window will be closed. This is happy scenario.

When the user clicks logout and in the prompt if the user chooses 'No' (no logout scenario), the application still submits to the context root and goes to the index.jsp page.(Java script doesn't stop submitting).But i want the applicaion should stop submiting to any action adn let the user stays in the same page.

Hope i am clear this time.
14 years ago
Hi All

I am trying to logout the application using j_security_logout and with in the javascript i am looking for confirmation from the user and if the user cliecks confirm the application will logout, if not application should stay where it is now. But the application is being submitted and going to application context root. Is there any way that i can stop this action? Please help.

Belos is my code

14 years ago
Hi

how can i set the backing bean values(properties) to null in java scipt.

My case is:

ented to and from dates in a screen , which maps the entered values to backing bean. if it successfully gets the records from the databse i can continue to the next screen and if not come back same screen with values. This part is done. but if i goto any part of the other website by clicking the links provided in the page ...it should nullify the entered values and leave the page.(just setting the form field values to null doen't work here, since the fiedls are mapped to backing bean properties, so we need to change them). Can we do this java script? or any other way?

Thanks
Ven
16 years ago
JSF
Hi

how can i show the scroll bar for a data table , if it has more than 10 rows? I tried using div tag with style attribute defined some thing like below.

<h:panelgrid ....>
<div style="overflow...blah..blah">
<h:datatable .....>
blah...blah
</h:datatable>
</div>

but my page doen' disply the crollbar...ami missing any thing???
</panelgrid>
16 years ago
JSF
Hi All

My requirement is :
Page1.jsp - enter first ,last name, gender and Date of birth
request scoped backing bean gets these and goes to next page and displays the same in page2.jsp. In page2.jsp for first name i am using a hyper link which needs to call a session scoped backing bean method and do some logic in the method and go to page3.jsp. I am puzzled why Hyper link doesn't able to call the session scoped method. am i missing any thing?

Thanks
ven
16 years ago
JSF