Help with a Custom JSP - Select Box (entry view definition).

I'm in no way an expert in HTML so please bear with me. We have quite a large list of Job Titles that we use on multiple forms and I wanted to use a custom jsp so I only have to update our title list once if we add/remove titles at our organization. I created a simple select box with all our titles and put them on the Vibe server under the custom jsp folder. The select box shows up on the entry form definition no problem... I just don't know how to make it show up on the entry view definition. The code is obviously pretty basic:
<html>
<select name ="Title">
<option value ="Title1">Title1</option>
<option value ="Title2">Title2</option>
<option value ="Title3">Title3</option>
<option value="Title4">Title4</option>
</select>
</html>
What do I need to do in order for it to show up on the entry view definition side of things? Could anyone with html and/or Vibe knowledge please chime in? I'd really appreciate it.

Try the following custom JSP, it works fine in my environment.
Construction is a s I said before: while in edit mode (add or modify) it appears as Select Box, otherwise gives the value only.
Regards, Darek
<%@ include file="/WEB-INF/jsp/definition_elements/init.jsp" %>
<c:choose>
<c:when test='${ssOperation == "add_folder_entry" || ssOperation=="modify_folder_entry"}'>
${property_caption}<br>
<select name="${property_name}">
<option value="opt1">title1 1</option>
<option value="opt2">title 2</option>
<option value="opt3">title 3</option>
<option value="opt4">title 4</option>
</select>
</c:when>
<c:otherwise>
${ssDefinitionEntry.customAttributes[property_name]}
</c:otherwise>
</c:choose>

Similar Messages

  • Help with date validation on input boxes.

    I need some help with date validation on input boxes.
    What I�m trying to create is a form where a user inputs dates and then the rest of the form calculates the other dates for them.
    i.e. � A user inputs 2 dates (A & B) and then a 3rd date which is 11 weeks before date B is calculated automatically.
    Is this possible and if so how do I do it ???
    Thanks

    Hi,
    to get third date try this:
    java.util.Date bDate = ...;
    Calendar yourCalendar = new GregorianCalendar();
    yourCalendar.setTime(bDate);
    yourCalendar.roll(Calendar.WEEK_OF_YEAR, -11);
    java.util.Date cDate = yourCalendar.getTime();Regards
    Ldinka

  • Need help with a customized interactive web application for  apparel

    Help!!!!
    Hi I am a web designer at beginners stage with web
    devlopment. I am seeking guidance on how to develop a customized
    interactive web application so that the end user can change color
    and patterns of apparel on vector images such as teamsports
    uniforms and tshirts. Once the design is customized to their liking
    they can save it with all of the spec information in a file to
    there desktop or to a database to send to the manufacturer.
    Also looking for a possible way to use a CMS so I can upload
    templates of the garment easily for the end user to customize
    online. Can this be done and if so how? This is an example the kind
    of application I am looking for:
    http://www.dynamicteamsports.com/elite/placeorder.jsp
    I am in desperate need of some brilliant developer to help
    with this.
    Thanks in advance for anyone who is willing to assist or give
    me guidance,
    Danka
    "Reap what you sew"

    some parts of that are doable using non-advanced skills, but
    will be difficult and unwieldly if there are more than a few
    colors/patterns.
    saving the image to the server is a bit more advanced and
    you're going to need some server-side scripting like php, perl, asp
    etc. in addition to some flash programming ability.

  • Help with Login Form (JSP DB Java Beans Session Tracking)

    Hi, I need some help with my login form.
    The design of my authetication system is as follows.
    1. Login.jsp sends login details to validation.jsp.
    2. Validation.jsp queries a DB against the parameters received.
    3. If the query result is good, I retrieve some information (login id, name, etc.) from the DB and store it into a Java Bean.
    4. The bean itself is referenced with the current session.
    5. Once all that's done, validation.jsp forwards to main.jsp.
    6. As a means to maintain state, I prefer to use url encoding instead of cookies for obvious reasons.I need some help from step 3 onwards please! Some code snippets will do as well!
    If you think this approach is not a good practice, pls let me know and advice on better practices!
    Thanks a lot!

    Alright,here is an example for you.
    Assume a case where you don't want to give access to any JSP View/HTML Page/Servlet/Backing Bean unless user logging system and let assume you are creating a View Object with the name.
    checkout an example (Assuming the filter is being applied to a pattern * which means when a resource is been accessed by webapplication using APP_URL the filter would be called)
    public doFilter(ServletRequest req,ServletResponse res,FilterChain chain){
         if(req instanceof HttpServletRequest){
                HttpServletRequest request = (HttpServletRequest) req;
                HttpSession session = request.getSession();
                String username = request.getParameter("username");
                String password = request.getParameter("password");
                String method = request.getMethod();
                String auth_type  = request.getAuthType();
                if(session.getAttribute("useInfoBean") != null)
                    request.getRequestDispatcher("/dashBoard").forward(req,res);
                else{
                        if(username != null && password != null && method.equaIsgnoreCase("POST") && (auth_type.equalsIgnoreCase("FORM_AUTH") ||  auth_type.equalsIgnoreCase("CLIENT_CERT_AUTH")) )
                             chain.doFilter(req,res);
                        else 
                          request.getRequestDispatcher("/Login.jsp").forward(req,res);
    }If carefully look at the code the autherization is given only if either user is already logged in or making an attempt to login in secured way.
    to know more insights about where these can used and how these can be used and how ?? the below links might help you.
    http://javaboutique.internet.com/tutorials/Servlet_Filters/
    http://e-docs.bea.com/wls/docs92/dvspisec/servlet.html
    http://livedocs.adobe.com/jrun/4/Programmers_Guide/filters3.htm
    http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html
    http://www.servlets.com/soapbox/filters.html
    http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
    and coming back to DAO Pattern hope the below link might help you.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
    http://java.sun.com/blueprints/patterns/DAO.html
    http://www.javapractices.com/Topic66.cjp
    http://www.ibm.com/developerworks/java/library/j-dao/
    http://www.javaworld.com/javaworld/jw-03-2002/jw-0301-dao.html
    On the whole(:D) it is always a good practice to get back to Core Java/J2EE Patterns.and know answers to the question Why are they used & How do i implement them and where do i use it ??
    http://www.fluffycat.com/java-design-patterns/
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html
    http://www.cmcrossroads.com/bradapp/javapats.html
    Hope that might help :)
    REGARDS,
    RaHuL

  • Frustrated and seeking help with a custom sort order...

    I created a family photo album and arranged all of the pictures in a specific order and sync'd them with my iPad, unfortunately the pictures do not stay in the custom sequence.
    I tried Batch renaming with a Custom Name and Index, but the renaming is applied to the pictures based on the date they were created and not by the way I have arranged them.
    Is there a solution to my problem?
    TIA

    I flagged fifty photos and from that selection I created an album. I went to the album and dragged the photos in to the order I wanted them to appear after selecting Manual. Each time I now choose the manual option it arranges the photos into the sequence I created.
    The problem I'm having is that when I synchronize my iPad with iTunes the photos revert back to their original sort order, which is the default date they were brought in to Aperture.
    As I said, I tried to give them new names and index numbers using a batch command AFTER I arranged them manually, which works, however the names are assigned to the photos sequentially starting with oldest photos and not to photos as I have arranged them.
    Honestly, it would be easier for me to create a slideshow using the timeline in FCP, but a video is not what I'm after.
    I hope I have answered your questions.
    TIA

  • Newbie: help with join in a select query

    Hi: I need some help with creating a select statement.
    I have two tables t1 (fields: id, time, cost, t2id) and t2 (fields: id, time, cost). t2id from t1 is the primary key in t2. I want a single select statement to list all time and cost from both t1 and t2. I think I need to use join but can't seem to figure it out even after going through some tutorials.
    Thanks in advance.
    Ray

    t1 has following records
    pkid, time, cost,product
    1,123456,34,801
    2,123457,20,802
    3,345678,40,801
    t2 has the following records
    id,productid,time,cost
    1,801,4356789,12
    2,801,4356790,1
    3,802,9845679,100
    4,801,9345614,12
    I want a query that will print following from t1 (time and cost for records that have product=801)
    123456,34
    345678,40
    followed by following from t2 (time and cost for records that have productid=801)
    4356789,12
    4356790,1
    9345614,12
    Is this possible?
    Thanks
    ray

  • Help with the open/save message box

    Hi everyone, I have a link to a PDF on my website and I need it to open in browser.  Right now it always comes up with the open/save message box.
    This is no good because I need to embed a direct page link (ie #page=9), and the open/save message box removes the page variable and opens to page one.
    It's strange because I have two PDF links on this particular page and while one works fine (and opens in browser) the other constantly prompts with open/ save.
    Suggestions?  I've already gone into the PDF preferences and set it to "Open PDF in Browser"... this does not help.
    Thanks,
    Nathan

    Well - Yes --- and No.  When I try to re-save a document or use the new Save As... implementation I am generally offered my Mac. But - If I create a New document and then use Cmd-S I am taken back to the iCloud Save window with the disclosure triangle closed. I am seeing this in TextEdit and Preview, but I have not checked all my document creator applications to see if the protocol is across the board.)
    (Note  - the "On My Mac" button is only available in the OPEN Dialog - not the SAVE Dialogs.)

  • Help with dropdown menu in JCombo box,Pleaseeeeeee

    Hi,
    I posted earlier but I`II try again. Someone must know how to do this. I have a JComboBox and I want the drop down menu to be a bit wider then the comboBox.
    I tried using this method
    public void setPreferredSize()
              Dimension d = jcbo.getPreferredSize(d);
              jcbo.setPreferredSize(new Dimension(20, d.height));
              jcbo.setPopupWidth(d.width);
    but I recieved a couldn`t resolve symbol error for the last line.
    I imported these into the program]
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    Is there something else I should of imported as well to make this work, or is it another problem all together.Any help would be greatly appreciated.

    Hi , What I want to do is have the dropmenu a bit wider then the comboBox. Here is my code.Please excuse any odd ball mistakes, At this point I have been trying anything.This is an exercise that I have to do fo a java assignment, Hence the weird GUI. In the example pic they gave me.It shows the dropmenu a bit wider than the comboBox, I am sure they through this in to screw with my brain, I have put comment tags Around the stuff I tried to use. Any help with this would be greatly appreciated.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    //import javax.swing.plaf.basic.*;
    public class Exercise9_3 extends JFrame implements ActionListener
         private JTextField nameField;
         private JTextArea nameArea;
         private JButton storeButton;
         private JComboBox jcbo;
         private JPopupMenu popup;
         protected int popupWidth;
         String newline = "\n";
         public Exercise9_3()
              createComponets();
              addComponets();
              setTitle("Exercise9_3");
         private void createComponets ()
              nameField = new JTextField(19);
              nameArea = new JTextArea(10, 15);
              storeButton = new JButton("Store");
              storeButton.addActionListener(this);
              jcbo = new JComboBox();
              jcbo.addActionListener(this);
         /*8public void setPreferredSize()
              Dimension d = jcbo.getPreferredSize(d);
              //jcbo.setPreferredSize(new Dimension(20, d.height));
              //jcbo.setPopupWidth(d.width);
         private void addComponets()
              JPanel p1 = new JPanel();
              p1.setLayout (new FlowLayout());
              p1.add(nameField);
              p1.add(nameArea);
              p1.add(jcbo);
              JPanel p2 = new JPanel();
              p2.setLayout (new FlowLayout());
              p2.add (storeButton);
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(p1, BorderLayout.CENTER);
              getContentPane().add(p2, BorderLayout.SOUTH);
         public void actionPerformed(ActionEvent e)
              if(e.getSource() == storeButton)
                   String s = nameField.getText();
                   jcbo.addItem(s);
                   jcbo.setSelectedItem(s);
                   String textArea = s ;
                   String text = nameField.getText();
                   nameArea.append(text + newline);
         nameField.selectAll();
         nameField.setText("");
         nameField.requestFocus();
              if (e.getSource() == jcbo)
    /**retrieve the input as a string*/
    String selectedName = (String)jcbo.getSelectedItem();
    /**set the name that was selected from the ComboBox and add it to textfield*/
    nameField.setText(selectedName);
         public static void main(String [] args)
              Exercise9_3 frame = new Exercise9_3();
              frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
              frame.pack();
              frame.setVisible(true);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int screenWidth = screenSize.width;
              int screenHeight = screenSize.height;
              // Get dimension of the frame
              Dimension frameSize = frame.getSize();
              int x = (screenWidth - frameSize.width)/2;
              int y = (screenHeight- frameSize.height)/2;
         frame.setLocation(x,y);

  • Can anyone help with a custom trigger?

    Hi - I know this is a tough one and appreciate anyone's help!
    I'm trying to create a custom trigger that confirms 2 fields belong to the same record. If they do, proceed with insert transaction.
    I have gone through the tutorial (from the old Interakt Discussion Board tutorial at http://www.interaktonline.com/Documentation/MXKollection/075000_tutorialdiscussionboard.h tm) on how to create a custom trigger that checks to see whether a duplicate message and subject exist in the table and if so, stop the insert. I have this working fine, using my own table and fields.
    Can anyone help me to change the script here to confirm that both fields belong to the same record? Here is what I have right now:
    $query = "SELECT * FROM dan_camptrans_login_familyid_confirmid WHERE family_id = ".KT_escapeForSql($tNG->getColumnValue("family_id"),$tNG->getColumnType("family_id"))." AND confirm_id = ".KT_escapeForSql($tNG->getColumnValue("familyconfirm_id"),$tNG->getColumnType("familycon firm_id"));
    $result = $tNG->connection->Execute($query);
    if(!$result) {
    $error = new tNG_error("Could not access database!",array(),array());
    return $error;
    } else {
    if($numberOfRecords = $result->recordCount()) {
    $uniqueFailed = new tNG_error("There is already a message with the same subject and content!",array(),array());
    return $uniqueFailed;
    } else {
    return NULL;
    Any help would be SUPER appreciated!
    Dan

    Thank you very much Shane for responding.
    Right now, if I fill out the form and enter any numbers in the family_id and familyconfirm_id fields that are currently NOT in the dan_camptrans_login_familyid_confirmid table, the form submits fine. If however, both fields already exist within the same record, the error is returned.
    I guess what I am looking for is the opposite. When the form is submitted, the table dan_camptrans_login_familyid_confirmid is checked. If both field entries are not within the same record, return the error.
    Basically, I am sending out a user ID and confirmation number via mail to users. When they register they need to enter in both of these numbers and only if they match the records will the registration proceed.
    The main recordset/form that this custom trigger is attached to is one for my user registration table. This custom trigger and associated table is only to confirm the user registering has the correct information to register.
    Thanks again - I hope that I am explaining this clearly.
    Dan

  • Please Help with my first jsp

    Hi, this may seem basic to you but i've frying my head with simple jsp. Any books i looked at only show code segments!
    All i want to do is create an html entry page with form fields for username, password, email address, send the information to a jsp page that validates the form entries and then stores the info in database, and be able to display the info stored in the db also.
    Any help or pointers would be appreciated, or links to good tutorials!
    Thanks in advance.....

    with this i am sending my own code :
    its a html page :
    <Script LANGUAGE="JavaScript" ></Script>
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <html>
    <head>
    <title>Login</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Microsoft Theme" content="expeditn 011">
    </head>
    <body background="exptextb.jpg" bgcolor="#FFFFFF" text="#000000" link="#993300" vlink="#666600" alink="#CC3300">
    <!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
    <form name="frmlogin" method="post">
    <p> 
    </p>
    <p> 
    </p>
    <p> 
    </p>
    <p> 
    </p>
    <p>                                                       
    User Name : 
    <input type="text" name="txtname">
    <br>
    <br>
    Password   : 
    <input type="password" name="txtpassword">
    </p>
    <p>                                                                    
    <input type="submit" name="submit" value="Submit" onclick="javascript: return loadmy('sub')">
    </p>
    </form>
    <script>
    var i=0;
    function loadmy(val)
              if(val=="new")
                   document.frmlogin.action='form.jsp';          
              }else
                   if(onCheck())
                        document.frmlogin.action='login.jsp';
                   }else
                        return false;
    function onCheck()
         if(document.frmlogin.txtname.value=="")
              alert("Please enter user name ..");
              document.frmlogin.txtname.select();
              document.frmlogin.txtname.focus();
              return false;
         if( document.frmlogin.txtpassword.value=="")
              alert("Please enter password ..");
              document.frmlogin.txtpassword.select();
              document.frmlogin.txtpassword.focus();
              return false;
         return true;
    </script>
    <p> </p><!--mstheme--></font></body>
    </html>
    IN this page i am taking user name and password. ok?
    now another JSP file with database connection is here: I think you have enough idea for database connection. So i'll ommit that.
    <html>
    <head>
    <title>Login Result Page</title>
    <meta name="Microsoft Theme" content="expeditn 011">
    </head>
    <%@ page import="java.lang.*,java.sql.*"%>
    <%@ page import ="Database.*" %>
    <body background="exptextb.jpg" bgcolor="#FFFFFF" text="#000000" link="#993300" vlink="#666600" alink="#CC3300">
    <!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
    <%
         String uname = request.getParameter("txtname");
    String password = request.getParameter("txtpassword");
         String pquery="Select * from login where uname='"+uname+"'";
         String query="Select * from login where uname='"+uname+"'and password='"+password+"'";
         ClsDataBase cdb = new ClsDataBase();
         Connection con = cdb.getConnection();
         Statement stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery(pquery);
         if(rs!=null)
              if(rs.next())
                   ResultSet r=stmt.executeQuery(query);
                   if(r!=null)
                        if(r.next())
                        session.setAttribute("uname",uname);
                        session.setAttribute("Lflag","true");
    %>
    <p><font size=4 color="green">Wel Come <%= uname %>!!!</font></p>
    <p>
    <form action="listofuser.jsp" method="post" name="f1">
    </form>
    <%                    }
                        else
    %>
    <p> <font size=4 color="red">Wrong Password.</font> </p>
    <p><font size="4" color="green">Go back to login screen</font></p>
    <%
              else
    %>
         <font size=4 color="red">Invalid user....</font>
         <p><font size="4" color="green">Go back to login screen</font></p>     
    <%
         stmt.close();
         cdb.close();
    // conn.close();
    %>
    <!--mstheme--></font>
    </body>
    </html>
    hope this will help you. bye....

  • Please help with a custom javascript

    Hello,
    I am a military instructor, and I am trying to create a grade report card with Acrobat X Pro.  So far I have made good progress with the help of the forum community (just searching through the pages and pages of posts), but I am stuck on this issue.
    Like I stated,  I am creating a report card (of sorts) where our other instructor staff can input student test grades into the fields as they [students] progress through training.  The form is showing the particular test with an input field for the grade.  Lastly, the student's overal GPA is displayed in percent format.
    My conundrum: I am trying to code a field that all a user [instructor] will have to input is a numerical value with or without a decmil, and the field will display it as a percentage. 
    If I use acrobats default percentage, the number entered into the field will be multiplied by 100 (i.e. I enter 90 and acrobat displays 9000% in the field).
    I would just like to be able to type in 90, and 90% be displayed; or type in 88.5, and 88.5% be displayed.
    With the scripts I have entered, no decmils can be displayed, and the overal score is multiplying the average by 100, thus if I entered the number 90 in the first exam, the average calculates to 9000%.
    I am assuming the custom format script and custom keystroke script made the average calculation script not work correctly.
    Thanks in advance.  Ryan
    I have entered the following javascripts:
    1.  Document Level Script
    // Document-level function
    function DigOnlyKS() {
        // Get all that is currently in the field
        var val = AFMergeChange(event);
        // Reject entry if anything but digits
        event.rc = AFExactMatch(/\d*/, val);
    2.  Custom Format Script
    // Custom Format script for text field
    if (event.value) event.value += "%";
    3.  Custom Keystroke Script
    // Custom Keystroke script
    DigOnlyKS();
    4.  Custom Calculation Script for an Overal Grade Average
    event.value = myAverageFunction(["pk1","pk2","pk3","pk4","pk5","pk6","pk7","pk8","pk9","pk10","pk11","p k12","pk13","pk14","pk15","pk16","pk17","pk18","pk19","pk20","pk21","pk22","pk23","pk24"," pk25"]);
    function myAverageFunction(aNames) {
        // n = number of fields that have a numerical value
        // sum = some of values for the named fields
        var n = 0;
        var sum = 0;
        var v;
        // loop through array of name strings
        for (i = 0; i < aNames.length; i++) {
          v = this.getField(aNames[i]).valueAsString;
          // check for not a null string and not a space  and not is Not a Number
          if (v != "" & v != " " & isNaN(v) == false) {
             n++; // increment count
             sum += Number(v); // add to sum
        return (n != 0) ? (sum / n): "";

    Try,
    I'm sorry for being so ignorant with javascript.
    I placed that code in the custom keystroke like you suggested, but it did not work.    Is there a specific way I need to input that code in the custom keystroke area?
    I then tried to put it in the document level code and replaced (/\d*/, val) with your code... that really screwed thing up.
    So now I am stuck where I was before.
    I will try and show you what I am trying to accomplish:
    Right now, this is what is happening
    Exam 1
    Exam 2
    Exam 3
    Final Average
    95.5%
    95.3%
    94.3%
    95.033333%
    What I would like to do is to limit each field to 2 decmil places.
    Each "exam field" has the following:
    The "final average" field has the following:
    and this is in the custom calculations area of the "final average" field:
    Finally, I have this in the Documet JavaScripts area:
    I have a feeling this is an easy fix, but I just cannot figure it out.
    Thanks,
    Ryan

  • Need help with crazy custom calculations code in Acrobat XI pro

    Im trying to calculate some text feilds together and just cant figure it out.  I have two text feild boxes that I would input certain numbers to calculate in, Textfeild D5 and D6,  once the user supplies the numbers in the D5 and D6   I need a text feild (D9) to calculate and produce a number thats used in another calculation. Any help would be greatly appriciated. Im good at HTML and CSS but only begining with javascript. Im using acrobat XI pro and I put this code in the custom javascript area within the text feld "D9" properties.
    var Dsix = +getField("D6").value;
    var Dfive = +getFeild("D5").value;
    var B2 = 0.37;
    var B3 = 0.45;
    var B4 = 0.53;
    if (Dsix = 15){
    D9.value = B2*Dfive;
    if (Dsix = 30){
    D9.value = B3*Dfive;
    if (Dsix = 45){
    D9.value = B4*Dfive;

    Well thats makes since but unfortunitly it didnt work. The green text feild D9 is where im placing code at. they will be hiiden feilds. the red outlined text feilds are all input feilds. seconds is D6 and nozzels is D5.

  • Urgent ! Problem when test Application Moudule with a customer JSP FIle!!

    I got these two errors:
    oracle.jbo.common.ampool.ApplicationPoolException: JBO-30003: The application pool, ETicket_UserSystem_UserSystemAppModule, failed to checkout an application module instance.
    JBO-25002: Definition of ETicket_UserSystem_UserSystemAppModule of type......
    Here is my JSP file code:
    <%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1" %>
    <HTML>
    <HEAD>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <title>Business Components JSP Application</title>
    </HEAD>
    <%oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session, "UserSystemJSP_ETicket_UserSystem_UserSystemAppModule");
    %>
    <BODY>
    <jsp:useBean id="viewer" class="oracle.jbo.html.databeans.ViewCurrentRecord" scope="request">
    <%
    viewer.initialize(application, session, request, response, out, "UserSystemJSP_ETicket_UserSystem_UserSystemAppModule.UserRecordView");
    RowSet rs = viewer.getRowSet ();
    Row r = null;
    rs.setCurrentRow (rs.first ());
    r = rs.getCurrentRow ();
    while (rs.hasNext ()) {
    out.println (r.getAttribute ("loginname"));
    r = rs.next ();
    viewer.setReleaseApplicationResources(true);
    %>
    </jsp:useBean>
    </BODY>
    </HTML>
    Here is the properties file UserSystemJSP_ETicket_UserSystem_UserSystemAppModule.properties
    ApplicationModuleName=ETicket.UserSystem.UserSystemAppModule
    #ConfigName=ETicket.UserSystem.UserSystemAppModule.UserSystemAppModuleEJB
    #in 8i mode this is an IIOP connection name to travel user.
    #in LOCAL mode this is a JDBC COnnection Name to travel user.
    ConnectionName=etdbcon
    # used only if password not provided by connection definition in the config
    Password=etpg1
    #CSS File Name
    CSSURL=/webapp/cabo/images/cabo_styles.css
    #Root Image Directory
    ImageBase=/webapp/jsimages
    #only used in 8i mode
    JndiPath=test/etpg1/ejb/ETicket.UserSystem.UserSystemAppModule
    #Defines if application is stateless or not
    IsStateLessRuntime=false
    Here is the bc4j.xcfg file:
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="UserSystemAppModuleLocal">
    <ApplicationName>ETicket.UserSystem.UserSystemAppModule</ApplicationName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCName>etdbcon</JDBCName>
    <jbo.project>UserSystem</jbo.project>
    </AppModuleConfig>
    <AppModuleConfig name="UserSystemAppModuleEJB">
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCName>etdbcon</JDBCName>
    <IIOPName>iiopcon</IIOPName>
    <jbo.project>UserSystem</jbo.project>
    <ApplicationName>ETicket.UserSystem.UserSystemAppModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    Any error in above files or other place??
    I only run it in JDeveloper, no deploy and test in Application Server.

    Akira,
    Here's what I would recommend:
    1. Generate a BC4J JSP web application based on one of your view objects. This will give you the 'factory' code that we use to connect to the app module and iterate through a rowset. If this JSP works, you can compare the code generated by our wizards with the one you have included.
    2. Your properties file looks like a hybrid of 3.1 and 3.2. In 3.2, the properties file contains just an entry for the ConfigName, and the password. The JSP then looks at the BC4J.xcfg at runtime for all the other connection information.
    The error you are reporting sounds connection related, so I would recommend cleaning up your properties file to be more 3.2-like. If this is an app you have upgraded from 3.1, then see the online help topic 'About Upgrading a JSP Project in 3.2'. This topic can be found under the Creating JSP Pages folder, and then under About JSP Applications.
    null

  • Help with saving custom stamps to SOAP repository.

    In my attempt to create a custom SOAP based comment repository i've found that i can save and retrieve all lightweight annotations perfectly except for any custom stamps that I've created (default stamps work great).  When i retreive the annotations from a different computer, it just displays a black box with a black x in the middle instead of actually displaying the stamp image.  My guess here is that I need to read the custom stamp image to a stream and then save it to the server along with the annotation data.  The problem is that I can't seem to get acrobat JS to detect and get the image (this.icon.length only counts default stamps).  I do have an AP property for the stamp which is the named appearance according to the documentation.  I just need some help now as to how i can retreive the stamp image data from the named appearance.
    Any help would be greatly appreciated.
    Thanks!

    Can anyone help me out with this?  I have a requirement to enable saving custom stamps to a central server but i can't seem to be able to retrieve the image data for storage.  Any leads would be greatly appreciated.
    Thanks!

  • Help with JOptionPane - custom InputDialog

    I need a little help here because I am trying to build a custom JOptionPane that prompts the user to choose 3 values from 3 drop-down lists and then returns those three values in a string. Specifically, this dialog is a very simple date chooser (because I don't really want to use JDateChooser right now). How do I overwrite the showInputDialog() method or the paintComponent() method to make it display three drop-downs?

    Here's an example with multiple text fields. You should be able to modify it easily to use combo boxes:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class OptionPaneMultiple extends JFrame
         public OptionPaneMultiple()
              JTextField firstName = new JTextField(5);
              JTextField lastName = new JTextField(5);
              Object[] msg = {"First Name:", firstName, "Last Name:", lastName};
              Object[] options = {"Ok", "Cancel", "Whatever"};
              JOptionPane op = new JOptionPane(
                   msg,
                   JOptionPane.PLAIN_MESSAGE,
                   JOptionPane.OK_CANCEL_OPTION,
                   null,
                   options);
              JDialog dialog = op.createDialog(this, "Enter Name...");
              dialog.show();
              int result = JOptionPane.OK_OPTION;
              try {result = ((Integer)op.getValue()).intValue();}
              catch(Exception uninitializedValue){}
              if(result == JOptionPane.OK_OPTION)
                   System.out.println(firstName.getText() + " : " + lastName.getText());
              else
                   System.out.println("Canceled");
         public static void main(String[] args)
              JFrame frame = new OptionPaneMultiple();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible(true);
    }

Maybe you are looking for

  • Useful SD standard report

    hi, anyone can tell me the sap standard report name in SD to see sales order status, delivery status and billing status. can anyone provide these 3 separate report? now i know va05 is for sales order but do not sure others. thanks

  • Bitwise operators--please explain ?

    I've been reading about bitwise operators, and I get the concept about what they do. My question is why would you ever need an operator like this? When do you need to manipulate memory like this? I can't concieve of a use for it, but obviously there

  • Apply multiple condition combination

    Hi I have a table in database and a mapping file with 5 condition columns and 1 output column I need to check if the record in database meet any of the specified condition mentioned in the 5 columns of the mapping table, then the value in output colu

  • Does Apple FM Receiver work with the iPhone?

    When I plug in the FM receiver, I get a message saying it's not supported. Thanks.

  • The absence of oraclemaps.js file

    I have to enter the following code, while am trying to setup the Oracle Maps Workbook <script language="JacaScript" src="/mapviewer/fsmc/jslib/oraclemaps.js"></script> but the oraclemaps.js file does not exist in the dir. What can i do;