Tagged Questions
0
votes
5answers
6k views
how can i pass value from javascript to a java class in struts2?
function redirect(id){
alert(id);
document.forms["AddToCart"].submit();
}
This is my javascript. How can i pass the value of 'id' into AddToCart.java. I am using struts2 framework.
0
votes
1answer
596 views
configure log4javascript to struts web application
How can we write the JavaScript info and error messages to the log file using log4j.
Please find the code below
<script type="text/javascript" ...
1
vote
3answers
11k views
How to pass an array of string in a url
Hello i have an url in my jsp and i want to pass an array of string in this url to recover in my ActionForm
1
vote
2answers
1k views
How to expire webpage when back/forward from browser button
I want to implement following features to my one of the website project;
I Don't want to let user navigate between pages. Page must be expired. Like onlinesbi or some other secure site.
If user log ...
0
votes
1answer
942 views
Using jQuery validation plugin with a form written in struts
I want to implement the jQuery validation plugin for use in a web application written in java and struts. I just want to use it to validate form inputs to see if they conform to certain rules before ...
0
votes
1answer
509 views
How to handle newlines in a Struts form that relies on JavaScript
I have a Struts form which contains a Map:
private Map<Long, String> questionAnswers = new TreeMap<Long, String>();
I have the normal getter and setter for this variable (not shown ...
0
votes
2answers
855 views
Can't access property in returned object
I've got a problem where I can't seem to query my JSON coming back, I can print out the entire response though, here's my JSON response, I can only see this when I do a msgBox() prompt:
{ "Addresses" ...
0
votes
2answers
2k views
How to use javascript to include struts html tag?
I have a check box and a text box.
I have used struts tags and
Now i need to validate that if the check box is checked, i should gray out (disable) the text box. If it is unchecked the text box ...
0
votes
3answers
2k views
Alternative for JavaScript onUnload
there is an alternative to the Javascript onUnload? I use JSP Jakarta Struts framework with a Servlets.
I must know, when is window closing, because not everyone clicks on Logout button.
How do you ...