How to add an if statement in jsp?

Hi all,
I have a displayTag table and wonder how to have a condition on the following code:
  <display:column title="Accept?">
            <html:multibox property="select" value = "<%=bean.toString() %>" />
           </display:column>Basically, I would like to have this code (checkBox) appear only if a bean property is true (otherwise don't show it)
if (bean.userApprove)
// don't show checkBox
else
//show the checkBoxthanks for any pointers

<%
if (bean.userApprove)
%>
// don't show checkBox
<%
else
%>
<input type=checkbox name=chk value=chk />
//show the checkBox
<%
%>

Similar Messages

  • How to add MenuBar and MenuItems in JSP Form

    Help Me,
    Dear Forum,
    I am user of jDeveloper 10g working on JSP (Web Module).So How to add MenuBar and Menu Item, in Our jsp Form.What this type control exist?
    regards
    javed khan

    You should do this instead:
    iframe.setJMenuBar(i_menuBar);

  • How can add electronic bank statement format into SAP?

    Hi there,
    As far as know, SAP allows to add new EBS format in ff_5.
    where should i go for this in IMG?
    Thanks in advance.
    J.

    Sorry,.,.
    No that's not what i meant.
    In FF_5, WE CAN CHOOSE FORMAT OUT OF "Elect. bank statement format".
    Currently SAP shows MUTICASH, SWIFT94O something like that.
    If i want to add new type of format like MT990, HOW TO DISPLAY ON "Elect. bank statement format" POSSIBLE ENTRY IN FF_5?
    Hope it;s more clear to expalin.

  • R12 OTL - Time card: How to add Jursidiction / (City & State for US)?

    Hi,
    We have a requirement to add Jurisdiction details for R12 Time card.
    We need to add the same for US as well as international (India, Spain etc.,), appreciate if you have the experience and steps on how the same can be achieved.
    There is a meta link note 361245.1, but it only talks about 11.5.10.
    Appreciate your help!!
    Thanks
    Prasad

    Welcome to the forums !
    Pl see if MOS Doc 304340.1 (Oracle Time & Labor Timecard Configuration 11.5.10+) can help
    HTH
    Srini

  • How to add multiple skin states to SkinnableContainerSkin so that can switch among states

    Hi All,
    I have a xml which represents 2 views of SkinnableContainer, xml being parsed and converted to ui elements and stored into 2 array variables based on display property of the tag
    initially adding 1 set of array element to Container
    whenever a button clicked to show different set of array elements, calling removeAllElements() and adding different set of elements from 2nd array
    Can somebody help me converting this application to utilize "Skin States"  feature
    Sorry, Could not find way to attach demo project, copied code bellow
    Thanks in advance...
    /src/ContainerDemo.mxml
         /com.containerdemo.controls
              ButtonControl.as
              ContainerControl.mxml
              CustomContainer.as
              CustomControls.mxml
              IControl.as
              ParentControl.mxml
         /com.containerdemo.skins
              ButtonControlSkin.mxml
              CustomContainerSkin.mxml
         /com.containerdemo.utils
              XmlUtil.as
    ContainerDemo.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     minWidth="700" minHeight="500"
                                     xmlns:controls="com.containerdemo.controls.*">
              <s:VGroup paddingBottom="20" paddingLeft="20"
                                    paddingRight="20" paddingTop="20" gap="20"
                                    horizontalCenter="0">
                        <s:Label text="Flex states demo" fontSize="30"/>
                        <controls:ParentControl id="pc" />
              </s:VGroup>
    </s:Application>
    XmlUtil.as
    package com.containerdemo.utils {
              import com.containerdemo.controls.ButtonControl;
              import com.containerdemo.controls.ContainerControl;
              import com.containerdemo.controls.CustomContainer;
              import com.containerdemo.controls.IControl;
              public class XmlUtil {
                        public static var ELEMENTS:Object = {
                                  "buttonElement": ButtonControl,
                                  "containerElement": ContainerControl
                        public static function parse(xml:XML):IControl {
                                  var name:String = xml.name();
                                  var clazz:Class = ELEMENTS[name];  
                                  var elem:IControl = new clazz();
                                  elem.parse(xml);
                                  return elem;
    CustomContainerSkin.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                                   xmlns:s="library://ns.adobe.com/flex/spark"                               
                                   xmlns:mx="library://ns.adobe.com/flex/mx">
              <fx:Metadata>
                        [HostComponent("com.containerdemo.controls.CustomContainer")]
              </fx:Metadata>
        <s:states>
            <s:State name="normal" />
            <s:State name="disabled" />
        </s:states>
              <s:Group id="rectGroup">
                        <s:Rect left="0" right="0" top="0" bottom="0" radiusX="8" radiusY="8">
                                  <s:stroke>
                                            <s:SolidColorStroke weight="2" color="#FF0000" alpha="0.8" />
                                  </s:stroke>
                        </s:Rect>
                        <s:HGroup top="10" left="10" right="10" gap="4">
                                  <s:Label id="containerLabel" text="{this.hostComponent.label}" />
                                  <s:Button id="compOrExpButton" label="{this.hostComponent.btnLabel}" />
                                  <mx:Spacer width="100%" />
                        </s:HGroup>
                        <s:Group id="contentGroup" left="16" right="16" top="32" bottom="32" />
              </s:Group>
    </s:SparkSkin>
    ButtonControlSkin.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
                                   minWidth="21" minHeight="21" alpha.disabled="0.5">
              <fx:Metadata>
                        [HostComponent("com.containerdemo.controls.ButtonControl")]
              </fx:Metadata>
        <s:states>
            <s:State name="up" />
            <s:State name="over" />
            <s:State name="down" />
            <s:State name="disabled" />
        </s:states>
              <s:Label id="labelDisplay"
                 textAlign="center"
                 verticalAlign="middle"
                 maxDisplayedLines="1" minWidth="20"
                 horizontalCenter="0" verticalCenter="1"
                 left="10" right="10" top="2" bottom="2">
        </s:Label>
    </s:SparkSkin>
    ParentControl.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx"
                         xmlns:controls="com.containerdemo.controls.*"
                         creationComplete="group1_creationCompleteHandler(event)">
              <fx:Declarations>
                        <fx:XML id="compXml" xmlns="">
                                  <elems>
                                            <buttonElement id="b1" label="Element1" />
                                            <containerElement id="c2" label="Container2" display="comp">
                                                      <comp>
                                                                <buttonElement id="c2b1" label="Element5 (Comp)" />
                                                                <buttonElement id="c2b2" label="Element6 (Comp)" />
                                                                <containerElement id="c2c1" label="Container c2c1" display="comp">
                                                                          <comp>
                                                                                    <buttonElement id="c2c1b1" label="Element c2c1b1 (Comp)" />
                                                                                    <buttonElement id="c2c1b2" label="Element c2c1b2 (Comp)" />
                                                                          </comp>
                                                                </containerElement>
                                                                <containerElement id="c2c2" label="Container c2c2" display="comp">
                                                                          <comp>
                                                                                    <buttonElement id="c2c2b1" label="Element c2c2b1 (Comp)" />
                                                                                    <buttonElement id="c2c2b2" label="Element c2c2b2 (Comp)" />
                                                                          </comp>
                                                                </containerElement>
                                                      </comp>
                                            </containerElement>
                                            <buttonElement id="b3" label="Element7" />
                                  </elems>
                        </fx:XML>
                        <fx:XML id="expXml" xmlns="">
                                  <elems>
                                            <buttonElement id="b1" label="Element1" />
                                            <containerElement id="c2" label="Container2" display="exp">
                                                      <comp>
                                                                <buttonElement id="c2b2" label="Element5 (Comp)" />
                                                                <buttonElement id="c2b2" label="Element6 (Comp)" />
                                                                <containerElement id="c2c1" label="Container c2c1" display="exp">
                                                                          <comp>
                                                                                    <buttonElement id="c2c1b1" label="Element c2c1b1 (Comp)" />
                                                                                    <buttonElement id="c2c1b2" label="Element c2c1b2 (Comp)" />
                                                                          </comp>
                                                                          <exp>
                                                                                    <buttonElement id="c2c1b3" label="Element c2c1b3 (Exp)" />
                                                                                    <buttonElement id="c2c1b4" label="Element c2c1b4 (Exp)" />
                                                                          </exp>
                                                                </containerElement>
                                                                <containerElement id="c2c2" label="Container c2c2" display="comp">
                                                                          <comp>
                                                                                    <buttonElement id="c2c2b1" label="Element c2c2b1 (Comp)" />
                                                                                    <buttonElement id="c2c2b2" label="Element c2c2b2 (Comp)" />
                                                                          </comp>
                                                                          <exp>
                                                                                    <buttonElement id="c2c2b3" label="Element c2c2b3 (Exp)" />
                                                                                    <buttonElement id="c2c2b4" label="Element c2c2b4 (Exp)" />
                                                                          </exp>
                                                                </containerElement>
                                                      </comp>
                                                      <exp>
                                                                <containerElement id="c4" label="Container4" display="comp">
                                                                          <comp>
                                                                                    <buttonElement id="c4b1" label="Element 555(Comp)" />
                                                                                    <buttonElement id="c4b2" label="Element 655 (Comp)" />
                                                                          </comp>
                                                                          <exp>
                                                                                    <buttonElement id="c4b3" label="Element 335 (Exp)" />
                                                                                    <buttonElement id="c4b4" label="Element 126 (Exp)" />
                                                                          </exp>
                                                                </containerElement>
                                                      </exp>
                                            </containerElement>
                                            <buttonElement id="b3" label="Element7" />
                                  </elems>
                        </fx:XML>
              </fx:Declarations>
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected function group1_creationCompleteHandler(event:FlexEvent):void {
                                            this.customControls.parse(compXml);
                        ]]>
              </fx:Script>
              <controls:CustomControls id="customControls" />
    </s:Group>
    IControl.as
    package com.containerdemo.controls
              import mx.core.IVisualElement;
              public interface IControl extends IVisualElement {
                        function parse(xml:XML):void;
    CustomControls.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx"
                         implements="com.containerdemo.controls.IControl">
              <fx:Script>
                        <![CDATA[
                                  import com.containerdemo.utils.XmlUtil;
                                  public function parse(xml:XML):void {
                                            for each (var child:XML in xml.children()) {
                                                      var e:IControl = XmlUtil.parse(child);
                                                      this.addElement(e);
                        ]]>
              </fx:Script>
              <s:layout>
                        <s:HorizontalLayout verticalAlign="middle" gap="15"
                                                                          paddingLeft="16" paddingRight="16"
                                                                          paddingTop="16" paddingBottom="16" />
              </s:layout>
    </s:Group>
    CustomContainer.as
    package com.containerdemo.controls
              import com.containerdemo.skins.CustomContainerSkin;
              import com.containerdemo.utils.XmlUtil;
              import flash.events.MouseEvent;
              import mx.collections.ArrayCollection;
              import spark.components.Button;
              import spark.components.Group;
              import spark.components.SkinnableContainer;
              public class CustomContainer extends SkinnableContainer implements IControl {
                        [SkinPart(required="true")]
                        public var compOrExpButton:Button;
                        [SkinPart(required="true")]
                        public var rectGroup:Group;
                        private var dispState:String;
                        private var _label:String;
                        private var _cid:String;
                        private var compControls:ArrayCollection;
                        private var expControls:ArrayCollection;
                        public function CustomContainer() {
                                  this.setStyle("skinClass", Class(CustomContainerSkin));
                        public function parse(xml:XML):void {
                                  this.compControls = null;
                                  this.expControls = null;
                                  compControls = new ArrayCollection;
                                  expControls = new ArrayCollection;
                                  this.dispState = xml.@display;
                                  this.label = xml.@label;
                                  this.cid = xml.@id;
                                  for each (var child:XML in xml.comp.children()) {
                                            var e:IControl = XmlUtil.parse(child);
                                            this.compControls.addItem(e);
                                            //trace((e is ButtonControl).label);
                                  for each (var child1:XML in xml.exp.children()) {
                                            var e1:IControl = XmlUtil.parse(child1);
                                            this.expControls.addItem(e1);
                                            //trace((e1 as ButtonControl).label);
                                  showControls();
                        [Bindable]
                        public function set cid(value:String):void {
                                  this._cid = value;
                        public function get cid():String {
                                  return this._cid;
                        public function showControls():void {
                                  if (this.dispState == "comp") {
                                            showCompControls();
                                  } else {
                                            showExpControls();
                        public function showCompControls():void {
                                  if (this.numElements >0)
                                            this.removeAllElements();
                                  for each (var e:IControl in compControls) {
                                            this.addElement(e);
                                  this.btnLabel = "Exp";
                                  this.invalidateSkinState();
                        public function showExpControls():void {
                                  if (this.numElements >0)
                                            this.removeAllElements();
                                  for each (var e:IControl in expControls) {
                                            this.addElement(e);
                                  this.btnLabel = "Comp";
                                  this.invalidateSkinState();
                        public function get ownerContainer():CustomContainer {
                                  return this.owner as CustomContainer;
                        public var b:Boolean = true;
                        public function displayCompOrExpControls(event:MouseEvent):void {
                                  if (this.btnLabel == "Exp") {
                                            if (b) {
                                                      this.reParse();
                                                      b = false;
                                            } else {
                                                      this.showExpControls();
                                  } else {
                                            this.showCompControls();
                        public function reParse():void {
                                  /*if (this.owner && (this.owner is CustomContainer))
                                            (this.owner as CustomContainer).reParse();
                                  else {*/
                                            var xml:XML = this.parentApplication.pc.expXml;
                                            var expXml:XMLList = xml.descendants().(attribute("id") == this.cid);
                                            this.parse(expXml[0]);
                        private var _btnLabel:String;
                        public function get btnLabel():String {
                                  return this._btnLabel;
                        [Bindable]
                        public function set btnLabel(value:String):void {
                                  this._btnLabel = value;
                        public function get label():String {
                                  return this._label;
                        [Bindable]
                        public function set label(value:String):void {
                                  this._label = value;
                        override protected function partAdded(partName:String, instance:Object):void {
                                  super.partAdded(partName, instance);
                                  if (instance == this.compOrExpButton)
                                            this.compOrExpButton.addEventListener(MouseEvent.CLICK, displayCompOrExpControls, false, 0, true);
                        override protected function partRemoved(partName:String, instance:Object):void {
                                  super.partRemoved(partName, instance);
                                  if (instance == compOrExpButton)
                                            this.compOrExpButton.removeEventListener(MouseEvent.CLICK, displayCompOrExpControls, false);
    ContainerControl.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <controls:CustomContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                                                  xmlns:mx="library://ns.adobe.com/flex/mx"                                                              
                                                                  xmlns:controls="com.containerdemo.controls.*">
              <controls:layout>
                        <s:HorizontalLayout gap="20"
                                                                          paddingLeft="16" paddingRight="16"
                                                                          paddingBottom="16" paddingTop="16" />
              </controls:layout>
    </controls:CustomContainer>
    ButtonControl.as
    package com.containerdemo.controls
              import com.containerdemo.skins.ButtonControlSkin;
              import spark.components.Button;
              public class ButtonControl extends Button implements IControl {
                        public function ButtonControl() {
                                  this.setStyle("skinClass", Class(ButtonControlSkin));
                        public function parse(xml:XML):void {
                                  this.label = xml.@label;

    Could somebody help me?

  • How to add .mpg file in my jsp

    I wanted to run mpg (video) files within my jsp frame.I will appreciate if somebody forward me the code for that....
    Regards,
    srbwin

    Well i think this cab help u.
    just check it out.
    <HTML>
    CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    STANDBY="Loading Windows Media Player components..."
    TYPE="application/x-oleobject">
    <PARAM NAME="FileName" VALUE="testmpg.mpg">
    SRC="/testmpg.mpg"
    NAME="MediaPlayer"
    WIDTH=320
    HEIGHT=240>
    </EMBED>
    </OBJECT>
    </HTML>
    here, testmpg.mpg is the mpg file u wanna play....make sure that
    this html file and the testmpg.mpg file are located in the 'root'
    directory of tomcat...
    next, start tomcat and go to this page....

  • How to add the delete statement in this procedure.

    I got a string from user e.g. ‘1,2,3’ and userid =14 from user;
    I wrote a procedure that will insert the record as follows;
    Userid newsletterid
    14     1
    14 2
    14 3
    The procedure is
    CREATE OR REPLACE PROCEDURE usersubscription_procd (vuserid in number, vnewsletterid IN VARCHAR2)
    AS
    I NUMBER;
    J NUMBER;
    VAL VARCHAR2(100);
    BEGIN
         I := 1;
         J := 1;
         WHILE INSTR(vnewsletterid,',',I) != 0 LOOP
         VAL := SUBSTR(vnewsletterid,I,INSTR(vnewsletterid,',',I)-J);
         I := INSTR(vnewsletterid,',',I)+1;
         J := I;
         INSERT INTO usersubscription (usersubcriptionid,userid,newsletterid)
         VALUES (usersubscription_seq.nextval,vuserid,VAL);
         END LOOP;
         VAL := SUBSTR(vnewsletterid,I,LENGTH(vnewsletterid));
         INSERT INTO usersubscription (usersubcriptionid,userid,newsletterid)
         VALUES (usersubscription_seq.nextval,vuserid,VAL);
    END;
    Now one requirement is that
    When next string comes like ‘1,4’ for same user
    Then I want to delete the 2 and 3 and insert the 4 .
    Please tell me solution.

    Hi,
    Try to delete all record from ther current user :
    CREATE OR REPLACE PROCEDURE usersubscription_procd (vuserid in number, vnewsletterid IN VARCHAR2)
    AS
    I NUMBER;
    J NUMBER;
    VAL VARCHAR2(100);
    BEGIN
         begin
              delete usersubscription where userid = vuserid;
         exception when others then null;
         end;
         I := 1;
         J := 1;
         WHILE INSTR(vnewsletterid,',',I) != 0 LOOP
              VAL := SUBSTR(vnewsletterid,I,INSTR(vnewsletterid,',',I)-J);
              I := INSTR(vnewsletterid,',',I)+1;
              J := I;
              INSERT INTO usersubscription (usersubcriptionid,userid,newsletterid)
              VALUES (usersubscription_seq.nextval,vuserid,VAL);
         END LOOP;
         VAL := SUBSTR(vnewsletterid,I,LENGTH(vnewsletterid));
         INSERT INTO usersubscription (usersubcriptionid,userid,newsletterid)
         VALUES (usersubscription_seq.nextval,vuserid,VAL);
    END;
    /Nicolas.

  • How do you do Switch statement in JSP

    using the HTML tags!

    using the HTML tags!HTML has no switch capabilities.
    If you mean using JSTL, then you can use the <c:choose>, <c:when> and <c:otherwise> tags to behave like an if else structure:
    <c:choose>
      <c:when test="${var == 1}">
        //something
      </c:when>
      <c:when test="${var == 2}">
        //something
      </c:when>
      <c:otherwise>
        //something
      </c:otherwise>
    </c:choose>

  • How to add the update statement in this procedure?

    I have one table usersubscription (userid,newsletterid,deleted)
    I got one string from user e.g. ('1,2,3') and userid = 14
    I wrote proceduer that will insert this records in to usersubscription table;
    userid     newsletterid     deleted
    14     1          n
    14     2          n
    14     3          n
    default value of deleted column is 'n'.
    my procedure is as follows;
    CREATE OR REPLACE PROCEDURE usersubscription_procd1 (vuserid in number, vnewsletterid IN VARCHAR2)
    AS
    I NUMBER;
    J NUMBER;
    VAL VARCHAR2(100);
    BEGIN
         I := 1;
         J := 1;
         WHILE INSTR(vnewsletterid,',',I) != 0 LOOP
         VAL := SUBSTR(vnewsletterid,I,INSTR(vnewsletterid,',',I)-J);
         I := INSTR(vnewsletterid,',',I)+1;
         J := I;
         INSERT INTO usersubscription (usersubcriptionid,userid,newsletterid)
         VALUES (usersubscription_seq.nextval,vuserid,VAL);
         END LOOP;
         VAL := SUBSTR(vnewsletterid,I,LENGTH(vnewsletterid));
         INSERT INTO usersubscription (usersubcriptionid,userid,newsletterid)
         VALUES (usersubscription_seq.nextval,vuserid,VAL);
    END;
    Now one requirement is that when new string comes for same userid e.g.('1,4,5') userid = 14
    then the deleted column for 1 and 2 newsletterid changes to 'y';
    please tell me the solution.
    Prathamesh.

    Hi,
    Before your loop, you can make something else like :
    SQL> select * from test;
        USERID NEWSLETTERID D
            14            1 n
            14            2 n
            14            3 n
    SQL> update test
      2  set deleted = 'y'
      3  where instr('1,4,5',newsletterid,1) = 0
      4  and userid = 14;
    2 ligne(s) mise(s) à jour.
    SQL> select * from test;
        USERID NEWSLETTERID D
            14            1 n
            14            2 y
            14            3 y
    SQL> HTH,
    Nicolas.

  • INSERT statement with JSP

              Does anyone know how to create an INSERT statement with JSP using
              variables??
              I can do the insert if I code the values of the variables in the statement,
              but when I try to use variables to do the insert it tries to insert the
              variable name and not the value of the variable into the table.
              Thanks,
              Doug
              

    "Doug Schaible" <[email protected]> wrote in message news:<bicO7.1279268$[email protected]>...
              > I can do the insert if I code the values of the variables in the statement,
              > but when I try to use variables to do the insert it tries to insert the
              > variable name and not the value of the variable into the table.
              Doug,
              I think you missed the <%= blahblah %> syntax.
              Regards
              drit
              

  • How can we add a control on our .jsp webpage for uploading several image fi

    How can we add a control on our .jsp webpage for uploading several image files as done in gmail attachment, Where a Remove button also appears if we wanna remove the particular attachment.

    The SCOM Management Server is in Domain A.  I've tried it already and it has failed.  
    So just to clarify the method I used was to go to Administration>Security>User Roles.  Then New User Role>Read-Only Operator.  In the Create User Role Wizard I then gave the User Role a name, Clicked "Add" under User Role Members.
     Then the Select Users or Groups window pops up and I changed the Locations from Domain A to Domain B and searched for the user, which it's able to find, then clicked "OK" to add it to the User Role members which it does just fine.  On
    the next page which is Group Scope I checked the one group I want this account to have access to and then click next.  This brings me to Dashboards and Views where I click the radio button for "Only the dashboards and views selected in each tab are
    approved" and chose the folder of dashboards I want this account to access and then click next.  This brings me to the Summary and I click "Create".  At this point it thinks for a moment then closes out the wizard but the new Read-Only
    Operator does not appear.  I then look in Event Viewer and see the Event I pasted above.
    Am I doing something wrong here?  Any guidance on how to get around this issue would be much appreciated.
    Thanks,
    Jake

  • How to add existing jsp file to a project?

    I am trying out 10g developer preview. Looks like a lot of bugs are there in the tool. I would like to know how to add existing jsp file into a project. I tried the Import functionality, but it shows the option to create a project and include only Java files. Is there a way to do this? Thank you

    Just copy the files in the directory where the rest of your source file is.

  • How to add a frame dynamically in a jsp page.

    Hai all,
    In my application, in a particular jsp page i had the 3 links namely add.edit and delete. When click on add button, it is pointing to another jsp page where i can enter user details. But what i want now is when i click add button, the form in which we fill the user details should be added to the current page itself dynamically i.e., it should not go to another page when i click add button and that form should be displayed in the current page in a new frame dynamically.
    The same should happen when i click n edit or delete options. everything should be diaplayed in the same page in different frames.
    Can anyone suggest me about how to add a frame dynamically.

    You create a frameset with two frames. One frame you give 100% of the rows and run the JSP in this frame. The other frame you give 0% of the row so that it is hidden. In the JSP you use a JavaScript funtion to submit the form. This function will call the parent frameset to reset the row values to 50%/50% which will make the bottom frame visible and then submit the form request with the bottom frame as teh target.
    It is not so much as creating frames as using JavaScript to hide and display frames.

  • How to add "profit Center" in Screen varaint of manual bank Statement.

    Hi all,
    Kindlt tell how to add "profit center" in possible filed of Screen varaint of manual bank statement.T-code OT43.
    Rgds,
    Alok Sharma

    Hello,
    Create a new variant
    Put your cursor on possible fields.
    Click on page down on your key board.
    It will show all possible fields.
    Double click on the profit center.
    It will go to current field in your variant.
    Hope this solves.
    Regards,
    Ravi

  • How to add javafx image project in my jsp page ?

    how to add javafx image project in my jsp page ?

    Create your JavaFX application as an Applet... then embed the applet object inside your html. I'm sure if you create a javafx netbeans project and hit build... you get a html file that shows you how to load the built binary output into the page.

Maybe you are looking for

  • Only a grey empty box in browser window

    I only get a grey empty box in my browser windows, when I start the HTML-pages with the java applet "HelloWorldApplet" from the "my first cup of java" tutorial from the java-sun pages. What can I do? Other java applets work fine. I have activated Jav

  • Limit on number of function based indexes ?

    What is the limit on the number of function based indexes that can exist on a table ? I haven't been able to find this info in the Oracle docs yet . I'd RTFM, but which one ? There's so many ! :-)

  • Making a document with horizontal (or top) binding spine, e.g. for calendars

    On request of Peter Spier I will post a script here to make a document with top binding for e.g. calendars. The script supposes you have made your document (calendar) on normal facing or non facing pages.

  • Error logs for ain/test_client ?

    Hi, I'm using transaction ain/test_client and trying to post a receipt for a delivery but when I send the message (successful in ain/test_client) I don't see any logs in the application log and nothing happens any change to get a log from it ? Regard

  • I am facing a Problem with reading images from database

    Hi everybody.. any help will be most appreciated, I am facing problem with reading images from database. I am pasting my code...                  string connect = "datasource = localhost; port = 3306; username = root; password = ;";