Jsp:setProperty tag is not working

hi i am working on project online test system when registering the student i want to use the setProperty tag to set the values from the student form into the approproate bean properties but this tag doesn't work instead i have to set all values of bean by calling the respective setter methods and i am using tomcat as web server.
i am sending the code as well please help me if u can.
the html coding for student form is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>registration of student</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#677E7E" text="#AC9E6C">
<table width="75%" border="1" align="center" bordercolor="#677E7E">
<tr>
<td><font size="5">STUDENT REGISTRATION FORM</font></td>
</tr>
</table>
<hr>
<p> </p>
<form name="student_registration_form" method="post" >
<script language="JavaScript" >
function validateField()
          var
               sos=document.student_registration_form.StartOfSession.selectedIndex,
               eos=document.student_registration_form.EndOfSession.selectedIndex,
               deg=document.student_registration_form.Degree.selectedIndex,
               sem=document.student_registration_form.Smester.selectedIndex,
               sec=document.student_registration_form.Section.selectedIndex,
               rol=document.student_registration_form.RollNo.value,
               pas=document.student_registration_form.Password.value;
if(sos==0)
                    alert(" \n You Can Not Leave StartOfSession Field Empty");
else
          if(eos==0)
                    alert("\n You Can Not Leave EndOfSession Field Empty");
          else
          if(deg==0)
                    alert("\n You Can Not Leave Degree Field Empty");
          else
          if(sem==0)
                    alert("\n You Can Not Leave Smester Field Empty");
          else
          if(sec==0)
                    alert("\n You Can Not Leave Section Field Empty");
          else
          if(rol=="")
                    alert("\n You Can Not Leave RollNo Field Empty");          
          else
          if(pas=="")
                    alert("\n You Can Not Leave Password Field Empty");          
          //document.student_registration_form.EndOfSession.value=="" || document.student_registration_form.Degree.value=="" || document.student_registration_form.Section.value=="" || document.student_registration_form.Smester.value=="" || document.student_registration_form.RollNo.value=="" || document.student_registration_form.Password.value=="")
          else
if(!(sos==0) || !(eos==0) || !(deg==0) ||
          !(sec==0) || !(Smester==0) ||
          !(document.student_registration_form.RollNo.value=="") ||
          !(document.student_registration_form.Password.value=="")
     //document.forms[0].reset();     
//checking validity of the password field
var LengthOfRollNo=pas.length;
               for(i=0;i++;i<LengthOfRollNo )
                    if(!(pas.subString(i,i++)>0))
                              alert("please enter numaric value in the password field");
                              return true;
               document.student_registration_form.submit();
self.location='StudentRegistration.jsp';
//return true;
     student_registration_form.StartOfSession.value="";
student_registration_form.EndOfSession.value="";
student_registration_form.Degree.value="";
student_registration_form.Section.value="";
student_registration_form.Smester.value="";
student_registration_form.RollNo.value="";
</script>
<table width="76%" border="1" align="center" bordercolor="#677E7E">
<tr>
<td width="61%"><font size="3">SESSION</font></td>
<td width="39%">
<table width="75%" border="1" bordercolor="#677E7E">
<tr>
<td><select name="StartOfSession" size="1">
<option>Start of Session</option>
<option>2000</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
</select></td>
<td bordercolor="#677E7E">TO</td>
<td><select name="EndOfSession" size="1">
<option>End Of Session</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>20006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
<option>2011</option>
<option>2012</option>
<option>2013</option>
<option>2014</option>
</select></td>
</tr>
</table></td>
</tr>
<tr>
<td><font size="3">NAME OF DEGREE</font></td>
<td><select name="Degree" size="1">
<option>  </option>
          <option>MCS</option>
<option>BCS</option>
<option>BBA</option>
<option>MBA</option>
<option>MPA</option>
<option>BSIT</option>
<option>MSIT</option>
<option>BBIT</option>
<option>MSIT</option>
</select></td>
</tr>
<tr>
<td>SEMESTER </td>
<td><select name="Smester" size="1">
<option>   </option>
          <option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select></td>
</tr>
<tr>
<td>SECTION</td>
<td><select name="Section" size="1">
<option>   </option>
          <option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
</select></td>
</tr>
<tr>
<td>ROLL NUMBER (<font size="2">NUMARIC ONLY</font>)</td>
<td><input type="text" name="RollNo"></td>
</tr>
<tr>
<td>PASSWORD</td>
<td><input type="password" name="Password"></td>
</tr>
</table>
<table width="12%" border="1" align="center" bordercolor="#677E7E">
<tr>
<td><input type="button" name="Submit_bt" value="Submit" onClick="validateField()" /></td>
</tr>
</table>
<p> </p>
</form>
<p> </p>
</body>
</html>
and the bean is
import java.sql.*;
public class StudentBean
private String StartOfSession="",EndOfSession="",Degree="",Section="",Smester="",RollNo="",Password="",Status="",LogIn="";
Connection cn;
Statement stmt;
ResultSet rs;
public StudentBean()
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ;
cn=DriverManager.getConnection("jdbc:odbc:intery");
stmt=cn.createStatement();
catch(ClassNotFoundException exp)
     System.out.println("class not found while obtaining connection from StudentBean.java");
               catch(SQLException exp)
                    System.out.println("SQLException araised while obtaining a connection from StudentBean.java");
               catch(Exception exp)
System.out.println("exception in obtaining connection from StudentBean.java");
public String getStartOfSession()
return StartOfSession;
public void setStartOfSession(String startofsession)
StartOfSession=startofsession;
public String getEndOfSession()
return EndOfSession;
public void setEndOfSession(String endofsession)
EndOfSession=endofsession;
public String getDegree()
return Degree;
public void setDegree(String degree)
Degree=degree;
System.out.println("Degree = "+Degree);
public String getSection()
return Section;
public void setSection(String section)
Section=section;
public String getSmester()
return Smester;
public void setSmester(String smester)
Smester=smester;
System.out.println("yar Smesterrrrrr"+Smester+" from StudentBean");
public String getRollNo()
return RollNo;
public void setRollNo(String rollno)
RollNo=rollno;
public String getPassword()
return Password;
public void setPassword(String password)
Password=password;
public String getStatus()
return Status;
public void setStatus(String status)
Status=status;
public String isRegistered()
String IsRegistered="";
LogIn=StartOfSession.concat("-").concat(EndOfSession).concat("-").concat(Degree).concat("-").concat(Section).concat("-").concat(Smester).concat("-").concat(RollNo);
try
PreparedStatement ps=cn.prepareStatement("select * from student where username = '"+LogIn+"'");
rs=ps.executeQuery();
if(rs.next())
IsRegistered="registered";
else
IsRegistered="notregistered";
catch(Exception exp)
IsRegistered="Exception";
System.out.println(exp+"from isRegistered method of StudentBean.java ");
return IsRegistered;
public boolean checkRollNo()
try
//rn is used to keep the value of RollNo
int rn=Integer.parseInt(RollNo);
catch(Exception exp)
return false;
return true;
public boolean registerStudent()
               System.out.println("rigisterStudentMethod has been called");
                    LogIn=StartOfSession.concat("-").concat(EndOfSession).concat("-").concat(Degree).concat("-").concat(Section).concat("-").concat(Smester).concat("-").concat(RollNo);
          System.out.println(LogIn);
               try
          PreparedStatement ps=cn.prepareStatement("insert into student values(?,?,?)");
          ps.setString(1,LogIn);
          ps.setString(2,Password);
          ps.setString(3,"allowed");
          ps.executeUpdate();
          catch(SQLException exp)
System.out.println(exp+"from StudentBean.java");
catch(Exception exp)
System.out.println(exp+"from StudentBean.java");
                              System.out.println("Exception during insertion of record in student table from StudentBean.java");
                              return false;
return true;
and the jsp page for seting bean property and performing other actions is
<jsp:useBean id="StudBean" scope="page" class="StudentBean" />
\\(here <jsp:setPropety name="StudBean" property="*" /> is not working)
<%
StudBean.setStartOfSession(request.getParameter("StartOfSession"));
          StudBean.setEndOfSession(request.getParameter("EndOfSession"));
StudBean.setDegree(request.getParameter("Degree"));
StudBean.setSmester(request.getParameter("Smester"));
StudBean.setSection(request.getParameter("Section"));
StudBean.setRollNo(request.getParameter("RollNo"));
StudBean.setPassword(request.getParameter("Password"));
if(StudBean.checkRollNo()==false)
%>
<%@ include file="invalid_data_in_rollno_field.htm" %>
<%
else
String IsRegistered=StudBean.isRegistered();
if(IsRegistered.equals("registered"))
%>
<%@ include file="already_registered.htm" %>
<%
else
if (StudBean.registerStudent() && IsRegistered.equals("notregistered") )
%>
<%@ include file="successfull_registration.htm" %>
<%
else
%>
<%@ include file="unsuccessfull_registration_of_student.htm" %>
<%
%>
please tell me where i am making mistake since i have mentioned all the
form attributes name and the bean attributes name as same.

I think that all your form parameters must begin with alowercase letters, for example
startOfSession instead of StartOfSession
try to rename your selectname paramters.
Le me know if ti works,
Giovanni

Similar Messages

  • Tags nesting not working

              Hi All,
              I previously posted a question about "tags nesting not working" properly.
              After making some experiments I gess I know why is was not working on Bea Weblogic
              and it was on tomcat 4.0:
              If you declare a tag as having body content of type EMPTY. For instance,
              <tag>
              <name>getvarvalue</name>
              <tagclass>nl.tue.win.riaca.ida.taglib.GetVarValueTag</tagclass>
              <teiclass>nl.tue.win.riaca.ida.taglib.GetVarValueTagTEI</teiclass>
              <bodycontent>EMPTY</bodycontent>
              <info>
              </info>
              <attribute>
              <name>id</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
              </attribute>
              <attribute>
              <name>name</name>
              <required>true</required>
              <rtexprvalue>true</rtexprvalue>
              </attribute>
              </tag>
              then weblogic server doesn't call the doAfterbody() of the tag and tomcat 4.0.
              does. I was placing the code to do the pertinent thing on doAfterbody
              I don't know what the specification saids about that behaviour of the container
              but one of the to implementations should be considered as wrong?? Or maybe not?
              I hope this helps other people not to make the same mistake.
              Thanks to the people who answer to my question.
              All the best,
              Ernesto Reinaldo Barreiro.
              

    Yes weblogic's implementation does not call the doAfterBody() if the tag does not have
              body (empty)
              The section of the spec which talks about doAfterBody says
              "public int doAfterBody()
              Process body (re)evaluation. This method is invoked by the JSP Page
              imple-mentation object after every evaluation of the body into the BodyEvaluation
              object. The method is not invoked if there is no body evaluation.
              Since for an empty tag there is no body evaluation, doAfterBody is not called.
              thanks
              Nagesh
              "E. Reinaldo Barrerio" wrote:
              > Hi All,
              >
              > I previously posted a question about "tags nesting not working" properly.
              >
              > After making some experiments I gess I know why is was not working on Bea Weblogic
              >
              > and it was on tomcat 4.0:
              >
              > If you declare a tag as having body content of type EMPTY. For instance,
              >
              > <tag>
              > <name>getvarvalue</name>
              > <tagclass>nl.tue.win.riaca.ida.taglib.GetVarValueTag</tagclass>
              > <teiclass>nl.tue.win.riaca.ida.taglib.GetVarValueTagTEI</teiclass>
              > <bodycontent>EMPTY</bodycontent>
              > <info>
              > </info>
              > <attribute>
              > <name>id</name>
              > <required>false</required>
              > <rtexprvalue>true</rtexprvalue>
              > </attribute>
              > <attribute>
              > <name>name</name>
              > <required>true</required>
              > <rtexprvalue>true</rtexprvalue>
              > </attribute>
              > </tag>
              >
              > then weblogic server doesn't call the doAfterbody() of the tag and tomcat 4.0.
              >
              > does. I was placing the code to do the pertinent thing on doAfterbody
              >
              > I don't know what the specification saids about that behaviour of the container
              >
              > but one of the to implementations should be considered as wrong?? Or maybe not?
              >
              > I hope this helps other people not to make the same mistake.
              >
              > Thanks to the people who answer to my question.
              >
              > All the best,
              >
              > Ernesto Reinaldo Barreiro.
              

  • Video tag is not working in firefox how can we remove this error

    Video tag is not working in firefox. In this some kind of mmie type error Kindly remove this error .If you have any kind of solution,Please tell me how can it fix it?

    Can you post a link to a publicly accessible page that doesn't require authentication (signing on) where you see such a not working video tag?
    Do they work here?
    *Firefox Videos: http://www.mozilla.com/firefox/video/
    See also:
    * https://developer.mozilla.org/en/Media_formats_supported_by_the_audio_and_video_elements

  • JSP usebean setProperty property is not working ??

    I am new to this forum so not sure whether I put my concern in correct category or not.
    I have the following piece of code in my JSP
    <jsp:useBean id="bean" class="com.cdr.settlement.bean.MassUpdateUtilityBean" scope="request">
    <jsp:setProperty name="bean" property="*"/>
    </jsp:useBean>
    <form name="massUpdateForm" id="massUpdateForm" action="massUpdateUtilityAction" method="Post">
    When I try to get the value of bean in my controller (massUpdateUtilityAction) its coming as null (bean value).
    public void doPost(HttpServletRequest request, HttpServletResponse response) {
    bean = (MassUpdateUtilityBean)request.getAttribute("bean");
    Any help would be highly appreciated....!!! Thanks

    I want to get the bean values in my controller....!!!
    I am posting my code once again here...!!!
    My jsp Code is:--
    <jsp:useBean id="bean" class="com.cdr.settlement.bean.MassUpdateUtilityBean" scope="request"/>
    <jsp:useBean id="addressBean" class="com.cdr.settlement.bean.AddressBean" scope="request" />
    <form name="massUpdateForm" id="massUpdateForm" action="MassUpdateUtilitySave.jsp" method="Post">
    My controller code is:--
    public void doPost(HttpServletRequest request, HttpServletResponse response) {
    bean = (MassUpdateUtilityBean)request.getAttribute("bean");
    bean.getUserName();
    now this bean value is coming null though I am setting all the values of this bean in jsp using setProperty...!!!

  • OBJECT tag is not working in jsf

    Hello,
    I am trying to add an object tag in jsp page. it is working fine with html page but it is not recognize by the jsf.
    JDeveleoper is 12c
    Thank you.

    Hi Timo,
    I added the tag you mentioned nothing change the red line still there. But, I did something else and I do not know if this has any thing to do with the problem.
    What I did is:
    the tag is working fine in html page and here is the tag in html page:
    <DIV STYLE="position:absolute; top:100px; left:50px;">
    <table border=1 cellpadding="0">
       <tr><td> 
         <OBJECT classid=clsid:69A40DA3-4D42-11D0-86B0-0000C025864A height=75
                id=SigPlus1 name=SigPlus1
      <PARAM NAME="_Version" VALUE="131095">
      <PARAM NAME="_ExtentX" VALUE="4842">
      <PARAM NAME="_ExtentY" VALUE="1323">
      <PARAM NAME="_StockProps" VALUE="0">
                </OBJECT>
       </td></tr>
    </table>
    </DIV>
    <FORM id=FORM1 method=get name=FORM1>
    <p>
    <INPUT id=SignBtn name=SignBtn type=button value=Sign onclick=OnSign()>    
    <INPUT id=button1 name=ClearBtn type=button value=Clear onclick=OnClear()>   &nbsp
    <INPUT id=button2 name=Cancel type=button value=Cancel onclick=OnCancel()>    
    <INPUT id=submit1 name=Save type=submit value=Save onclick=OnSave()>    
    </p>
    As I mention before once I copy the previous tag into jsp page the red lines appears.  in jsp when I convert the word from uppercase to lower case the red lines disappeared and I am able to run the page but the tag is not functioning. the changed tag is:
    <div style="position:absolute; top:100px; left:50px;">
    <table border="1" cellpadding="0">
       <tr><td>  
         <object classid= "clsid:69A40DA3-4D42-11D0-86B0-0000C025864A" height="75"
                id="SigPlus1" name="SigPlus1">
      <param name="_Version" value="131095"/>
      <param name="_ExtentX" value="4842"/>
      <param name="_ExtentY" value="1323"/>
      <param name="_StockProps" value="0"/>
                </object>
       </td></tr>
    </table>
    </div>
    <p>
    <input id="SignBtn" name="SignBtn" type="button" value="Sign" onclick="OnSign()"/>    
    <input id="button1" name="ClearBtn" type="button" value="Clear" onclick="OnClear()"/>    
    <input id="button2" name="Cancel" type="button" value="Cancel" onclick="OnCancel()"/>    
    <input id="submit1" name="Save" type="submit" value="Save" onclick="OnSave()"/>    
    </p>

  • A STANDARD XML TAG IS NOT WORKING PROPERLY WHEN USED IN RTF FILE FOR XML RE

    Hi,
    I am using the following tag :
    <?if:TASK_STATUS='Open'?><xsl:attribute xdofo:ctx="block“name="color">red</xsl:attribute>
    <?end if?>
    for changing foreground color of text which depending on certain conditiosi need to print in
    pdf format using xml reports and rtf files.
    But i was able to get only 3 colors (Red,Blue,Green) for use, other colors such as orange,cyan etc are not
    working.
    Please let me know what all colors are supported by oracle in printing in pdf format using xml reports.
    Suggest if we need to do some settings related stuff or so.
    I am usning XML 5.6.3 version.
    Regards,
    Amar

    Colors can be expressed by known name and by a hex value. The hex value format is widely used in HTML programming, and has a format of #abcdef, and "abcdef" can be values like aaddcc and so on. For some primary colors, you can get away with #abc, but that is not very common.
    You should always design with Web-safe colors in mind. That limits you to 16, but should be plenty for most purposes (plus all 16 have known names like red, cyan, yellow, etc.).
    http://www.w3schools.com/Html/html_colors.asp has a good explanation of the standards.

  • bean:message/ tag is not working in tiles:insertAttribute/

    I have a bean:message tag inside my tiles:insertAttribute as shown below.
    <tiles:insertAttribute name='<bean:message="user.menu"/>'/>But <bean:message/> is not getting the value from resource bundle, my resource bundle is in correct place. If i hard code the value then it s working fine.
    How to make it work? Any help?

    sunish_jose wrote:
    <tiles:insertAttribute><bean:message="user.menu"/></tiles:insertAttribute>this way it s not working. Could you pls tell how solve it by using EL. I was not able to find a similar sample evenafter searching for some time.
    thanks in advance.I did say that I don't know if it will or not, I was just giving a sample of how it would work if the tag allowed the value for 'name' to be put in the body.
    I'm not very familiar with the Struts bean tags and in any case, I believe you should use the JSTL tags where ever possible. So you'd pick the <fmt:message> tag from there. I don't think the <bean:message> tag allows you to get the value in to a variable.
    <fmt:message var="tilesAttributeNameValue" key="user.menu" />
    //create an EL variable named tilesAttributeNameValue with the value from the resource bundle
    <tiles:insertAttribute name="${tilesAttributeNameValue}"></tiles:insertAttribute>
    //use EL to put the valueTake a look here [1] for a JSTL introduction:
    [1] http://www.ibm.com/developerworks/java/library/j-jstl0415/

  • JSPs and Servlets do not work on Apache HTTP- Procesor Intel P4

    Computer description: Intel Pentium 4 processor with 20GB HD
    drive, 1GB RAM, Windows 2000Pro, Service pack II
    Before installation:
    We created a temporary directory on our Intel Pentium. 4
    processor server (e.g. \TEMP).
    Copied the contents of the Oracle* Server CD to the temporary
    directory.
    Renamed each copy of the SYMCJIT.DLL to SYMCJIT.OLD.
    Set the java_compiler=none environment variable.
    Installation:
    We run the SETUP.EXE from the \TEMP\install\win32 directory and
    install Oracle 8.1.7 EE Rel 3 Typical
    Configuration tool Net8 Configuration Assistant succeeded
    Configuration tool Oracle Database Configuration Assistant
    succeeded
    Configuration tool Starting Oracle HTTP service: 7 times error
    message (java.exe has generated errors and will be closed by
    Windows, You will need to restart the
    program, An error log is being created)
    HTTP server responses.
    All Java programs do not respond (e.g. IsItWorking does not work)
    After installation:
    Open the jserv.conf file chack that ApJServManual is set to Off.
    set ApJServLogLevel debug (will give more informative errors for
    debugging)
    set ApJServDefaultHost www.in.oracle.com (to your machine name
    with the
    domain name or IP address)
    set ApjServDefaultPort 80000
    Open the jserv.properties files and make the following changes:
    bindaddress=www.in.oracle.com (Same name as ApJServDefaultHost
    in jserv.conf)
    port=80000 (same port as in the jserv.conf)
    Enable all log options in jserv.properties:
    log=true
    log.file=/usr/local/apache/var/log/jserv.trace
    log.timestamp=true
    log.dateFormat=[yyyyMMdd HHmmss:SSS]
    log.channel.init=true
    log.channel.terminate=true
    log.channel.serviceRequest=true
    log.channel.authentication=true
    log.channel.requestData=true
    log.channel.responseHeaders=true
    log.channel.signal=true
    log.channel.exceptionTracing=true
    log.channel.servletManager=true
    Java servlets and JSP still do not redspond.
    If we try to start HTTP server from Windows service, we always
    get message: unable to locate dll: The dynamic link
    library Perl.dll could not be found in the secified path (our
    path: C:\oracle\ora81\bin;C:\oracle\ora81\Apache\Perl\5.00503
    \bin\mswin32-x86;
    C:\Program Files\Oracle\jre\1.1.7
    \bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;) and
    error message: Could not start
    OracleOraHome81HTTPServer service on local computer. The service
    did not respond to the start or control request in a
    timely fashion.
    Starting Oracle HTTP service from Start/Programs/Oracle: 7 times
    error message (java.exe has generated errors and will be closed
    by Windows, You will need to restart the
    program, An error log is being created)
    We tested also modifications of oraparam.ini
    a. Copy only the install directory from the CD to the hard
    disk ,say, e:\temp.
    b. Open oraparam.ini and make the following modifications
    (Assuming CD
    drive is f:)
    * Change the "SOURCE=" line to use the full path to the CD
    instead of a
    relative path. (i.e., SOURCE=f:\stage\products.jar)
    * Change the "JRE_LOCATION" line to use the full path to the CD
    instead of a
    relative path. (i.e.,
    JRE_LOCATION=f:\stage\Components\oracle\swd\jre\1.1.7\1
    \DataFiles\Expanded)
    * Change the "OUI_LOCATION" line to use the full path to the CD
    instead of a
    relative path. (i.e.,
    OUI_LOCATION=f:\stage\Components\oracle\swd\oui\1.6.0.9.0\1
    \DataFiles\Expanded
    * Change the "JRE_MEMORY_OPTIONS" line to add "-nojit" as the
    first argument.
    (i.e., JRE_MEMORY_OPTIONS=-nojit -ms16m -mx32m)
    ^^^^^^
    * Other entries should remain the same
    c. Launch setup.exe from the temporary location on your hard
    drive (i.e.
    e:\temp\install\ win32\setup.exe). This will use the modified
    oraparam.ini and pick up the information from the CD since the
    absolute
    locations are specified.
    After that modification of oraparam.ini, the HTTPServer does not
    respond at all.
    So we undo changes on oraparam.ini and reinstall HTTP.
    We copied SYMCJIT.DLL and jvm.dll from JDK 1.1.8_008 to
    Apache\jdk\..
    Since then at least the demo IsItWorking responses, but database
    connection can not be established. But jsp demo still do not?
    THX in advance
    Neja

    I'm still having problems with Portal config (as part of 9iAS) on
    a P4 but i have cleared the hurdle of the HTTP listener (i
    think).
    I downloaded and installed the JRE that is P4 compatible from
    www.sun.com (it puts it under c:\program files)
    then overwrote all the files in the jre directories in the cd
    staging area with the files from Sun (i.e. all symcjit.dll
    locations). I also had to put a file "javai.dll" in the same
    directory as the file "java.exe". This got the install all
    working.
    The service will fail first time because the install creates
    another set of incompatible jre files. You must again search for
    symcjit and repeat the above procedure.
    You must also overwrite the files in the c:\program
    files\oracle\inventory\jre directories (sorry cant remember exact
    path).
    Hope this helps.
    Mark Gornicki
    PS if anyone knows why Portal config hangs at 67%
    (before/during/after processing "bulkload.jar" section) please
    let me know :-)

  • Using JavaBean with JSP...will not work no matter what

    Hi guys. Sorry that this is such a common, newb question, but I don't know where else to turn.
    I'm new to web application development, Tomcat, and JSP. I'm trying to use a simple JavaBean in a JSP to store some user information. The JSP is located in $CATALINA_HOME\webapps\art , and the UserBean I'm trying to use is in $CATALINA_HOME\webapps\art\WEB-INF\classes . I've tried adding a context in the Tomcat server.xml file, but nothing seems to work, even putting the .class file into the \art directory along with the JSP. The error I get is the following:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 1 in the jsp file: /welcome.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\art\welcome_jsp.java:43: cannot resolve symbol
    symbol : class UserBean
    location: class org.apache.jsp.welcome_jsp
    UserBean user = null;
    ^
    The source code is:
    welcome.jsp
    <%@ page import="java.sql.*" %>
    <jsp:useBean id="user" class="UserBean" scope="session"/>
    <html>
    <head>
    <title>Art Webapp Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <h1>Art Site</h1><br><br>
    <h3>Welcome Page</h3><br><br>
    <%
         user.setUsername("joe");
    user.setTitle("admin");
    %>
    </body>
    </html>
    UserBean:
    public class UserBean {
    private String username = null;
    private String title = null;
    public UserBean()
         this.username = null;
         this.title = null;
    public String getUsername()
         return this.username;
    public String getTitle()
         return this.title;
    public void setUsername(String inName)
         this.username = inName;     
    public void setTitle(String inTitle)
         this.title = inTitle;     
    }//UserBean
    Thanks for any and all help anyone could give me about this. It seems such a simple thing, to get a JavaBean working in a JSP...and it's very frustrating to have it NOT work when it seems I've done everything possible to get it to.

    Ok, I figured out what the problem was. My Bean was not a part of any specific package. It was never made clear to me that Beans are required to be a part of some package...I had no idea (though they always put them in packages in the tutorials, you think I would have picked up on it!).
    So I just added the following line to the Bean:
    package com.art;
    Then compiled it and copied the .class file to CATALINA_HOME\webapps\art\WEB-INF\classes\com\art
    Ta-da
    Thanks for the help and sorry for taking up space on this board.
    -Matt

  • The "a name" html tag does not work in Firefox.

    The tag works in all versions of Internet Explorer, but does not work in Firefox versions 3, 4, 5, 10, 11, 12.

    I haven't noticed any problems on most pages, but I have read about a problem where a script changes the length of the page content after loading (e.g., by collapsing content under headings, done on some FAQ or glossary pages).
    For example, this should position the browser at the Reset Printer section:
    http://kb.mozillazine.org/Problems_printing_web_pages#Reset_printer
    A standard diagnostic step is to try Firefox's Safe Mode to see whether an odd behavior is caused by a custom setting or add-on.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in [[Safe Mode]] using
    Help > Restart with Add-ons Disabled
    In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
    If links work correctly in Safe Mode, that usually points to an add-on or custom setting as the problem.
    Let us know whether that makes any difference.

  • Tags are not working as I wish

    2 problems:
    - If a folder is not indexed on spotlight, then tags don't work on it.
    - I can't add any folder of my NAS which is in the local network.

    I had the same problem!! It may be a software problem... try going to settings and tapping restore network settings! If that doesn't help go backup your phone and restore it it may solve that too! If those two don't work its a hardware problem and you need to pay... There are some stores that can replace the inside for a cheaper price... try searching the internet!

  • Tag Query with Special Characters in Tag Name not working

    Hello-
    We are on SAP xMII 12.0 sp8.6, connecting to Honeywell's PHD. We are doing Tag Queries, and all is working well, except when there are special characters in the Tag Name (+, /, \) We have attempted to do the Encoding of the tag name, such as as is returned from the function xmlencodename and also tried URL Encoding.
    Here is our tag which returns nothing.
    82TK1INV.OCTANE_R+M/2
    We have also tried these encoded versions, still to no avail:
    82TK1INV.OCTANE_R%2BM%2F2
    82TK1INV.OCTANER_M_2
    Any help on how to return the values with special characters in the tag name would be very helpful!
    thanks,
    Paul Mazeika

    To Chianti's question of why can't/shouldn't MII work with those bizarre tag names...
    Actually, there are a number of reasons:
    1) It's a poor design practice to use characters like that in tag names, regardless of the underlying system.  That type of information is best assigned to the tag description, not the tag name.  I've even seen idiots put leading spaces on tag names...figure that one out!
    2) MII uses XML extensively, and XML's syntax rules dictate what is and is not acceptable for XML element and attribute names, and many of these special characters are not permitted.
    3) Usage of characters in tags that also represent mathematical operators greatly complicate the parsing and processing of expressions that involve tag names
    In general, it reminds of the story of the guy who walks into the doctor, bangs his fist against a specific spot on his head, and says "Doc, it hurts when I do this", to which the doctor responds, "so don't do that". 
    So, Don't Do That.

  • Quick Tag Editor not working on my Mac

    I am on lesson 4 in "Adobe Dreamweaver CC Classroom in a book" and am at a point where I am instructed to insert an Image Placeholder. The instructions has me insert the cursor into text within <p> tags and press the left-arrow key. It states the cursor will then be placed outside the opening <p> tag, which does not work. Then with a key combination the QTE is supposed to open with cursor now inside new brackets. None of the above works. I am in split view. If I can provide anymore info or a screen grab let me know, but I can't even get the QTE to open when I place the cursor in the correct position...
    Thanks...
    **NOTE**If I am inside the <p> tags the Cmd-T command to bring up QTE works. However, when the cursor is placed outside the <p> and inside the <aside> the Cmd-T QTE will not come up as instructed. Obviously I can enter the code in Code edit, but as instructions direct it does not work.

    Preran, Thanks. It works now when I select the <p> selector as mentioned in the video. I assumed the <p> selector mentioned in step 1. below meant the CSS Selectors Window/pane. However when clicking the <p> selector below the split/design window it works. I included the instructions below which seem to be ambiguos at best. Maybe I have simply missed something that was mentioned before.
    Thanks again and we can consider this resolved, unless the book authors wants to make a change to the instructions which seems to be needed.
    Thanks,
    David In Texas....
    1. Insert the cursor into the text directly below the vertical menu. Click the < p > tag selector. The placeholder image should not be inserted within the < p > element. If it were, it would inherit any margins, padding, and other formatting applied to the paragraph, which could cause it to disrupt the layout.
    Tip Use Split view whenever you’re unsure where the cursor is inserted.
    2. Press the Left Arrow key. As you have seen in earlier exercises, the cursor moves to the left of the opening < p > tag in the code but stays within the < aside > element. 3. Press Ctrl-T/ Cmd-T to open the Quick Tag Editor.
    Adobe Creative Team (2013-07-08). Adobe Dreamweaver CC Classroom in a Book (Kindle Locations 2609-2620). Pearson Education. Kindle Edition.

  • Centre Page with wrapper div tag does not work

    Hi there,
    I am trying to centre the content of my website with a 'wrapper' div tag but the div tag just does not seem to have any effect on the layout at all.
    Here is how I do it:
    1.) Select all the html in the body.
    2.) Creating 'wrapper' div tag --> width: 768, left & right margin: auto, bottom & top margin: 0
    I found this in an adobe tutorial and it sounds logical to me, but somehow it just does not work.
    I hope someone can help me out.
    Thanks a lot!
    Anja

    You need three basic things to center a page.
    1) A valid X/HTML document type.  This declaration always appears in the first line of HTML code. The good news is that DW does this for you when you create a new page.  The bad news is that some other apps such as graphics editors don't always do this for you.  If your page has no document type, hit File > Convert > choose one that fits your coding skills.
    2) You need a container width in pixels or percentages.  Most often this is applied to a #wrapper but it can be applied to your body.
    3) Finally, a margin-left and margin-right of auto (browser default).
    CSS:
    body {
    width: 900px;
    margin: 0 auto; /*centers page*/
    text-align:center; /*centers older browsers*/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Move jsp code into servlet, not work!!

    Hi:
    I am new in servlet and java, I can use jdom to read xml file
    into a jsp file, but whan I move jsp code into servlet, they are not work
    have any ideals?
    Thank!

    Hi:
    my.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.io.File,
    java.util.*,
    org.jdom.*,
    org.jdom.input.SAXBuilder,
    org.jdom.output.*" %>
    <%
    String Records = "c:/XMl/Quotes.xml";
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    Document l_doc = builder.build(new File(Records));
    my servlet
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.input.SAXBuilder;
    import org.jdom.output.*;
    public class XmlJdom extends HttpServlet
    String Records = "c:/xml/Quotes.xml";
    SAXBuilder builder = null;
    Element Author = null;
    Element Text = null;
    Element Date = null;
    * Initializes the servlet.
    public void init(ServletConfig config) throws ServletException
    super.init(config); //pass ServletConfig to parent
    try
    // JDOM can build JDOM trees from a variety of input sources. One
    // of those input sources is a SAX parser.
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    catch ( org.jdom.JDOMEXception e)
    public void doGet(
    HttpServletRequest request,
    HttpServletResponse response)
         throws IOException, ServletException
         PrintWriter out = null;
         out = response.getWriter();
         try{                
         Document l_doc = builder.build(new File(Records));
    Element root = l_doc.getRootElement();
    //get a list of all recode in my XML document
    String l_pages = root.getChild("quote");
    String Iterator e = l_pages.iterator();
    while ( e.hasNext())
    Element l_quote= (Element) e.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    out.println(ls_result);
    catch( org.jdom.JDOMException e )
         finally
              if( out != null)
                   out.close();
    Please tell me, what is wrong!!!
    Element root = l_doc.getRootElement();
    /* get a list of all the links in our XML document */
    List l_pages = root.getChildren("quote");
    Iterator Myloop = l_pages.iterator();
    while ( Myloop.hasNext())
    Element l_quote= (Element) Myloop.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    ls_result = l_format.outputString(l_doc);
    %>
    <html><head><title></title></head>
         <body>
              <pre>
              <%=ls_result%>
              </pre>
         </body>
    </html>

Maybe you are looking for

  • How do I get my recent messages to show while the ...

    I like to keep skype open on my second monitor while I play videogames on the first one and I like to watch people talk in one of my skype groups and I join in when they talk about something I am interested in. The problem is, when the skype window i

  • F.13 -fiscal year vs posting day

    hi, in the F.13 screen parameter ,there are parameters named fiscal year and posting day. 1.what's the relation ship between them? 2.are they both used as the selection critria? 3. What will happen if we set the fiscal year with 2008 but the posting

  • Rio evaluation

    Hello World.......... Hi i am just after getting my hands on an sb Rio and the labview evaluation kit.  the question i have it when i start on the tutorial it instructs you to open various vi's and it goes through some basic functions . This is where

  • Help following note 437878.1

    Hi, Please advise in following metalink note Upgrading OracleAS 10g Forms and Reports in Oracle E-Business Suite Release 12 Document 437878.1 The note advised to install patch 5983622 but I am confused on applying patch. 5983622 does not show up on o

  • Error running simple  applications.

    Hi all, I have just downloaded CDC PP on my fedora core 2 linux machine. I have tried to compile the demo applications by "builddemo" and when i run the demos by "rundemo", I get the following error. Have i forgotten to set the classpath somewhere? N