Having problem implementin javabeans in JSP

here is my code:
<html>
<body>
<%@ page language="java" import="dbBean"\%>
<jsp:useBean id="dbBean" scope="request" class="dbBean" />
<%
dbBean.setUserID(request.getParameter("id"));
dbBean.setUserPass(request.getParameter("pass"));
dbBean.setFirstName(request.getParameter("fname"));
dbBean.setLastName(request.getParameter("lname"));
dbBean.setEmail(request.getParameter("email"));
%>
The result of the query is:
<table>
<tr>
<th>UserID </th> <th> UserPass </th> <th> FirstName </th><th>LastName
</th><th>Email </th>
</tr>
<%= dbBean.InsertInfo() %>
</table>
<p>
</body>
</html>
<html>
<head>
<title>Register New Users</title>
<SCRIPT LANGUAGE=JAVASCRIPT>
<!--//var correct = true
function checkData(){
if (document.FrmAdd.fname.value == ""){
     alert("Please enter First Name!");
     FrmAdd.fname.focus();
     FrmAdd.fname.select();
     return false; }
else if (document.FrmAdd.lname.value == ""){
     alert("Please enter Last Name!");
     FrmAdd.lname.focus();
     FrmAdd.lname.select();
     return false;
else if(document.FrmAdd.email.value == ""){
     alert("You must type in an email address")
     FrmAdd.email.focus()
     FrmAdd.email.focus()
     return false
//if the emailAddrs does not contain the @ symbol
else if(document.FrmAdd.email.value.indexOf('@')== -1){
     alert("Your email address is missing an @ symbol")
     FrmAdd.email.focus()
     FrmAdd.email.focus()
     return false
//if the emailAddrs does not contain a full stop
else if(document.FrmAdd.email.value.indexOf('.')== -1){
     alert("Your email address is missing a period")
     FrmAdd.email.focus()
     FrmAdd.email.focus()
     return false
else if (document.FrmAdd.id.value == ""){
     alert("Please enter Login ID!");
     FrmAdd.id.focus();
     FrmAdd.id.select();
     return false;}
else if (document.FrmAdd.pass.value == ""){
     alert("Please enter Login Password!");
     FrmAdd.pass.focus();
     FrmAdd.pass.select();
     return false;}
else if (document.FrmAdd.pass1.value == ""){
     alert("Please enter Login Password!");
     FrmAdd.pass1.focus();
     FrmAdd.pass1.select();
     return false; }
else if(document.FrmAdd.pass.value != document.FrmAdd.pass1.value){
     alert("Both password doesnt match");
     FrmAdd.pass1.focus();
     FrmAdd.pass1.select();
     return false;}
return true;
//-->
</SCRIPT>
</head>
<form name="FrmAdd" method="post" action="registration1.jsp" onSubmit="return checkData();">
<body>
<Center>
<table border="0">
<tr><td align="center">
     <font face = "verdana" size ="4" color="darkblue"><b><I>Welcome to Registration Page</I></b></font>
</td><tr>
</table>
<table>
<tr>
     <font face="verdana" size="1">Home</font>
     <td bgcolor="#93bee2" style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"
colspan="2" align="middle">
<font Face="verdana" color="Darkblue" size="2">Registration</font></td>
</tr>
<tr></tr><tr></tr>
<tr>
<td bgcolor="#dbeaf5" style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"
colspan="2" align="middle">
     <font Face="verdana" color="Darkblue" size="2">Profile</font>
</td></tr>
<tr>
     <td cellspacing="0" cellpadding="0" align="left"><font size="2"><b>First Name</b></font></td>
<td>
<input name="fname" size=23 maxlength=40 tabindex ="1" style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" ></td>
</tr>
<tr>
     <td cellspacing="0" cellpadding="0" align="left"><font size="2"><b>Last Name</b></font></td>
<td>
<input name="lname" size=23 maxlength=40 tabindex="2" style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" ></td>
</tr>
<tr>
     <td cellspacing="0" cellpadding="0" align="left"><font size="2"><b>Email Address</b></font></td>
<td>
<input name="email" size=17 maxlength=30 tabindex="3" style="FONT-SIZE: 8pt; WIDTH: 154px; FONT-FAMILY: Verdana; HEIGHT: 19px"></td>
</tr>
<tr>
<td style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"
colspan=2 align="middle"><hr color="#dbeaf5"></td>
</tr>
<tr>
<td bgcolor="#dbeaf5" style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"
colspan=2 align="middle">
     <font Face="verdana" color="Darkblue" size="2">Account Information</font>
     </td>
</tr>
<tr>
     <td cellspacing="0" cellpadding="0" align="left"><font size="2"><b>Sign-in</b></font></td>
<td><input name="id" size=9 maxlength=9 tabindex="4" style="FONT-SIZE: 8pt; WIDTH: 128px; FONT-FAMILY: Verdana; HEIGHT: 19px"
></td>
</tr>
<tr>
     <td cellspacing="0" cellpadding="0" align="left"><font size="2"><b>Password</b></font></td>
<td> <input type="password" name="pass" size=25 maxlength=25 tabindex="5" style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" ></td>
</tr>
<tr>
     <td cellspacing="0" cellpadding="0" align="left"><font size="2"><b>Re-Enter Password</b></font></td>
<td>
<input type="password" name="pass1" size=25 maxlength=25 tabindex="5" style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" ></td>
</tr>
</table>
<table>
<tr>
<td cellspacing="0" cellpadding="0" align="middle">
<INPUT type=submit value="Signup" tabindex="9">
</td>
</tr>
</table>
</form>
</Center>
</body>
</html>
import java.sql.*;
import java.io.*;
public class dbBean{
     private String dbURL = "jdbc:odbc:TheDataSourceName";
     private String dbDriver = "sun:jdbc:odbc:jdbcOdbcDriver";
     private Connection dbCon;
     String UserID = null;
     String UserPass = null;
     String Email = null;
     String FirstName = null;
     String LastName = null;
public dbBean(){
     super();
public String getUserID(){
     return this.UserID;
public void setUserID(String UserID){
     this.UserID = UserID;
public String getUserPass(){
     return this.UserPass;
public void setUserPass(String UserPass){
     this.UserPass = UserPass;
public String getEmail(){
     return this.Email;
public void setEmail(String Email){
     this.Email = Email;
public String getFirstName(){
     return this.FirstName;
public void setFirstName(String FirstName){
     this.FirstName = FirstName;
public String getLastName(){
     return this.LastName;
public void setLastName(String LastName){
     this.LastName = LastName;
public String connect(){
     try
          Class.forName(dbDriver);
          return "Driver Loaded";
     }catch(Exception E){
          return "Unable to load Driver";
public String insertInfo(){
     try{
          dbCon = DriverManager.getConnection(dbURL);
          PreparedStatement ps = null;
          ps = dbCon.prepareStatement("Insert INTO Logins " +
          " (userName, userPass, firstName, lastName, email) Values (?, ?, ?, ?, ?) ");
               ps.clearParameters();
               ps.setString(1, this.getUserID());
               ps.setString(2, this.getUserPass());
               ps.setString(3, this.getFirstName());
               ps.setString(4, this.getLastName());
               ps.setString(5, this.getEmail());
               ps.executeUpdate();
               ps.close();
               dbCon.close();
               return "Inserted row";
          }catch(Exception e){
          return "Error" + e.toString();
          }//catch(SQLException e1){
          //return "SQLException: " + e1.getMessage();
can anyone help me out i have paste my .jsp file, html file, and javabeans file

i took out that line..now i'm getting this error:
i put all my .html and .jsp file under webapps\sgoyal
sgoyal is my folder name under webapps..
i put all of my .class files under webapps\sgoyal\WEB-INF\classes
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
An error occurred at line: 3 in the jsp file: /registration1.jsp
Generated servlet error:
C:\unzipped\jakarta-tomcat-4.0.6\jakarta-tomcat-4.0.6\work\Standalone\localhost\sgoyal\registration1$jsp.java:60: Class org.apache.jsp.dbBean not found.
dbBean dbBean = null;
^
An error occurred at line: 3 in the jsp file: /registration1.jsp
Generated servlet error:
C:\unzipped\jakarta-tomcat-4.0.6\jakarta-tomcat-4.0.6\work\Standalone\localhost\sgoyal\registration1$jsp.java:63: Class org.apache.jsp.dbBean not found.
dbBean= (dbBean)
^
An error occurred at line: 3 in the jsp file: /registration1.jsp
Generated servlet error:
C:\unzipped\jakarta-tomcat-4.0.6\jakarta-tomcat-4.0.6\work\Standalone\localhost\sgoyal\registration1$jsp.java:68: Class org.apache.jsp.dbBean not found.
dbBean = (dbBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "dbBean");
^
3 errors, 1 warning
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
     at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
     at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
     at java.lang.Thread.run(Thread.java:536)
please help me out it's my first time i'm javaBean

Similar Messages

  • Problem with JavaBeans in JSP.IT'S URGENT!!!

    Hi, i have problems with JavaBeans in JSP.
    In a jsp file( locating in ROOT directory of tomcat 4.0.6 :jakarta-tomcat-4.0.6\webapps\root ) i have this code:
    <jsp:useBean id="paramBean" class="licentza.ParamBean" />
    <jsp:setProperty name="paramBean"
    property="nume"
              value='<%= request.getParameter("numeUser") %>' />
    where ParamBean it's a "bean" class locating in jakarta-tomcat-4.0.6\webapps\examples\web-inf\classes\licentza (licentza is the package i'm using).
    And i get this error:
    Generated servlet error:
    D:\jakarta-tomcat-4.0.6\work\Standalone\localhost\_\dora\intrare2$jsp.java:67: Class licentza.ParamBean not found.
    ParamBean paramBean = null;
    What is the problem?Thank you.

    Hi,
    Put the class file or the package under :jakarta-tomcat-4.0.6\webapps\root\WEB-INF\classes.
    Rajesh

  • Having problem with javabean that generate password

    i have created a javabean for generating password.
    this is my java coding.
    package autogenerate;
    import java.util.*;
    public class GeneratePwId
    private String Passwd;
    public String getPasswd()
    return this.Passwd;
    public void setPasswd(String Psd)
    char[] letters = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
    'J', 'K', 'L', 'M', 'N', 'P', 'R', 'T',
    'U', 'V', 'W', 'X', 'Y', 'a', 'b', 'c',
    'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
    'm', 'n', 'p', 'q', 'r', 's', 't', 'u',
    'v', 'w', 'x', 'y', 'z', '0', '1', '2',
    '3', '4', '5', '6', '7', '8', '9'
    Psd = "" ;
    while( Psd.length() < 10 )
    Psd += letters[ (int)( Math.random() * letters.length ) ] ;
    this.Passwd = Psd;
    and trying to use a jsp to retrieve this password.
    <html>
    <head>
    <title>
    Try retrieving password
    </title>
    </head>
    <body>
    <jsp:useBean class="autogenerate.GeneratePwId" id="bean0" scope="page"/>
    <%
    String Password = bean0.getPasswd();
    out.println(Password);
    %>
    <%=bean0.getPasswd()%>
    </body>
    </html>
    i try to retrieve the password from javabean and display it out. but the result i got is always null. may i know what is the problem with my javabean? or my jsp?
    can anyone help me please?
    Thanks alot

    this is my .java code for getter and setter
    package autogenerate;
    import java.util.*;
    public class GeneratePwId
    private String passwd;
    public String getPasswd()
         return this.passwd;
    public void setPasswd(int length)
    char[] letters = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
    'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
    'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a',
    'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
    'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',
    't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1',
    '2', '3', '4', '5', '6', '7', '8', '9'
    String psd = "" ;
    length = 10;
    while( psd.length() < length )
    psd += letters[ (int)( Math.random() * letters.length ) ] ;
    this.passwd = psd;
    and this is my jsp code
    <html>
    <head>
    <title>
    Try retrieving password
    </title>
    </head>
    <body>
    <jsp:useBean class="autogenerate.GeneratePwId" id="bean0" scope="page"/>
    <%
    String Password = bean0.getPasswd();
    %>
    <%=Password%>
    <%=bean0.getPasswd()%>
    </body>
    </html>

  • Having Problem with JSP In Netscape!HELP!!!

    HI to all! I�m having problem with the jsp that i have :( If i use the Internet explorer it works but at Netscape... it doesn�t work :( The value of "PTE" is null... I need help !!!Please! I think the HTML IS NOT HELPING ...
    the code is :
    <html>
    <head>
    <!--tp001_transferencias_oic_POR.jsp-->
    <title>BBVA - Transfer&ecirc;ncias - Transfer&ecirc;ncias OIC</title>
    <LINK rel=STYLESHEET type='text/css' href="estilos/tablas.css">
    <!--script language="javascript" src "js/dynlayer.js"></script-->
    <script language="Javascript" src="js/banner.js"></script>
    <script language="Javascript" src="js/tp_oic.js"></script>
    <script language="Javascript" src="js/utilidades.js"></script>
    <script language="javascript" src="js/limpar.js"></script>
    <script language="javascript" src="js/tiempo.js"></script>
    </HEAD>
    <body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" class="pag-contenido" onLoad="controlSesion();">
    <%@ include file ="includecbtf.jsp" %>
    <% String s = (String)datos.get("dt");
    java.util.StringTokenizer str = new java.util.StringTokenizer(s, "-");
    String anoServer = str.nextToken() ;
    String mesServer = str.nextToken() ;
    String diaServer = str.nextToken() ;
    %>
    <!--1�form-->
    <form method="post" name="captura" action="<%=urls.get("action")%>">
    <center> <!--1�center-->
    <br>
    <!--1�table-->
    <table border="0" cellpadding="0" cellspacing="0" width="500"> <!--table das transf e nome-->
    <tr>
    <td colspan="3"><img src="images/linea.gif" border="0"></td>
    </tr>
    <tr>
    <td width="250"><img src="images/traspasos.gif" border="0"></td>
    <td width="82"><img src="images/titular.gif" border="0"></td>
    <td width="169" class="fondotitular"><font class="texttitular"><%=datos.get("usuario")%></font></td>
    </tr>
    <tr>
    <td colspan="3"><img src="images/linea.gif" border="0"></td>
    </tr>
    </table> <!--Fim do 1� table-->
    <br><br>
    </center> <!--Fim do 1� Center-->
    <center> <!--2� Center-->
    <!--Conteudo do table 2-->
    <table cellpadding="3" cellspacing="1" border="0" align="center" width="500"> <!--table referente a mensagem-->
    <tr>
    <td class="cabeceratitulo" colspan="2"><p class="titulotabla">Nota : As Transfer&ecirc;ncias para outras Institui&ccedil;&otilde;es de Cr&eacute;dito decorrem de acordo com os hor&aacute;rios da Compensa&ccedil;&atilde;o Interbanc&aacute;ria, n&atilde;o se responsabilizando o BBVA pela sua realiza&ccedil;&atilde;o fora das regras em uso.</p></td>
    </tr>
    <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
    </table> <!--fim do table2-->
    </center> <!--Fim do 2� Center-->
    <center> <!-- Inicio 3� Center-->
    <!--Conteudo da table Combo-->
    <!--Table3-->
    <table cellpadding="3" cellspacing="1" border="0" align="center" width="500">
    <tr>
    <td class="cabeceratitulo" colspan="2"><p class="titulotabla">Transfer&ecirc;ncia Conta a Conta para outras Institui&ccedil;&ocirc;es de Cr&eacute;dito</p></td>
    </tr>
    <tr>
    <td class="formgrisosc" width="100">
    <p class="dato">Conta Ordenante:  </p></td>
    <td class="formgrisosc" width="300">
         <%
    java.util.Vector v = (java.util.Vector)(datos.get("ListaCuentas"));
    java.util.Hashtable elem;
    java.util.Enumeration e = v.elements();
    %>
    <!--1� Select-->
    <select name="conta" size="1" class="formgrisosc">
    <%
    while (e.hasMoreElements()){
    elem = (com.ibm.dse.base.Hashtable)(e.nextElement());
    String cuenta = ((String)elem.get("s_banco")).trim() + "-"+((String)elem.get("s_oficina")).trim()+((String)elem.get("s_dcontrol")).trim()+((String)elem.get("s_num_cuenta")).trim();
    out.println("<option value=\"" + ((String)elem.get("s_tipo")) + "$" + ((String)elem.get("s_clave_asunto")) + "\">" + cuenta + "</option>");
    %>
    </select> <!--Fim do 1� Select-->
    </td>
    </tr>
    <tr>
    <td class="formgriscla" width="100"><p class="dato">Data de Processamento:</p></td>
    <td class="formgriscla">
    <input type="text" name="dia" size="2"class="formgriscla" value="<%=diaServer %>" maxlength="2" class="formgriscla"> / 
    <input type="text" name="mes" size="2"class="formgriscla" value="<%=mesServer %>" maxlength="2" class="formgriscla"> / 
    <input type="text" name="ano" size="4"class="formgriscla" value="<%=anoServer %>" maxlength="4" class="formgriscla"></td>
    <input type="hidden" name="dact" size="2"class="formgriscla" value="<%=diaServer %>" maxlength="2" class="formgriscla">
    <input type="hidden" name="mact" size="2"class="formgriscla" value="<%=mesServer %>" maxlength="2" class="formgriscla">
    <input type="hidden" name="aact" size="4"class="formgriscla" value="<%=anoServer %>" maxlength="4" class="formgriscla"></td>
    </tr>
    <tr>
    <td class="formgrisosc" width="100"><p class="dato">Moeda: </p></td>
    <td class="formgrisosc"><p class="dato">
    <!--Select 2�Ver este bem-->
    <select name="Moeda" size="1" class="formgrisosc">
    <option value="PTE" selected>Escudos</option>      
    <option value="EUR">Euros</option>
    </select> </p>
    </td>
    </tr>
    <tr>
    <td class="formgriscla" width="100"><p class="dato">Import&acirc;ncia:</p></td>
    <td class="formgriscla"><input type="text" name="importancia" size="20" maxlength="15" class="formgriscla"></td>
    </tr>
    <tr>
    <td class="formgrisosc" width="100"><p class="dato">Ref&ecirc;rencia:</p></td>
    <td class="formgrisosc"><input type="text" name="ref" size="15" maxlength="10" class="formgrisosc"></td>
    </tr>
    <tr>
    <td class="formgriscla" width="100"><p class="dato">NIB Benefici&aacute;rio:</p></td>
    <td class="formgriscla"><input type="text" name="nibBeneficiario" size="30" maxlength="21" class="formgriscla"></td>
    </tr>
    <tr>
    <td class="formgrisosc" width="100"><p class="dato">Descri&ccedil;&atilde;o p/ Conta D&eacute;bito:</p></td>
    <td class="formgrisosc"><input type="text" name="debito" size="45" maxlength="45" class="formgrisosc"></td>
    </tr>
    <tr>
    <td class="formgriscla" width="100"><p class="dato">Descri&ccedil;&atilde;o p/ Conta Cr&eacute;dito:</p></td>
    <td class="formgriscla"><input type="text" name="credito" size="45" maxlength="45" class="formgriscla"></td>
    </tr>
    <tr>
    <td class="cabecera" colspan="2"><img src="images/1x1.gif" width=1 height=3 border="0"></td>
    </tr>
    </table> <!--Fim do table 3-->
    </center> <!--Fim do 3�center-->
    <center> <!--Inicio do 4� Center-->
    <!--Inicio da table 4�-->
    <table border="0" cellspacing="2" cellpadding="0">
    <tr>
    <td valign="top"><img src="images/limpar.gif" border="0" alt="Apagar"></td>
    <td valign="top"><img src="images/continuar.gif" border="0" alt="Continuar"></td>
    </tr>
    </table> <!--Fim do 4� Table-->
    </form> <!--Fim do FORM-->
    </center> <!--Fim do 4� Center-->
    </body> <!--Fim do BODY-->
    </html> <!--Fim do Html-->
    Thanks pepole!

    thanks people! when i try to validate the action "PTE" he gaves me (if i put a ALERT...) null.
    the js code is : (Moeda is coin )
    //testa amount
    // var ent = (f.amount.value);
    var tamanho = f.amount.value.length;
    var valor = f.amount.value;
    decimals = 2; // Apenas pode ter duas casas decimais?
    if (((tamanho == 0) || (valor == 0)) && ok)
    alert ("A import�ncia tem de ser maior que zero.");
    f.amount.focus();
    f.amount.select();
    ok = false;
    else
         alert(f.Moeda.value);
    if((f.Moeda.value=="PTE") && ok)
    for (j = 0; j < tamanho; j++)
    xx = valor.charAt(j);     
         if ((!(xx.match(numeroER)) && ok))
    alert ("O Campo Import�ncia deve ser num�rico inteiro.");     
         f.amount.focus();
         f.amount.select();
         ok = false;
              //if para limitar valor dos Escudos      
         if (ok)
         if (eval(valor) > 1000000)
         alert ("The field amount must be maxium 1 000 000 Pte.");     
         f.amount.focus();
         f.amount.select();
         ok = false;
    else
         if (ok)
              //function checkDecimals(f.amount, f.importancia.value) {
              if (isNaN(valor)) {
                   alert("O Campo Import�ncia deve ser num�rico e como separador decimal, o ponto.");
                   f.amount.select();
                   f.amount.focus();
                   ok = false;
              else {
                   timeshundred = parseFloat(valor * Math.pow(10, decimals));
                   integervalue = parseInt(parseFloat(valor) * Math.pow(10, decimals));
                   if (timeshundred != integervalue)
                   alert ("Apenas pode ter " + decimals + " casas decimais. Por favor tente outra vez.");
                   f.amount.select();
                   f.amount.focus();
                   ok = false;
              if (ok)
              {  //if to limit the value of the  Euros
         if(eval(valor) > 4988)
    alert ("The field amount must be maxium 4988 Eur.");     
         f.amount.focus();
         f.amount.select();
         ok = false;
    }//end of amount

  • Having Problem with IFRAME (JSP) Netscape!HELP!!!

    Hi ppl :)
    I�m having problems working out with netscape. If i use a script with one iframe(and i must use it...) at I.Explorer it works but with netscape, no way, the "box" doesn�t appear. :( I need HELP!!
    tHIS IS THE CODE :)
    <html>
    <head>
    <!--fd002_captura_dados_POR.jsp-->
    <title>BBVA - Fundos - Subscri&ccedil;&atilde;o de Fundos</title>
    <LINK rel=STYLESHEET type='text/css' href="estilos/tablas.css">
    <script language="Javascript" src="js/fd001_captura_dados.js"></script>
    <script language="javascript" src="js/limpar.js"></script>
    <script language="javascript" src="js/tiempo.js"></script>
    </HEAD>
    <body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" class="pag-contenido" onLoad="controlSesion();">
    <%@ include file="includecbtf.jsp" %>
    <%
    out.println("<form method=\"post\" name=\"captura\" action=\"" + urls.get("action") + "\"> ");
    %>
    <br>
    <center>
    <table border="0" cellpadding="0" cellspacing="0" width="500">
    <tr>
    <td colspan="3" ><img src="images/linea1.gif" border="0"></td>
    </tr>
    <tr>
    <td width="250"><img src="images/fundos.gif" border="0"></td>
    <td width="82"><img src="images/titular.gif" border="0"></td>
    <td width="169" class="fondotitular"><font class="texttitular"><%=datos.get("usuario")%></font></td>
    </tr>
    <tr>
    <td colspan="3"><img src="images/linea1.gif" border="0"></td>
    </tr>
    </table>
    <br><br>
    </center>
    <center>
    <table cellpadding="3" cellspacing="1" border="0" width="535">
    <tr>
    <td class="cabeceratitulo" colspan="4"><p class="titulotabla">Inten&ccedil;&atilde;o de Subscri&ccedil;&atilde;o do Fundo <%=datos.get("CodigoFundos")%></p></td>
         </tr>
         </td>     
    <table>
    <tr>
    <td class="cabeceratitulo" colspan="4"><p class="titulotabla">Condi&ccedil;&otilde;es</p></td>
    </tr>
    <tr>
    <td class=altas colspan="2" >
    <%
    java.lang.String selec1 = (java.lang.String)datos.get("CodigoFundos");
         String selec= selec1;
         String sel="";
         if(selec.equals("ACC"))
         sel= "fundo1.txt";
         if(selec.equals("APL"))
         sel= "fundo1.txt";
         if(selec.equals("BBVD"))
         sel= "fundo1.txt";
    if(selec.equals("BBVO"))
         sel= "fundo1.txt";
         if(selec.equals("BIT"))
         sel= "fundo1.txt";
         if(selec.equals("BON"))
         sel= "fundo1.txt";
    if(selec.equals("CAS"))
         sel= "fundo1.txt";
         if(selec.equals("CPZ"))
         sel= "fundo1.txt";
         if(selec.equals("EXT"))
         sel= "fundo1.txt";
         if(selec.equals("FINVEST"))
         sel= "fundo1.txt";
         if(selec.equals("GLO"))
         sel= "fundo1.txt";
         if(selec.equals("MIX30"))
         sel= "fundo1.txt";
         if(selec.equals("MIX60"))
         sel= "fundo1.txt";
         if(selec.equals("MI3"))
         sel= "fundo1.txt";
         if(selec.equals("MI6"))
         sel= "fundo1.txt";
         if(selec.equals("PPA"))
         sel= "fundo1.txt";          
    if(selec.equals("PPR"))
         sel= "fundo1.txt";
         if(selec.equals("TXV"))
         sel= "fundo1.txt";          
         %>
    <iframe width=500 height=300 src=js/<%=sel%>></iframe>
    </tr>
    <tr>
    <td align="right">
         <img src="images/aceito.gif" border="0" alt="Aceito">
    </td>
    <td>
         <img src="images/naceito.gif" border="0" alt="N�o Aceito">
    </td>
    </tr>
    </table>
    <br>
    </center>
    <center>
    <table cellpadding="3" cellspacing="1" border="0" width="535">
    <tr>
    <td class="cabeceratitulo" colspan="4"><p class="titulotabla">Inten&ccedil;&atilde;o de Subscri&ccedil;&atilde;o de Fundos</p></td>
         </tr>
    <tr>
    <td class="formgrisosc" width="120"><p class="dato">Seleccione Conta:     </p></td>
    <%
    java.util.Vector v = (java.util.Vector)(datos.get("ListaCuentas"));
    java.util.Hashtable elem;
    java.util.Enumeration e = v.elements();
    %>
                   <td class="formgrisosc" colspan="3">
    <select name="conta" size="1" class="formgrisosc">
    <%
    while (e.hasMoreElements()){
    elem = (com.ibm.dse.base.Hashtable)(e.nextElement());
    String cuenta = ((String)elem.get("s_banco")).trim()+"-"+((String)elem.get("s_oficina")).trim()+((String)elem.get("s_dcontrol")).trim()+((String)elem.get("s_num_cuenta")).trim();
    out.println("<option value=\"" + cuenta + "\">" + cuenta + "</option>");
    %>
    </select>
    </td>
    <tr>
    <td class="formgriscla" width="120"><p class="dato">Tipo de Subscri��o:</p></td>
    <td class="formgriscla" colspan="3">
              <select name="tiposubs" size="1" class="formgriscla">
    <option>Eventual</option>
    </select>
    </td>
    </tr-->
    <tr>
    <td class="cabecera" colspan="4"><img src="images/1x1.gif" width=1 height=3 border="0"></td>
    </tr>
    </table>
    <br><br>
    <table cellpadding="3" cellspacing="1" border="0" width="535">
    <tr>
    <td class="cabeceratitulo" colspan="4"><p class="titulotabla">Preencha um dos seguintes campos</p></td>
         </tr>
    <tr>
    <td class="formgrisosc" width="120"><p class="dato">N�mero de Up's:</p></td>
    <td class="formgrisosc" colspan="3">
    <input type="text" name="numero" size="15" maxlength="15" class="formgrisosc">
    </td>
    </tr>
    <tr>
    <td class="formgriscla" width="120"><p class="dato">Montante:</p></td>
    <td class="formgriscla" width="80"><input type="text" name="montante" size="15" maxlength="15" class="formgriscla"></td>
    <td class="formgriscla" width="50"><p class="dato">Moeda:</p></td>
    <td class="formgriscla">
    <select name="moeda" size="1" class="formgriscla">
    <option value="Escudos" selected>Escudos</option>
    <option value="Euro" >Euros</option>
    </select>
    </td>
    </tr>
    <tr>
    <td class="cabecera" colspan="4"><img src="images/1x1.gif" width=1 height=3 border="0"></td>
    </tr>
    </table>
    </center>
    <center>
    <table border="0" cellpadding="0" cellspacing="2">
    <tr>
    <td valign="top"><img src="images/limpar.gif" border="0" alt="Apagar"></td>
    <td valign="top"><img src="images/continuar.gif" border="0" alt="Continuar"></td>
    </tr>
    </table>
    </form>
    </center>
    <br><br>
    </body></html>
    Please help me out, because the iframes are terrible!
    thanks,
    Alex

    The <IFRAME> tag is IE specific; Netscape doesn't
    recognize it.
    Netscape uses the <LAYER> and <ILAYER> tags to
    accomplish the same thing; if you need to have a
    page-internal frame that has its own source, you'll
    need to use one of these tags.
    If you need to work with both browsers, you'll need to
    write out your tag based on the browser being used.
    Have fun!hello!
    I need one way to call another page, like you see in the code, a extension.txt, how can i do that?? can you make a sugestion?
    The <ilayer> doesn�t work :(

  • WebElements - Having problems putting CR report in WECollapsibleSection

    Hi there - 
    The user doc indicates putting a WEcontrol in a collaspible section  is possible - I am trying to put a CR report in the section and am having problems.
    Here's my code:
    WECollapsibleSection (ElementName, {@WE_OppListRiskReport}, OpenText, CloseText, Font, SectionWidth, SectionHeight)
    where {@WE_OppListRiskReport} is
    stringvar targetpath :=WETargetPath ("rpt","CUID" ,{@WE_OppListRiskPullCUID},"");
    (i've also tried other permutations of the placement of WETargetPath)...
    When I run my report with the collapsible section and click on the OpenText Link, the section appears, but what appears in it is the Opendoc URL:
    /OpenDocument/opendoc/openDocument.jsp?sType=rpt&sIDType=CUID&iDocID=ASHjBo78IzxEj_yzCRYc6uc
    I have used the target path to the same CR report in an iFrame and the report displays correctly so I know it can find the report correctly.
    Help!
    thanks!
    Pam
    PS.  Just into a week of using WE and loving it!!

    Hi Jamie -
    I have already encountered issues after I accidentlally copied/pasted code and left  2 physical webelements with the same name.    (hey!  why is that report loading in that frame??)   That wasn't the issue here, but your response made me go through my code with a fine tooth comb to verify that I hadn't done that.
    While I was double checking, I did some more experimenting and debugging.  This led me to an interesting discovery. 
    As a reminder, I am trying to 'load' crystal reports into iframes onto a Main 'portal' report.  My main report has iframes, collaspible sections, editbox controls and a flyout section with 5 elements.  Loading a report into a frame works fine for the 'independent ' iframes that are placed directly on my main report.   The expected report also loaded on the 'top' element of the FlyoutSection control.  (When I say 'works fine', I mean that the reports loaded into their respective iFrame controls when I open the Main 'portal' report)
    The 2 controls that I was having issues with were the CollapsibleSection and the  FlyoutSections (all but the top element.) . 
    In each case, I had defined iframes and targeted the iframes with Cystal reports within these controls.  When my main report loaded and I clicked on the 'Show Report' link to open the CollaspibleSection, I could see the outline of the iframe but within it,  was the never ending 'please wait ' window.  The report just never loaded.  I experienced the same thing when I put an iframe on the 2nd 'section' of a FlyoutSection control.   I knew that my code was correct because if I pulled the iframe code out of the control and put it directly on my Main 'portal' report, it worked like a charm.
    To me, it seemed as if, despite the 'please wait'  message, the iframe was NOT loading the report.   I was never prompted for parameters and the DB showed no I/O hits to indicate the report was hanging due to performance.      So just for the hell of it, I put a submit button within the content of the FlyoutSectionControl's second section (along with the existing iframe).  All the submit button did was force the report to be loaded into the same iFrame that was already there.  And, to my surprise, after pressing the button, the report loaded.
    I tried adding a submit button to the collaspible section as well and that seemed to force the report to load as well.
    Of course, this is really clugey.  My expectations are that when I click on the FlyingSectionControl's element headers, the reports wherein would load and, if I click on 'show report', the report will load as the collaspiblesection expands.  I think users will also have the same expections.  It's seems unnecessarily redundant to have a 'Show report' link open up and then the user have to click a button that says 'Do you really want to see the report' before the report will load.
    Fundamentally, these 2 controls differ from others because you need to 'click' on them to change their state.  Perhaps this 'click' is interfering with the report loading into the iframe?
    I'd love an explanation and also your input into how these controls could be 'preloaded' .
    thanks!
    -Pam
    Here's the code for my collaspible section (that finally worked)  - the only difference from the prior version is the addition of the WeSubmit(btn) function:
    stringvar item1:= WETargetPath ("rpt", "CUID", {@CUID_chart}, "weIframe=iframe5"  );
    stringvar OpenText:= "Show Chart";
    stringvar CloseText:= "HideChart";
    stringvar SectionWidth:= "3in";
    stringvar SectionHeight:= "2cm";
    stringvar insideframe :=WEIFrame ("iframe5", "item1", 400, 200, "yes") ;  <==if I leave out the target path here, the frame shows up empty at first (which is neater than seeing the 'please wait' message box))
    stringvar SectionElements:=   WESubmit("chartbtn","Button", "see chart",item1 , font)
    + WEBreak (2)+  insideframe;
    stringvar collaspiblegroup := WECollapsibleSection (ElementName, SectionElements, OpenText, CloseText, Font, SectionWidth, SectionHeight);
    collaspiblegroup + WEBuilder(collaspiblegroup,2);

  • Equium A100-027 PSAAQ - having problems accessing Internet with WLan

    Just installed WXP on my Equium A100-027 (PSAAQ) as Vista did not like. Now am having problems accessing Internet. What drivers do I need to download and how do I install them?
    Thanks.

    Hi,
    I would suggest you to check the driver site of toshiba
    -> http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp
    search for your machine and download the wlan drivers. If you dont know which one you need just download all of them and install em, one of that drivers MUST work. ;)
    Greets

  • Anyone having problems printing with aps?

    Any one having problems printing while using an ap?

    you need the drivers...
    win 7 32 bit:
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=439154&p...
    win 7 64 bit:
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=439154&p...
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

  • I am having problems because two phone numbers are on the Apple ID, how do I choose one for imessage?

    I am having problems because two phone numbers are on the Apple ID, how do I choose one for imessage?

    Hello,
    In my opinion, this is the best procedure to use to update your BB OS:
    http://supportforums.blackberry.com/t5/BlackBerry-Device-Software/How-To-Reload-Your-Operating-Syste...
    However, the official download site:
    http://us.blackberry.com/support/downloads/download_sites.jsp
    shows your installed OS to be the current version from your carrier. Therefore, how your friends got a newer OS is a question to ask them and/or your carrier.
    You are, of course, free to use (via the above procedure) any carriers OS package...if another has the newer OS you want, you can use it. If you choose to do so, then simply insert, between steps 1 and 2 in the above procedure, the deletion, on your PC, of a file named VENDOR.XML
    Good luck.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I am having problems converting videos to sync to my 5th gen iPod

    I am having problems converting videos to sync to my 5th gen iPod. I have used every encoder I can find and it will not sync. It loads into movies in iTunes but will not synk to the iPod. Please e-mail me if you have an answer.
    Thanks in advance
    [email protected]

    Hello cynthiaify, be sure you have the latest Java installed
    check it : http://www.java.com/en/download/installed.jsp
    http://www.java.com/en/download/manual.jsp
    and you need to accept a warning when you click the download button in keepvid website
    also KeepVid support the next sites ONLY:
    youtube, Dailymotion, 4shared, 5min, 9you, AlterVideo.net, Aniboom, blip.tv, Break, Clipfish.de, Clipser, Clip.vn, CollegeHumor, Cracked, Current, dekhona.com, DivxStage.eu, eHow, eBaumsWorld, Ensonhaber, Facebook, Flickr, Flukiest, FunnyJunk, FunnyOrDie, FunnyPlace.org, Metacafe, MySpace, Ning, Photobucket, RuTube, SoundCloud, Stagevu, TED, Tudou, TwitVid, VBOX7, videobb, VideoWeed.es, Veoh, Vimeo, zShare.net.
    thank you

  • Having problems with Bridge shutting down after saving photo in PS Cs5,,,,,,,,,  Also when i attempt to update either PS or bridge get an error message in Adobe application manger "Error loading updater workflow"

    Having problems with Bridge shutting down after saving photo in PS Cs5,,,,,,,,,  Also when i attempt to update either PS or bridge get an error message in Adobe application manger "Error loading updater workflow"

    Sorry for the late reply. My email firewall has become a little over zealous & sent a lot of my emails straight to my junk email folder, so I have only just now discovered your reply in my junk mail folder.
    The only "don't open files exceeding xxx megabytes" instruction I can find in my Prefs, is in the Bridge Prefs for Thumbnails, & mine is set at 1000mb. The biggest files I handle are bigger than 200mb so I should be able to open a few, not just one.
    However, this doesn't explain why I can open a psd format file of 180mb, close it, but then can't open a RAW format file of only 26mb immediately after.
    I can open the RAW file only if I restart my computer - very annoying!
    However, thanks for the advice about the video card & memory.
    So, I'm still stuck as to what the issue is.

  • Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    This is a major problem with Lollipop, but yo said it started 2 months ago.   Several people have fixed problem by removing FaceBook And Face book messenger and then re loading the apps again.   You might want to clear your cache before reloading.  Not sure this is your problem, but worth a try.  Good Luck

  • Hi I am having problems removing mail from trash folder. Can anyone help please

    Hi I am having problems removing mail from trash folder. I can send mails to the folder but cannot delete them permanently from the trash folder. I am using Iphone 3G and anm up to date with OS. Can anyone help please

    Check that there isn't a different Trash folder to the one with the proper Trash symbol on it.
    If you see one in your list of folders rather than a separate one, highlight it, then click on Mailbox...Use this mailbox for...Trash

  • I recently had to swap out my iphone 4s and I am having problems restoring photos and videos from icloud.  I get a message on my phone that says " the URL you are requesting is not found on this server".  Pics and videos have been deleted too.

    I recently had to swap out my iphone 4s and I am having problems restoring photos and videos from icloud.  When I restored my phone from icloud, half of my pics and videos have been deleted, the pics that were restored on my phone are very blurry, and the videos won't play.  I get a message on my phone that says " the URL you are requesting is not found on this server".  I have erased and reset my phone twice, but every time I do it, more pics and videos are deleted.  I have backed up to icloud and iphoto, however, some of the pics are no longer on iphoto either.  Is there someway to get the videos to play on my phone again?  Make the photos not as blurry as they are now and to restore the pics and videos that have been lost?  I really would love to have them back, this phone is supposed to be the best and right now it doesn't seem to be.  Please help if you can.

    I too have noticed that once i restored from iCloud. Pictures blurry and videos wont play!
    Need help too!!

  • Hi I am having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and loading then I get an error message saying unable to download app. Eventually,after many attempts it works.

    Hi Guys - for a few days I have been having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and downloading then eventually says unable to download app. Sometimes after many attempts it wil eventually work. I tested it on an old iPhone 3G and got the same problem so it is not an iOS 5 issue. My WI-FI connection is working fine. I was wondering if this is an App Store problem? Anyone else in the UK having this problem?

    Hi John
    iTunes Support wasn't of any use to me.
    I have also been having another problem - with BBC iPlayer and other video streaming not working due to insufficient bandwidth, despite my overall download speed being consistently around 50Gb.  This is also affecting AppleTV downloads
    I am using Virgin Media as my ISP, and was wondering whether you do as well.  This might be the common thread.
    -Bernard

Maybe you are looking for

  • How do I import photos from usb to iphoto?

    Sorry new to Mac I have old photos I have scanned would like to import them to Iphoto.

  • VS 2013 deletes ProjectTypeGuid for MVC4 from .csproj file

    I am on a team working on a long-term MVC 4 project. The solution was created in a previous version of VS. In VS 2013, when you right click the controllers folder and choose "add controller..." the only options are for WebAPI 2.  We discovered with o

  • BBP_EXTREQ - R/3 Outqueue runs on an error

    Hi @ all, currently we have a problem with the transfer of external requirements from R/3 (4.7, SAP_APPL=0024, PI=0013) to SRM. When I create a requesition which is specified for the download to the SRM it can be found in the table EPRTRANS. Then I s

  • [SOLVED] Networking stopped working

    Hello, so this happened yesterday morning. I couldn't connect to wifi at school, but didn't think much of it as things like this sometimes happen (could've been problem on their side, or simply weak signal) and I wasn't using laptop later that day. T

  • Dala load failed - urgent

    Hello Friends, I am loading the data from Informatica sys to BW. It is running through process chain. Due to some problem in Informatica I have not received any trigger to BW from last 12 hour which is always used to get after every 4 hrs. Loading of