how to redirect to struts action from java script?
if condition in the script got success then i need to invoke one action in the config xml, otherwise no action inv
try it
window.location='youractionname'
This will redirect your window into your destination
If you want to sent your values to other page, then follow this method
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
Insert title here
What I modified is, changed the function calling from button to form submit. And removed the unwanted things from function