Help needed in JSP application

Hi... I am implementing one web application. The main file is index.html whch contain frame where following options are there.
1. Login 2. Line Count. 3. Leave Balance 4. Extra. 5. Log out. but wht I want is, Once User logged in the options from 2to 5 must be visible..But first time only login option should be available..
Hope you understand...and please tell me how can i do it
Wether I have to create 2 page..one for login and another for rest of the options or some other way to do so??
Thanks inadvance
Regards
Chintan

There is a general feeling that scriptlets in JSP pages are a bad thing.
They can make the page difficult to follow and understand.
The syntax used above was from the JSTL - JSP Standard Template Library : http://java.sun.com/products/jsp/jstl/
The JSTL tags provide a lot of functionality that previously was done in scriptlets.
eg Looping, conditional branching, formatting, XML handling.
Benefits: You don't have to constantly switch between java and html with <% %> tags. The code ends up looking much nicer.
Also it is aimed at page authors, who don't necessarily understand java, but will understand using tags like this.
Myself, I like it because of the first reason - it just makes the page so much easier to read when everything is in tags, as opposed to constantly switching from java to html and back - particularly with braces.
You have to agree:
<c:if test="${params.choice == 'yes'}">
  You said YES!
</c:if>looks much better than
<% if (request.getParameter("choice").equals("yes")){ %>
  You said YES!
<% } %>Cheers,
evnafets

Similar Messages

  • Help Business Component JSP Application

    I have a problem.
    I already have my project with my BC4J Components and my project created using the wizard Business Component JSP Aplication.
    But I just created the JSP Pages for one ViewObject.
    I don`t know how to add the JSP Pages from another ViewObject in the already created project.
    If I try to add a Business Component JSP Aplication to the same project it says me that I have to overwrite the project. I try this but when I want to run the JSP corresponding to the new ViewObject I found the error, that it can`t find the View Object in the Application Module
    Please I need urgent help because without this I can't work.

    The first page of the Application Module wizard has two windows: Available Views and Data Model. The available views are all the View Objects belonging to your project; the data model shows those view objects you have assigned to the Application Module. [em]You can only generate JSPs for View Objects in the data model [em].
    To use a new view object:
    (1) highlight it in the available views window.
    (2) highlight the anchor point in the data model: for stand-alone pages or master blocks this will be the application module; for detail blocks this will be the master view object.
    (3) run the BC4J JSP wizard. you can avoid overwriting already generated JSPs by de-selecting the View Objects from the list. This is a right pain if you have a lot of View Objects in your module. (which is one good argument for having lots of little Application Modules)
    hth, APC

  • Help need in ADF application security.

    Hi All,
    I need to implement the ADF application with authentication.Iam using jdeveloper 11.1.1.3.0 and Standalone WLS.
    I want to create group in WLS and map the user present in group for authentication.
    Any one please provide the tutorial link or video link so that i can implement the authentication as most of the link is for jdev 10 not for jdev 11.
    Regards,
    Suresh kumar.k

    would this help you:(which is exactly what I suggested in the other place Suresh asked :) )
    Reading the docs is always a good place to start.
    Good luck,
    john

  • Help needed in importing application -  Urgent

    Hi,
    I am new fairly new to apex and would be grateful for any help....
    I have an application that i would like to import and install... but i am obtaining an error...
    Situation is as follows:
    Application in machine A with oracle 10g standard and apex 3.0. Workspace is portal, schema is status_portal...
    export is working fine.
    Need to import it to machine B with oracle 10g and apex 3.0 Workspace is
    online_portal, schema is portal
    Import also works fine...
    But when i try to install the imported application, i get following error:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-02291: integrity constraint (FLOWS_030000.WWV_FLOWS_FK) violated - parent key not found <pre>begin wwv_flow_api.create_flow( p_id =&gt;134, p_display_id=&gt;134, p_owner =&gt; 'STATUS_PORTAL', p_name =&gt; 'Status Portal', p_alias =&gt; 'F114', p_page_view_logging =&gt; 'YES', p_default_page_template=&gt; 3865804637029456 + wwv_flow_api.g_id_offset, p_printer_fri
    Please guide me as to what to do....
    History:
    I have tried exporting from machine A to apex online workspace and installing there.... and vice versa...It is working fine...
    the problem arises only when i try import & install on machine B....
    Please help me.... i need to do this urgently
    Thanks,
    Sumana

    Hi Scott,
    I will not be able to show the actual application, as it has our customer's information. But i have created a sample application and done the export and import. The details are as follows:
    Machine A Details:
    Workspace name = portal
    worskspace ID = 3727029916111535
    schema = status_portal
    Exported Application Name = Status Portal
    Exported Application ID = 117
    When importing application from machine A to online workspace:
    Online Workspace Details: (when importing application 117)
    Workspace Name = sumana
    Workspace iD = 3033192431425185475
    schema = sumanadb
    Imported Application Name = Status Portal
    Imported Application IS = 42146
    You can access the workspace using: http://apex.oracle.com/pls/otn/f?p=4550:1:
    the password is sumi123
    When importing application from machine A:
    Machine B Details:
    1 ) Workspace1 Name = auditws
    workspace ID = 7048503433678645
    schema = audit_schema
    When installing imported application no 117 I get:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-02291: integrity constraint (FLOWS_030000.WWV_FLOWS_FK) violated - parent key not
    found <pre>begin wwv_flow_api.create_flow( p_id =>129, p_display_id=>129, p_owner =>
    'STATUS_PORTAL', p_name => 'Status Portal', p_alias => 'F114117', p_page_view_logging =>
    'YES', p_default_page_template=> 10898936714426385 + wwv_flow_api.g_id_offset, p_printer
    Error installing application.
    Return to application.
    2) Workspace2 name = online_portal
    workspace ID = 9302626026712423
    schema = portal
    When installing imported application no 117 I get:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-02291: integrity constraint (FLOWS_030000.WWV_FLOWS_FK) violated - parent key not found
    <pre>begin wwv_flow_api.create_flow( p_id =>159, p_display_id=>159, p_owner => 'STATUS_PORTAL',
    p_name => 'Status Portal', p_alias => 'F114117', p_page_view_logging => 'YES',
    p_default_page_template=> 10898936714426385 + wwv_flow_api.g_id_offset, p_printer
    Error installing application.
    Return to application.
    3) When importing application no 130 from machine B to machine B
    (from workspace auditws and schema audit_schema to workspace online_portal and schema portal)
    I get the error as said before
    "Access Denied by application security check" Also, i observed that,
    the application gets installed in auditws and audit_schema itself...
    Screenshots are here:
    4) when importing application no 130 from auditws back to auditws, it works fine.

  • Help needed in jsp tags

    I am trying to design a view page that retrieves records from database,as the data may contain tags like<p>,<b> I am using encodeHtmlTag function to display them as it is .but some text needs to be appeared in bold but if i give the same,b. as input while viewing it is displayed as",b>" since i am using encodeHtmlTag it encodes all the tags .How i can solve this issue.?
    as a way i tried using "[ " b " ]" as the tag for bold option ,but i am not able to write proper function to recognize that charater and change that tag to ",b>".
    can anyone please help me in this.

    Thanks a Lot.Since I am at my beginning phase of jsp i am not able to I will be more thankful to you if recode my following code so that the bold option works fine with Italics.
    with the following code it encodes all the"<" characters so that if i want to make some part of text as bold while retrieving from database its not working how i can achieve this with the following codes.(r34.jsp).
    j11.jsp is the index page from which it forwards to next page r34.jsp which is the display page i.e it retrieves data from database and displays them.i need help in this page only.
    j11.jsp:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.sql.*,java.util.*"%>
    <% 
    StringBuffer cname = new StringBuffer();
    StringBuffer pname = new StringBuffer();
    String nn ="\n\n";
    String body1="null";
    int cnamesize=0;
    int pnamesize=0;
    Vector nnn = new Vector();
    Vector nnp = new Vector();
    Vector nn1 = new Vector();
    String selectedclient="null";
    String prjname1,prjid;
    String xname = request.getParameter("client")!=null?request.getParameter("client"):"";
    //String xname1 = request.getParameter("pname1")!=null?request.getParameter("pname1"):"";
    String xname2 = request.getParameter("prjid")!=null?request.getParameter("prjid"):"";
    //session.setAttribute("prjnamerec", xname1);
    %>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>Select the Client</title>
        <script language="javascript">
          function calljsp(){
            document.forms[0].action='r34.jsp';
         </script>
      </head>
      <body background="rlogo1.bmp">
        <img src="rheader.bmp" width="990" height="150"></img>
      <center>
      <h2>Login Department</h2>
      </center>
        <form name="clientselection" method=post>
         <h2>Client Selection </h2>
         <table>
            <tr>
                  <marquee><%=xname%></marquee>
              <td>Client :
                <select name="client">
                  <option value="">SELECT</option>
                  <%  try{
                  Class.forName("com.mysql.jdbc.Driver");
                  Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3307/r", "root", "root");
                  Statement statement = connection.createStatement();
                  ResultSet rs = statement.executeQuery("select client from client");
                  while(rs.next())
                      String cname1 = rs.getString(1);
                      nnn.addElement(cname1);
                  int j1 = nnn.size();
                  for(int x = 0;x<j1;x++){
                  String clientName = nnn.elementAt(x)+"";
                  %>
                  <option value="<%= clientName %>">
                    <%=   clientName %>
                  </option>
                  <%  }%>
                </select>
                <input type="submit" value="View Projects"/>
              </td>
            </tr>
          </table>
          <% 
          if(request.getParameter("client")!=null){
                  ResultSet rs1 = statement.executeQuery("select distinct(proj_name),proj_id from projects where client='"+xname+"'");
                  while(rs1.next()){
                    nn1.addElement(rs1.getString(1));
                    nnp.addElement(rs1.getString(2));
          pnamesize=nn1.size();
          for(int p = 0;p<pnamesize;p++){
              prjname1=nn1.elementAt(p)+"";
              prjid=nnp.elementAt(p)+"";
          %>
          <table>
            <tr valign="top" colspan="2">
              <td>
                <br/>
                 <input type="radio" name="prjid"  value="<%=prjid%>"><%=prjid%> &nbsp&nbsp <b><%= prjname1%> </b>
                 <input type="submit" value="Go" onClick="calljsp()"/>
              <br/>
              </td>
            </tr>
          </table>
          <% if(request.getParameter("pname1")!=null){
               //ResultSet rs2 = statement.executeQuery("select * from csrmail where prjname='"+xname1+"'  ");
                 // while(rs2.next()){
            }%>
          <%}%>
         <%}%>
         <% connection.close();
          }catch(SQLException e){
            e.printStackTrace();
          %>
        </form>
      </body>
    </html>
    r34.jsp
    <%!String encodeHtmlTag(String ma){
                                int malength= ma.length();
                          StringBuffer mailbuffer=new StringBuffer();
                              for(int m=0;m<malength;m++)
                               char c=ma.charAt(m);
                                  if(c=='<')
                                      mailbuffer.append("<");
                                  else if(c=='>')
                                       mailbuffer.append(">");
                                   else if(c=='&')
                                       mailbuffer.append("&");
                                    else if(c=='"')
                                       mailbuffer.append(""");
                                    else if(c==' ')
                                       mailbuffer.append(" ");
                                      else if(c=='\n')
                                       mailbuffer.append("<br>");
                                        else if(c=='[')
                                                  c = ma.charAt(m+1);
                                               if(c=='/')
                                                  c=ma.charAt(m+2);
                                                  char d= ma.charAt(m+3);
                                                  if(c=='b'&& d==']')
                                                       mailbuffer.append("</b>");
                                                    m=m+4;
                                                  else if(c=='I'&& d==']')
                                                         mailbuffer.append("</I>");
                                                        m=m+4;
                                                      c = ma.charAt(m);
                                                       if(c=='[')
                                                       c = ma.charAt(m+1);
                                                       if(c=='/')
                                                             c=ma.charAt(m+2);
                                                           char d2= ma.charAt(m+3);
                                                          if(c=='b'&& d2==']')
                                                              mailbuffer.append("</b>");
                                                            m=m+4;
                                              else if(c=='b')
                                               if(ma.charAt(m+2)==']')
                                                    mailbuffer.append("<b>");
                                               m=m+3;
                                               else if(c=='I')
                                               if(ma.charAt(m+2)==']')
                                                    mailbuffer.append("<I>");
                                               m=m+3;
                                             c=ma.charAt(m);
                                              mailbuffer.append(c);
                                      else
                                       mailbuffer.append(c);
                                    return mailbuffer.toString();
                                  }%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.sql.*,java.util.*,import java.util.StringTokenizer"%>
    <%
    String xname = request.getParameter("client")!=null?request.getParameter("client"):"";
    //String xname1 = request.getParameter("pname1")!=null?request.getParameter("pname1"):"";
    String xname2= request.getParameter("prjid")!=null?request.getParameter("prjid"):"";
    Vector nnn = new Vector();
    Vector nn1 = new Vector();
    Vector nn2 = new Vector();
    Vector nn3 = new Vector();
    Vector nn4 = new Vector();
    Vector nn5 = new Vector();
    //Vector nn6 = new Vector();
    StringBuffer sb = new StringBuffer();
    StringBuffer redt=new StringBuffer();
    StringBuffer qudt=new StringBuffer();
    StringBuffer retime=new StringBuffer();
    StringBuffer qutime=new StringBuffer();
    //StringBuffer nn6=new StringBuffer();
    StringTokenizer stok1 ;
    String cquery="null";
    String creply="null";
    String cqdate="null";
    String mdate="null";
    String crdate="null";
    ResultSet rs=null;
    ResultSet rs1=null;
    %>  
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>Records Display</title>
          <script language="javascript">
             function calljsp1(){
                    document.forms[0].action='j11.jsp';
         </script>
      </head>
      <body background="rlogo1.bmp">
       <img src="rheader.bmp" width="990" height="150"></img>
        <form name="RecordsDiplay" method=post>
                  <%String thisclntname12 = xname;%>
                  <%//String thisprjname12 = xname1;%>
                  <%String thisprjid12 = xname2;%>
                    <%//out.println(thisprjname12);%>
                <b>ProjectID :</b>
                    <%out.println(thisprjid12);%>
                     <table bgcolor="rgb(206,206,255)">
            <tr>
              <td>
                      <br>
                         <br>
                  <%
                    try
                        //String thisprjname = xname1;
                         String thisclntname = xname;
                         String thisprjid = xname2;
                         Class.forName("com.mysql.jdbc.Driver");
                         Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3307/r", "root", "root");
                         /*Statement statement = connection.createStatement();
                         ResultSet rs = statement.executeQuery("select mails,mdate from csrmail where proj_id='"+thisprjid+"' ");*/
                   PreparedStatement ps=connection.prepareStatement("select mails,mdate from csrmail where proj_id=?");
                   ps.setString(1,thisprjid);
                   ps.executeQuery();
                   rs=ps.getResultSet();
                         while(rs.next())
                            String cname1 = rs.getString(1);
                            String mdatte = rs.getString(2);
                            nnn.addElement(cname1);
                            nn5.addElement(mdatte);
                           int j1 = nnn.size();
                           for(int x = 0;x<j1;x++)
                              StringBuffer mmdt=new StringBuffer();
                              StringBuffer mmtime=new StringBuffer();
                              String mdt1 =  nn5.elementAt(x)+"";
                              String mdt=mdt1.substring(8,10);
                              String mmonth=mdt1.substring(5,7);
                              String myear=mdt1.substring(0,4);
                              String mhh=mdt1.substring(11,13);
                              String mmm=mdt1.substring(14,16);
                              String mss=mdt1.substring(17,19);
                              mmdt.append(mdt+"-"+mmonth+"-"+myear);
                              mmtime.append(mhh+":"+mmm+":"+mss);
                              String mails1 = nnn.elementAt(x)+"";
                      %>
                            <b>Mail Posted Date</b>
                               <%out.println(mmdt);%>
                            <b>Mail Posted Time :</b>
                               <%out.println(mmtime);%>
                            <br>
                            <br>
                            <b>  <style="font-family:verdana;font-size:80%;color:EE82E">Mail :  </b>
                               <%out.println(encodeHtmlTag(mails1));%>
                            <br>
                      <br>
                       <%}%>
                        </table>
            </tr>
              </td>  
                       <br>
                        <%/*ResultSet rs1 = statement.executeQuery("select * from csrquery where proj_id='"+thisprjid+"' ");*/
            PreparedStatement ps1=connection.prepareStatement("select * from csrquery where proj_id=?");
                   ps1.setString(1,thisprjid);
                   ps1.executeQuery();
                   rs1=ps1.getResultSet();
               while(rs1.next())
                          cquery = rs1.getString(2);
                          cqdate = rs1.getString(4);
                          creply=rs1.getString(5);
                          String nd = "No Reply";
                          crdate = rs1.getString(7);
                            if(rs1.wasNull())
                               nn4.addElement(nd);
                             else
                                nn4.addElement(crdate);
                          nn1.addElement(cqdate);
                          nn2.addElement(cquery);
                          nn3.addElement(creply);
                          int q=nn1.size();
                            for(int j=0;j<q;j++)
                                {%>
                    <%//out.println(thisprjname12);%>
                   <b>ProjectID :</b>
                    <%out.println(thisprjid12);%>
                   <br>
                   <br>
                                 <% String qudt1 = nn1.elementAt(j)+"";
                                  String cqdtt=qudt1.substring(8,10);
                                  String cqmonth=qudt1.substring(5,7);
                                  String cqyear=qudt1.substring(0,4);
                                  String cqhh=qudt1.substring(11,13);
                                  String cqmm=qudt1.substring(14,16);
                                  String cqss=qudt1.substring(17,19);
                                  qudt.append(cqdtt+"-"+cqmonth+"-"+cqyear);
                                  qutime.append(cqhh+":"+cqmm+":"+cqss);
                                  String qu = nn2.elementAt(j)+"";
                                 String re = nn3.elementAt(j)+"\n\n";
                                  String b= qu;
                                 String b1 = re;
                              stok1 = new StringTokenizer (re,"\n");
                                //System.out.println(creply);
                                  String redt1 =  nn4.elementAt(j)+"";              
                                   if(redt1.equals("No Reply")){
                                      redt.append(redt1);
                                         retime.append(redt1);
                                   else
                                     String redtt=redt1.substring(8,10);
                                      String remonth=redt1.substring(5,7);
                                      String reyear=redt1.substring(0,4);
                                    String rehh=redt1.substring(11,13);
                                      String remm=redt1.substring(14,16);
                                      String ress=redt1.substring(17,19);
                                     redt.append(redtt+"-"+remonth+"-"+reyear);
                                     retime.append(rehh+":"+remm+":"+ress);
                                   } %>
                              <br>
                               <table>      
                                <tr>
                                 <td>
                                   <b>Query Posted Date</b>
                               <%out.println(qudt);%>
                                   <b>Query Posted Time :</b>
                               <%out.println(qutime);%>
                                   <br>
                               <b style="font-family:verdana;font-size:80%;color:green">Query :</b>
                               <%out.println(encodeHtmlTag(b));
                               %>
                         </td>
                       </tr>
                     </table>
                             <br>
                                <table>
                                <tr bgcolor="rgb(174,174,200)">
                                 <td>
                                   <b>Last Reply Posted Date</b>
                               <%out.println(redt);%>
                                   <b>Last Reply Posted Time :</b>
                               <%out.println(retime);%>
                                   <br>
                                 <%
           while(stok1.hasMoreTokens())
             out.println(encodeHtmlTag(stok1.nextToken()));%>
             <br>
         <% }
                                    int qudtsize = qudt.length();
                                    qudt.delete(0,qudtsize);
                                    int qutimesize = qutime.length();
                                    qutime.delete(0,qutimesize);
                                  int redtsize = redt.length();
                                   redt.delete(0,redtsize);
                                   int retimesize = retime.length();
                                    retime.delete(0,retimesize);
                                   %>
                              <br>
                    <br>
    </td>
                       </tr>
                     </table>
                  <% }
              connection.close();
            }catch(SQLException e)
            e.printStackTrace();
          %>
          <input type="submit"  value="Back" onClick="calljsp1()"/>
        </form>
      </body>
    </html>

  • Help needed in JSP Expression Language

    Hi all,
    I have been working for JSP Expression Language Sample execution since past 5 days. I am using the application server as "Jboss Server" and web server as "Tomcat".
    I have been included the jsp-api.jar file in my lib directory of application server as well as source folder's lib directory.
    When i am trying to build the source code, i am getting this build error.
    [javac] D:\eclipse\workspace\esolvProject\development\src\com\esolv\taglibs\
    web\classes\SetSupport.java:186: cannot resolve symbol
    [javac] symbol : method getExpressionEvaluator ()
    [javac] location: class javax.servlet.jsp.PageContext
    [javac] ExpressionEvaluator evaluator = pageContext.getExpressionEvaluator();
    In my jsp-api.jar , there are two classes called,
    PageContext and JspContext, Both are abstract classes.
    PageContext inherits JspContext class. JspContext class have the method getExpressionEvaluator() , returns ExpressionEvaluator.
    PageContextImpl - class . it has been called internally when we are trying to call PageContext class. In PageContextImpl class, there is one comment before, the method's definition. that is
    " Since JSP 2.0 "
    But we have the JSP 2.0 version. But it won't work.
    Please help me ont this.
    Thanks in Advance,
    Natraj

    >
    If the pblm was due to setting the classpath.
    The error should be showed for all files in the jar
    file.
    why i am getting the error for particular method ?
    it is accessing the other methods of same class
    'JspContext' . but it is not accessing that method.
    Thats my question.
    Just check that your .jar file is 2.0 compliant and that you do not have any other jars(for servlet or jsp api) in the classpath.
    Probably you have an older version of .jar file in your path. So the errors will appear only for those methods that have been added since 2.0, all other methods would compile fine.
    Please tell me the jar files to work out the
    expression language. so that i can cross check my
    list of jars.Hmmm...I dont use jboss. In tomcat the jar file name is jsp-api.jar. But it would have been the same even for jsp1.1, going by jar file names wouldnt help. Just look at your cp as if with a microscope to identify redundant jars.
    cheers,
    ram.

  • Help needed- Caller tone application using JTAPI and JMF

    Hi to All,
    I want to make a Caller Tone Application for Cisco IP phone.
    For that application I am using JTAPI and JMF.
    I am new to this two technologies.
    Can somebody help me for how to accomplish this?
    ---Ashish

    Hi Jerry,
    You can run analog input and counter tasks concurrently.  You can start them using software timing basically at the same time which may be fine for your needs and is the easiest to implement.  You also can use a hardware start trigger to start the tasks if you prefer.  It all depends on the level of synchronization you need. 
    You have not mentioned at what rate you will be acquiring data on your analog inputs.  The M Series PCI-6225 has 80 analog inputs and may suit your needs.  You will need to know what sampling rate you are trying to achieve.  Any M Series device will definitely give you the best value. 
    Hope this helps!
    Laura

  • Help needed with my application

    Hi,
    Can you take a few minutes and suggest DAQ hardware for my application? I need to measure a high freq signal from a quadrature encoder and correlate it to my 48 analog inputs. I need to know the speed of my motor when the analog measurements are taken. The signal from the quadrature encoder is a 1.7 MHz squarewave ( I can loose some resolution and slow it down ). I was planning on using PCI-6071E but I am not sure if it is suitable any more.
    Thanks a lot
    Jerry.

    Hi Jerry,
    You can run analog input and counter tasks concurrently.  You can start them using software timing basically at the same time which may be fine for your needs and is the easiest to implement.  You also can use a hardware start trigger to start the tasks if you prefer.  It all depends on the level of synchronization you need. 
    You have not mentioned at what rate you will be acquiring data on your analog inputs.  The M Series PCI-6225 has 80 analog inputs and may suit your needs.  You will need to know what sampling rate you are trying to achieve.  Any M Series device will definitely give you the best value. 
    Hope this helps!
    Laura

  • Urgent help needed in JSP...

    Hi,
    I have a variable declared in one of the JSP files. How can I access that variable from another JSP page?
    For ex:
    jsp1.jsp
    <%
    String hello = "Hello world!";
    %>
    jsp2.jsp
    <h3>The string is <%= hello %></h3>
    I know this code wont work. But how can I fix it?
    Please let me know your solutions as soon as possible.
    Thank you,
    Rajesh

    Thanx a lot.
    I did understand how to use session to store a java object. Actually, I wanted to use primitive data types... well, I could work around that.
    But, could you please explain what you mean by storing in the application context?
    Thanks a lot,
    Rajesh

  • Help needed on understanding Application Implementation

    I would like to study and document actual implementation steps to implement Oracle Applications, but cannot find any material or courses to help me.
    For example:
    Conduct client interview to gather business rules
    Translate Business rules to Business flow diagrams leading to data flow diagrams
    Prepare gap documents
    Perform Business Process Re-engineering
    etc
    Any help will be appreciated

    There is an approach called AIM (Application Implementation Method) which you can refer. Details can be found from net or from Metalink.
    See if that helps.
    Regards
    Sumit

  • Design Pattern help needed for MDI application

    Hi,
    I am writing an mdi application which contains a JSplitPane. The left pane contains a JTree and the right contains a JDesktopPane which houses n number of JInternalFrames. The JInternal Frames need access to the JTree. Also both panes (objects w/in) need access to elements of the JFrame. I am currently implemeting access by making most of the JFrame objects static and creating getter/setter methods for access. Does anyone know any desing patterns I might use to solve this dilemma?
    Thanks,
    John

    The observer design pattern causes the child objects to chage state when the parent changes state. The type of pattern I need would allow the child objects of the parent JFrame to be available globally without having to make them static. I am wrong in this? Would the observer pattern solve this issue.

  • Help needed with MIME application

    Hi all,
    I tried to listen to the radio on my 10.5.2 Mac, as soon as I hit the play button I get this error message that the page has a content of MIME type application and since I don't have the plug-in installed I can't listen to the radio.
    Please help, how can I get those application ?
    Thanks

    If radio implies iTunes, then post to that forum. If not, provide the details. iTunes radio works here.

  • HELP needed! N97 Application Installation Problem.

    Alright, here's my problem. My friend sent me a .sis program to install in my phone today. When I tried installing the program, it somehow occupied all my available memory in my phone memory (which is about 60MB before I attempt to install the application) and while not able to complete its installation. I suspect that it was a virus program or some sort because when I tried finding for the files in the phone memory through my computer, I failed to find any file which has that amount of size. My computer only shows that a total of 19MB files are contained in the phone memory but somehow I don't even have a single KB of space available in it. (it's hidden somewhere or some settings are altered i guess)
    Please do help me in this issue. Any help would greatly be appreciated.
    Thanks alot.
    P.S. just bought my phone a week ago

    I've tried Y-browser and Xplorer but it seems that no hidden files is of that size. And about the anti-virus, can I have the specific name for the program?
    It would really do me a great favor if you can tell me where does all the temporary installation files are located when installation runs its progress on the phone.
    I've considered hard resetting but I'm unsure of the effect after doing so. Will it wipe out all my data and settings in both phone and mass memory (C: and D?
    Thanks in advance.

  • HELP NEEDED!! application and theme problem in n93...

    hey.. i encountered a few problems in my n93 which i just purchased a few days back..
    There are 2 major problems that really frustrates me..
    first, when i install a theme in the memory card and use it, the theme gets resetted to the default theme(blue one)everytime i off and on the phone..But when i install it to the phone memory everything is fine..
    secondly, when i install an application(eg agile msngr) in the memory card, it works fine. Then when i reset my phone(off and on), the application cannot seem to work.. i try to open the application but nth seems to happen.. however i found that if i ejected and inserted the sd card(when the phone is on) the application works..But when i install it to the phone memory the application works fine..
    The same also happens to the mobile filmmakers application installed in my memory card..
    ive tried to reformat the memory card but everything is still the same.. the problems still occur..
    How do i solve this problem??? i do not want to rely on phone memory for all my applications and themes.. the internal memory of 50mb is not enough..
    HELP!!

    Hello, I have the SAME problem, though I didn't see that installing applications to phone memory they keep working fine.
    Of course I also want to have them working on memory card for space reasons.
    I have recently (after LONG waiting) updated firmware to 20.0.0.58, but the problem is still there :-(
    I am sure that asking Nokia help on-line will cause the usual "contact closest assistance point"....
    which firmware version do you have ?

  • ?? Invalid Cursor State - Help needed in JSP.

    OK...here's the problem I have a page that loads the values from a database into input fields so as users could edit and update the data into the respective tables.
    But the problem is i get this error which I have never come accross before. So any help clarifying this would be much appreciated.
    The stack trace :
    500 Internal Server Error
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
         at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3307)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5492)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:399)
         at /abb/jspages/editCosting.jsp._jspService(/abb/jspages/editCosting.jsp.java:40) (JSP page line 13)
         at com.orionserver[Orion/2.0.2 (build 11157)].http.OrionHttpJspPage.service(.:70)
         at com.evermind[Orion/2.0.2 (build 11157)]._ay._rkb(.:5741)
         at com.evermind[Orion/2.0.2 (build 11157)].server.http.JSPServlet.service(.:31)
         at com.evermind[Orion/2.0.2 (build 11157)]._cub._pod(.:521)
         at com.evermind[Orion/2.0.2 (build 11157)]._cub._bmc(.:177)
         at com.evermind[Orion/2.0.2 (build 11157)]._ax._ltc(.:666)
         at com.evermind[Orion/2.0.2 (build 11157)]._ax._uab(.:191)
         at com.evermind[Orion/2.0.2 (build 11157)]._bf.run(.:62)By the way I am using Microsoft Access as the DB and Orion Server 2.0.2.

    sorry guys...It was me who's the stupid one gocha. Actually there error was caused by a typo i made in the rs.next codings.
    Since i just copied it from another well functioning coding i didn't check for typos in the coding. Maybe i accidentally pressed something on the keyboard.
    Thanks for the help guys..I really appreciate it.

Maybe you are looking for

  • Quicktime Wont Play MPG Files

    Hi, Just bought my first Mac - loving it. Only issue I have so far is that I have a load of video camera clips with an .mpg extension, which I copied onto an external drive when I had my PC. Now when I come to play these files, it comes up with "The

  • Sample and Hold Application.

    I am acquiring data with the NI ELVIS on an analog input channel A0. I need to sample and hold the data according to a 480 Hz (2.08 ms) clock as follows: 1. Acquire data for the 0.69 ms (1st third of the cycle) and place the data into a new waveform.

  • Alternative ways to read excel in Sharepoint

    Now I'm facing with a problem of reading excel file on SharePoint server. In the old ways I usually use the OLEDB to read excel through the connection string, but it's just work on 32 bit system, then I attempt to convert my app to x86 platform targe

  • WLAN WCS times users out - Please somebody help

    Good day all, I have a mesh network with a 4404 WCS. I have 13 outdoor 1500 APs and 7 indoor 1240 indoor APs. The network also has an ACS server for web authentication. However, users complain of frequent timeouts such that they need to login again t

  • Logic 7.1.1-OSX 10.4.3 freeze on launch

    I've just updated my OS and Logic and now can't get Logic to open. It freezes at setting up memory buffers. I've repaired permissions, updated to Pro Apps 3.1, and ran Tech Tool to no avail. I unplugged the XSkey when launching and it loaded all the