Originally posted by vjy chin:
Ben,
I couldnt find a way to open a pop up from a servlet.
vjy chin wrote:Ben,
thanks for the reply. Actually I found a solution which will work for me, though I couldnt find a way to open a pop up from a servlet.
The response from the servlet comes to the jsp page and in the jsp page I am using onLoad method in the body tag. The onLoad method checks for a particular string. If the string is equal to the value I am checking, the pop up window opens.
If anyone wants still mroe details, I would be happy to provide.
Thanks
Srinivas Reddy Patelu wrote:In your customer.jsp, call something like browse details(java script call)
<script language="javascript" type="text/javascript">
function callBrowseHierarchy(){
window.open("<%=contextpath%>/action.do","Browse","left=600,top=450,width=350,height=160,toolbar=0,resizable=0");
}
This will make a call to action class. Action class will thorow your generate.jsp as pop up window.
Thanks
Save India From Corruption - Anna Hazare.