• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Code not working in Mozilla

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
The below code works in Internet explorer but not in Mozill firefox. Could anyone please tell what could be problem.

<%@page language="java" import="sun.jdbc.odbc.*,java.sql.*,java.util.*;"%>
<jsp:useBean id="bhasar" class="rms.common.EncryptionUtils" scope="page"></jsp:useBean>
<%
java.util.Date d = new java.util.Date();
String qStr = "";
String username = request.getParameter("username");
String area = request.getParameter("area");
String password = request.getParameter("password");
String s1=bhasar.encrypt(username);
String s2=bhasar.encrypt(area);
String s3=bhasar.encrypt(password);
String hintquestion = request.getParameter("hintquestion");
String hintanswer = request.getParameter("hintanswer");
session.setAttribute("username",username);
session.setAttribute("area",area);
session.setAttribute("password",password);
session.setAttribute("hintquestion",hintquestion);
session.setAttribute("hintanswer",hintanswer);
%>
<form name="postform" method="post" action="http://www.abc.com/authenticate.jsp">
<input type="hidden" name="token1" value="<%=s1%>" />
<input type="hidden" name="token2" value="<%=s2%>" />
<input type="hidden" name="token3" value="<%=s3%>" />
</form>
<script>
document.postform.submit();
</script>

regards
Prashanth
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not understand why in the world you would post a form as soon as it loads when you can do that directly with the server.

But maybe submit the form onload and not inline.

Eric
 
Prashanth Chandra
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks for your valuable suggestion my dear friend. But the real problem is mozilla is very strict about the tags like the html and body tags are a must. Anyways the issue has been resolved. Thanks once again for your really really valuable suggestion.


regards
Prashanth
 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic