Creating submenu in jsp

hi all
i want to create a submenu called "AddPosition" under the Position tab .i.e tab3 . can any pls give me exact code . below is my code.Its urgent . Thanks.
<%
String tab = (String)request.getAttribute("t");
String subTab = (String)request.getAttribute("st");
%>
<div id="headfont">talentpool</div>
<div id="header">
     <ul>
     <li>
     <% if (tab.equals("1")){%>
     <a class="xmenu3" >
     <% }else{ %>
     <a class="xmenu2" href="#">
     <% }%>
     <b class="xsnazzy"><b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><span class="xboxcontent">
     Home</span>
     </b></a>
     </li>
     <li>
     <% if (tab.equals("2")){%>
     <a class="xmenu3" >
     <% }else{ %>
     <a class="xmenu2" href="#">
     <% }%>
     <b class="xsnazzy"><b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><span class="xboxcontent">
     Applicants</span>
     </b></a>
     </li>
     <li>
     <% if (tab.equals("3")){%>
     <a class="xmenu3" >
     <% }else{ %>
     <a class="xmenu2" href="summary.do?mode=perform1&t=3&st=41">
     <% }%>
     <b class="xsnazzy"><b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><span class="xboxcontent">
     Position</span>
     </b></a>
     </li>
     <li>
     <% if (tab.equals("4")){%>
     <a class="xmenu3" >
     <% }else{ %>
     <a class="xmenu2" href="#">
     <% }%>
     <b class="xsnazzy"><b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><span class="xboxcontent">
     Calender</span>
     </b></a>
     </li>
     <li>
     <% if (tab.equals("5")){%>
     <a class="xmenu3" >
     <% }else{ %>
     <a class="xmenu2" href="adminHome.do?mode=manageUsers&t=5&st=41">
     <% }%>
     <b class="xsnazzy"><b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><span class="xboxcontent">
     Admin</span>
     </b></a>
     </li>
     </ul>
<div id="hleft">
Account Settings | Log Off
</div>
</div> <!-- end of header -->
<div id="sub_header">
<% if (tab.equals("1")){%>
<% } %>
<% if (tab.equals("2")){%>
<b>Add Applicant</b> | Import Resume | Search Resume
<% } %>
<% if (tab.equals("3")){%>
<% } %>
<% if (tab.equals("4")){%>
<% } %>
<% if (tab.equals("5")){%>
<b>Manage Users</b>
<% } %>
</div><!-- end of subheader -->

1) I don't care whether it's urgent.
2) What's a sub-menu?
3) Which tab?
4) Whatever it is, it's likely to an HTML question.

Similar Messages

  • Issue in creating a new JSP in Quoting

    I have created a new JSP in the quoting. That JSP is displaying the data properly but the cue card menu is not visible in that JSP. Is there any mapping need to be done to make it visble.

    Thank you for the response.
    The JSP has a function defined in the menu structure. For a trial I copied an existing jsp into another and called the copied one. the side menu bar did not get displayed, but the content got displayed.
    Can you please tell me, if we create a new JSP page how many mappings need to done and what are they.

  • How do i Create charts using JSP/Servlet & Database

    I have to create charts which shows the graph of stock exchange.
    i have a database that keeps the data for creating charts.
    But i did not know how to create charts using jsp-servlet.
    Any Example might help me to go forward.
    Any help will be really appreciated.
    Please Advice me.

    JFreeChart - You can generate the charts then convert them to image formats (PNG and JPEG) all using the JFreeChart API
    http://www.jfree.org/jfreechart/

  • Create reports from jsp

    hello!
    I want to create reports from JSP; It works fine, I program every report/JSP.
    The problem is that the customers wants to create customer templates, templates which should be able to retrieve custom data from database, acording to user wish. Is there any possibility to create customer report templates with JSP, created complitely in browser?
    Is there already any tool like this?
    What other reporting JSP tools already exist?
    THANK YOU!

    please, nobody has not any idea?

  • Creating a databound JSP pop-list (with dependent values)

    I was able to create a databound JSP pop-list from the "How To Create a Databound Pop-list with Oracle JDeveloper 10g" article. Where would I have to modify the code so that I can define a WHERE clause to the DepartmentView object so that only a subset of values are displayed? My goal is to try to create pop-lists so that the values of pop-list #2 is dependent on the current value in pop-list #1.

    You can create both static values and also
    values based on record group .
    I think you know how to create static values.
    (for static just give the values in "Element List" property of list item)
    Using Record group. see this example.
    Declare
    Rg_Id RecordGroup;
    Rg_Name varchar2(20) := 'Type';
    List_Id Item;
    Temp Number;
    Rowcount Number;
    Begin
    Rg_Id := Find_Group('Type');
    If Not Id_Null(Rg_Id) Then
    Delete_Group(Rg_Id);
    End If;
    Rg_Id := Create_Group_From_Query('Type','select empno,'
    &#0124; &#0124;'empno'
    &#0124; &#0124;' from emp ');
    List_Id := Find_Item('CTRL_BLOCK.IT_LIST');
    Temp := populate_Group(Rg_Id);
    Populate_List(List_Id,Rg_Id);
    End;
    In the selection you must give two columns one for label and another one for value.
    Try this and let me know if you have any problem.
    Regards,
    viji.
    null

  • Creating piecharts in jsp

    What is the current popular API to create piecharts in JSP pages?

    hi,
    for creating session,
    String uname = "admin";
    session.setAttribute("username",uname);
    for retreiving the value from session.
    String uname = (String)session.getAttribute("username");
    session is an implicit object in jsp, if u want to use in servlet Declare like this.
    HttpSession session = request.getSession();
    Bala

  • CREATE SEQUENCE in jsp

    Dear all
    i have one question would like to ask someone who can help that .
    if when i create one table with sequence in that table when i want to add any value use jsp script how can i declare sequence data type?
    for example
    in sql command line = INSERT INTO test VALUES( some_sequence.nextval
    and how can i defind some_sequence.nextval in jsp page ?
    what should i use ? string or int

    Yes, it's possible to create classes inside JSP files.
    <%!
    class Whatever {
       String variable = "java";
       void doSomething() {
          // Doing nothing :) ...
    %>

  • Create a simple JSP

    hi everybody
    how can I create a simple jsp?
    what should I write into portalapp.xml???

    Hi,
    have a look here:
    [SAP J2EE Development Tutorials|http://www.sdn.sap.com/irj/sdn/javaee5?rid=/webcontent/uuid/28b1ed0e-0d01-0010-c887-a8fdecdb9053#section9 [original link is broken]]
    There are some examples for developing simple JSPs...
    Regards

  • How to use a session, created in a jsp page, in a php page

    Hello, forgive me for the newbie question.
    Here is my problem:
    I want to have a jsp page create a session, set some session variables and then redirect to a php page which will access those same session variables.
    I have the redirection worked out, but I can't seem to find out how to use the jsp session in my php script.
    Is this possible at all, and if so, how does it work?

    Note that javascript runs on the client side, and JSP runs on the server. JSP and the session objects are NOT available to javascript in reaction to the user.
    If this function is called only when the page is first created, not when the user interacts with the page, or if you want that value to be constant with respect to the javascript, then you can do this:
    <%
      String someValue = (String)session.getAttribute("theAttributeName");
    %>
    <script type="text/javascript">
         Calendar.setup({inputField:"f_date_dfFirstPmtDate",
                                              button:"f_trigger_dfFirstPmtDate",
                                             singleClick:true,
                                              ifFormat:<%=someVale%>});
    </script>

  • Create LOVS in jsp with ViewObjects

    Hello,
    I want to create a jsp-page containing two LOV's (html-<selects>). The first LOV is based on a VO named COUNTRIES. The second LOV is based on a VO named COMPANIES. There's a View Link between the two VO's.
    I am using the BC4j-Tags from the Component Palette. What I have to do to synchronize the both LOV's. For example, if I select a country, only specific companies have to appear in the COMPANY LOV.
    Thanks for your help.
    Peter

    Within jsp pages it is not possible to have the comboboxes dynamically updated without intervention to either refresh the page with the new data or use java script.
    I had a similar problem which i resolved with java script :
    Interactive combo boxes on jsp
    Have a look at this thread for more info.

  • JSP iframe src = 'a file that is created by another JSP'  Error

    I have a JSP file that has an iframe into which, I want to load a .pdf file.
    Firstly, the iframe should contain nothing(and it does so), and when I press a button, another JSP is called, which creates a .pdf file and puts it in the WEB directory of the Application. After creating the .pdf, this JSP calls the first JSP, that now is supposed to load into the iframe the created .pdf.
    The .pdf is created corectly, but I believe that a synchronization is needed, so that the first JSP should not load the .pdf until the second doesn't finish writing it.
    I tried with delaying, but no success.And then I tried with synchronized(page){ }, but there are many possibilities instead of "page", and I came to no success.
    Here are my two JSPs:
    <%--
    Document : user
    Created on : 06.05.2008, 13:27:06
    Author : razvanb
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>UserAbruf</title>
    <script type="text/javascript" language="JavaScript" src="jsscript.js">
    </script>
    </head>
    <style type="text/css">
    body {background-color : white}
    </style>
    <body>
    <%response.setHeader("Cache-Control", "must-revalidate, no-cache");
    response.setHeader("Expires", "0"); %>
    <div style="position:absolute;top:0px;left:0px;width:150px;height:100%" id = "userDiv">
    <form name="userForm" action="userForm" method="post">
    <br>
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td>
    <img src="sign.gif" alt="LOGO" style="position:relative;left:20%"/>
    </td>
    </tr>
    <tr>
    <td>
    <input type="button" value="Neuer Abruf" style="position:relative;top:20px;left:30%" onclick="gotopage('NeuAbrufS.jsp')">
    <br>
    <br>
    <input type="button" value="Abruf bearbeiten" style="position:relative;top:20px;left:30%">
    </td>
    </tr>
    </table>
    </form>
    </div>
    <%
    if(session.getAttribute("isource") == null){
    System.out.println("before pressing");%>
    <div style="position:absolute;top:0px;left:200px;width:100%;height:100%" id = "userFrameDiv">
    <h1 style="position:relative;left:7%;font-family:verdana"> Mobilit�tsabruf-Managementsystem </h1>
    <iframe width="850" height="590" id="frame1" name="frame1" ></iframe>
    </div>
    <% }
    if(session.getAttribute("isource") != null) {
    System.out.println("after pressing:"+ (String)session.getAttribute("isource"));%>
    <div style="position:absolute;top:0px;left:200px;width:100%;height:100%" id = "userFrameDiv">
    <h1 style="position:relative;left:7%;font-family:verdana"> Mobilit�tsabruf-Managementsystem </h1>
    <iframe src = <%=(String)session.getAttribute("isource")%> width="850" height="590" id="frame1" name="frame1" ></iframe>
    </div>
    <%session.setAttribute("isource", null);
    }%>
    </body>
    </html>
    <%-- <%=(String)session.getAttribute("isource")%> --%>
    <%-- Abruf 38 LwA.pdf --%>
    <%--
    Document : NeuAbrufS
    Created on : 08.05.2008, 13:45:02
    Author : razvanb
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Abruf</title>
    </head>
    <body>
    <%-- start web service invocation --%><hr/>
    <%
    try {
    localPackage.UserWsdlService service = new localPackage.UserWsdlService();
         localPackage.UserWsdlPortType port = service.getUserWsdlPort();
         // TODO initialize WS operation arguments here
         localPackage.UserAccount input = new localPackage.UserAccount();
    input.setUsername((String)session.getAttribute("username"));
    input.setPassword((String)session.getAttribute("password"));
    System.out.println(input.getUsername() + ", " + input.getPassword());
         // TODO process result here
         boolean result = port.createNewPdf(input);
    } catch (Exception ex) {
         // TODO handle custom exceptions here
    java.util.Random random = new java.util.Random();
    int randomNr = random.nextInt();
    session.setAttribute("isource", "Abruf 38 LwA.pdf?rubbish="+ randomNr);
    request.getRequestDispatcher("user.jsp").forward(request, response);
    %>
    <%-- end web service invocation --%><hr/>
    <%-- <jsp:forward page="user.jsp"></jsp:forward> --%>
    </html>

    Hi Alha,
    when that file is locked by the other program you can't do anything about that - apart from quitting that other program. Probably this isn't an option to you…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Create frames using JSP tags

    I am trying to create two frames in my JSP page . However it just displays a blank page on execution.
    I am using following code to create frames:
    <hbj:content id="myContext" >
          <hbj:document>
         <hbj:documentHead>    
         <frameset cols="100,*" border=1 frameborder="1">
                     <frame name="frame1"
                            src ="http://www.yahoo.com">
                     <frame name="frame2"
                            src= "http://www.google.com">
                </frameset>
         <hbj:documentHead>            
        </hbj:document>   
    </hbj:content>
    Thanks

    Neeti,
       Just get rid of JSP tags and put the frameset html on jsp page. It should work without JSP tags.
    <html>
    <frameset cols="100,*" border=1 frameborder="1">
    <frame name="frame1"
    src ="http://www.yahoo.com">
    <frame name="frame2"
    src= "http://www.google.com">
    </frameset>
    </html>
    Message was edited by: Prakash  Singh

  • How to create graphs on JSP page in JDeveloper 10.1.3

    Hi all,
    Is there an easy way to create graph objects with JDeveloper 10.1.3? I have taken a look to some tutorials, but it looks like they all use the "drag/drop graph from the data control palette" method.
    E.g. I got example 88 to work from http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html, but I have no idea how to get the BIGraphDef1.xml object and how to link it to a set of data.
    Are there some tutorials to show how graphs can be used in JDev 10.1.3?

    Frank,
    This is what I did to implement the graphic manual, but I think, I forgot something...
    1. create a new application with projects DataModel and UserInterface
    2. in the DataModel I created a similar master/detail view as the one of Steve, this is named:
    TestModuleDataControl
    \--DepView
    __\--Deptno
    __\--Dname
    __\--Loc
    __\--EmpView1
    ____\--Sal
    3. I created a new jspx page and added a graph tag:
    <f:verbatim>
    <graph:Graph data="${bindings.DepartmentsEmployeesInDepartmentGraph}"
    imageHeight="200" imageWidth="400"/>
    </f:verbatim>
    4. in the page definitions I added
    <graph id="DepartmentsEmployeesInDepartmentGraph"
    IterBinding="EmployeesInDepartmentIterator"
    ControlClass="oracle.dss.graph.Graph"
    SeriesLabel="Ename"
    GraphPropertiesFileName="userinterface.BIGrap1hDef1"
    SeriesType="SINGLE_SERIES">
    <AttrNames>
    <Item Value="Sal"/>
    </AttrNames>
    </graph>
    5. I added also the iterator:
    <iterator id="EmployeesInDepartmentIterator" Binds="EmpView1" RangeSize="10"
    DataControl="TestModuleDataControl"/>
    6. I copy/pasted the BIGraphDef1.xml from Steve's project into 'Application Sources'\userinterface.
    7. in the web.xml file in WEB-INF I added:
    <servlet>
    <servlet-name>GraphGeneratorServlet</servlet-name>
    <servlet-class>oracle.jbo.html.jsp.graph.GraphGeneratorServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>GraphGeneratorServlet</servlet-name>
    <url-pattern>/GraphGeneratorServlet</url-pattern>
    </servlet-mapping>
    8. when I run the page, I can't see the graph and there are also no errors. I think I mis a global setting somewhere...
    Is there anything I forgot to do?
    note: if I add a new jsp page into steve's application, I do can see the graph if I perform the steps mentioned above...
    I just found out that, If I create the graph on a page which is in the root directory, then it works. If I put it in a subdirectory, it doesn't:
    - create graph as mentioned above on a page: web content/myGraph.jspx --> works
    - create graph as mentioned above on a page: web content/app/myGraph.jspx --> doesn't work...
    Does somebody know where to put a setting/parameter to get the Graph visible in the subdirectory app?

  • Removing scrollbars on the JSP page of frames created by included JSP files

    Hi All,
             In the iternet sales B2B application which we are developing, has a blank JSP file. Wherein we are adding other JSP files on it, loading trough JS.
    When we are adding it is making the various jsp files in the form of the frames, and each frame has different JSP page. So it is adding scrollbars on each frame if the size of the page exceeds the size of frame.
    we don't want the scrollbars. Kindly suggest to remove these scrollbars, and all the pages should look as a single JSP page.
    Thanks & Regards
    EKta

    Hi
    set scrolling="no" while creating frames
    Murali.K.N

  • How to handle dynamically created checkboxes in JSP???

    Hello everybody,
    In a JSP page I would like to create checkbox dynamically on every
    result line (detail line), then check in some of them and finally pass the checked lines to a JSP bean which will handle them on a submit button press.
    The problem are:
    - how to index every checkbox in jsp result line in jsp page in order to avoid solutions like this:
    <input type=checkbox" name="value1">
    <input type=checkbox" name="value2">
    etc
    - how to read every checkbox to find the checked ones
    Is there anobody who has any experience from case like this?
    Please, help me.
    Best regards,
    Danny

    Hi, first off, no need to determine what has been checked or not. If the checkbox is checked, on the post, the value will be submitted as part of the request. If the checkbox is not checked, it will not be submitted (it's value will be null). Depending on what you need, I have approached this a number of different ways. One way is to name all checkboxes the same name. If you need to distinguish between two rows in the form, then in the value field for the checkbox, use some type of distinguishing factor, for example,
    <input type=checkbox name=chkName value="1:abc">
    <input type=checkbox name=chkName value="1:def">
    Now, you only have to make one call on the Servlet/JSP receiving the form post, request.getParameterValues("chkName") which will return an array of the non-null Strings that were checked.

Maybe you are looking for

  • Problem with opening and closing the lid

    when i am trying to open or close the notebook lid..there is sound of crack, there is no any physical damage happened  in  past with my notebook....

  • Unable to open files from within Photoshop

    Hi, I've updated to CC 2014.2.1 and I'm continuing to get this message when I attempt to open a file from within Photoshop (it started when I installed a beta versionYosemite, so I switched back to Mavericks, but it didn't help, [so many updates with

  • Can we use a combination of structural and role authorisations in BW?

    Can we use a combination of structural and role authorisations in BW for the same object (eg cost centre CC) in the same report? If so how does it work? Read the structurals from the DSO and if missing then look for role auth?

  • Party Configuration

    Hi My scenario: SAP ECC -> SAP PI -> Web Service -> B2B Gateway In SAP ECC we 20 the partner is created as V02 (same as B2B trading partner name) of type "SP". When the IDOC reaches PI it fails showing the error in moni as "Party and Service not defi

  • Apple quicktime video doesn't play on windows 7

    I installed Quicktime on a new Windows 7 machine in order to watch videos (e.g., iCloud) on apple.com. Each time I select a video, I get the "Install Quicktime" window instead of the video, even though Quicktime is up and running.