GP: Input Parameter dependent on User

Hi Experts,
is it possible to set an Input Parameter (Type boolean) dependent on the User (or Group)?
I want two types of Usergroupes, if the user is member of the first group it should return TRUE, and the second group should return FALSE.
Dont know how to implement it with Guided Procedures.
Thanks for your help!

Hi Abdul,
thanks for your reply, i try it with a java class, as you see here
Get Group Members with GP API
i stumbled over a few problems, pherhaps you can have a look

Similar Messages

  • How can I pass dynamic value as a user input parameter in discoverer?

    Hi,
    I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
    The sample code as:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
    order by pca.expiration_date asc
    Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
    Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
    How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
    Please help.

    Hi,
    All you need to do is to create the condition in the discoverer instead of in the query.
    Create a custom folder containing the following sq (note that i removed the condition)l:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    Then create a discoverer report using this folder using all fields.
    Create a new calculation as (use this exact syntax):
    Sysdate + :No_of_Days_in_the_Future
    Create a new condition:
    pca.expiration_date <= <your calculation>
    To complete it add a sort as you did in the SQL.
    That's it.
    Tamir

  • Show report in different currency depending on user parameter

    hi all,
    i'm trying to show my report in different currency, depending on users given parameter.
    i hold my account balance in USD based. User should select one parameter, in which currency they want to see their account balance. (e.g. EURO, GBP ...) and depending on their selection, i want to convert USD based info into chosen currency, by fetching field from currency table and making some calculation.
    also i want to include in report currency($, £ ...) accordingly ().
    how can i achieve this, has somebody any suggestion to me?
    thanks in advance.
    bogi.

    hi,
    i think i need to explain my problem more detailed. anyone who has suggestion, please help me.
    i have 3 tables account, times and currency.
    - times table has time_key, date, day_of_week fields.
    - account table has - account_balance and time_key_FK fields.
    - currency table has currency_type, amount, time_key_FK fields.
    1. i have function decode(:Currency,'USD',account_balance,'EURO',--here i want to replace my calculation CALC1---)
    CALC1- this calculation need to some calculation like this: account_balance * (fetched field from this sql)(select amount from currency, account where currency.currency_type='EURO' and account.time_key_FK=currency.time_key_FK)
    i tried to do this, but discoverer plus doesn't let me make condition and calc. i'm very confused.
    2. after i achieve this query, somehow i want to display on worksheet on which currency is it based. can i get parameter value, and show this value as in column heading?
    tnx!!!

  • How to control field status depending on input parameter to screen?

    Hi,
    I'm sure I met the solution somewhere, but can't find it. Here is the situation:
    I have Screen sequence - my scr.100 calls 110 (detailed screen). I would like to achieve creation or modification of a detailed item depending on an input parameter (ok_code), which I know how, but whould also like to set some fields for input/output or for output only depending on the same parameter.
    Could anyone help me with piece of code or describing what should I do to achieve this (in an example of 1 field)?
    Possible variant is to create another screen - for modify mode, which is not so elegant for me, and yes, I know how to do that.
    Many thanks in advance.
    Ivaylo Mutafchiev

    Try this.....
    LOOP at Screen.
    if screen-name = 'YOURFIELD'.
    screen-input = '0'.
    modify screen.
    endif.
    endloop.
    Regards,
    Rich Heilman

  • How to change the image dynamically depend upon the input parameter

    Hi All
    I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
    How to change the Logo dynamically depend upon the input passed by the user.
    If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
    Is it possible to change the logo according to the input without keeping this in Template.
    I have seen this link but its not working fine
    http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
    Regards
    Srikkanth.M

    Hi,
    I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
    Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
    Regards
    Srikkanth

  • FW: (forte-users) Copy Input parameter

    Peter,
    That is the behaviour that I have experienced also, so I do not have such
    (anchored service object) attributes in my classes anymore but instead add
    that service object attribute as an input parameter to all methods in that
    class that require access via that service object attribute.
    Alternatively, if access to that anchored service object is only required
    in the partition that it was created then overriding the Clone method of
    the class to return a NIL value in the service object attribute should
    work for you.
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 05:33
    To: Forte User Group
    Subject: (forte-users) Copy Input parameter
    Hi folks,
    I have this problem where a "copy input" seems to copy
    the service object too.
    The case is that I have a service object, say
    batchmgrso, for batch processing and an object, say
    batchproc, as the process. The batchproc has an
    attribute for referencing the batchmgrso as it will
    create some other process and submit it to the
    batchmgrso.
    The problem is whenever a batchproc fails and the
    batchmgrso tries to re-submit the object from the
    queue, and I use a copy input as the mechanism for
    passing in the batchproc to the service object, I can
    find that not only does the batchproc get cloned, but
    also the batchmgrso. It caused a lot of problem and
    bombed the method.
    When I changes the mechanism to just input in the
    method signature, everything works fine.
    So is it a forte feature/bug that a copy input would
    clone something so "deeply" that even a SO or archored
    object would get clone too. Is there any way to avoid
    it?
    Regards,
    Peter Sham.
    =====
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]

    Peter,
    That is the behaviour that I have experienced also, so I do not have such
    (anchored service object) attributes in my classes anymore but instead add
    that service object attribute as an input parameter to all methods in that
    class that require access via that service object attribute.
    Alternatively, if access to that anchored service object is only required
    in the partition that it was created then overriding the Clone method of
    the class to return a NIL value in the service object attribute should
    work for you.
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 05:33
    To: Forte User Group
    Subject: (forte-users) Copy Input parameter
    Hi folks,
    I have this problem where a "copy input" seems to copy
    the service object too.
    The case is that I have a service object, say
    batchmgrso, for batch processing and an object, say
    batchproc, as the process. The batchproc has an
    attribute for referencing the batchmgrso as it will
    create some other process and submit it to the
    batchmgrso.
    The problem is whenever a batchproc fails and the
    batchmgrso tries to re-submit the object from the
    queue, and I use a copy input as the mechanism for
    passing in the batchproc to the service object, I can
    find that not only does the batchproc get cloned, but
    also the batchmgrso. It caused a lot of problem and
    bombed the method.
    When I changes the mechanism to just input in the
    method signature, everything works fine.
    So is it a forte feature/bug that a copy input would
    clone something so "deeply" that even a SO or archored
    object would get clone too. Is there any way to avoid
    it?
    Regards,
    Peter Sham.
    =====
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]

  • RE: (forte-users) Copy Input parameter

    Peter,
    Just a quick response before I prepare a code sample for you.
    Unfortunately, we pay for our sins as a true cloning operation has to take
    into account the (potentially) recursive nature of an object graph and
    effectively has to do the equivalent of serialising an object graph (as in
    parameter passing to remote methods) without going into an infinite loop
    when the object graph recurses back into itself.
    The Forte runtime does this quite nicely but if you wish to change its
    default behaviour, it's a bit of hard work but it's achievable.
    So you need to decide. Is it worth it?
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 07:20
    To: EMMI, Mario
    Cc: '[email protected]'
    Subject: RE: (forte-users) Copy Input parameter
    Hi,
    Interesting solution!
    Just to clarify further. How exactly would you
    over-write the clone method. New the object and then
    clone all the attributes of the existing object to the
    new object, excluding whatever attribute you think is
    appropriate?
    Regards,
    Peter Sham.
    --- "EMMI, Mario" <[email protected]> wrote:
    Peter,
    That is the behaviour that I have experienced also,
    so I do not have such
    (anchored service object) attributes in my classes
    anymore but instead add
    that service object attribute as an input parameter
    to all methods in that
    class that require access via that service object
    attribute.
    Alternatively, if access to that anchored service
    object is only required in
    the partition that it was created then overriding
    the Clone method of the
    class to return a NIL value in the service object
    attribute should work for
    you.
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 05:33
    To: Forte User Group
    Subject: (forte-users) Copy Input parameter
    Hi folks,
    I have this problem where a "copy input" seems tocopy
    the service object too.
    The case is that I have a service object, say
    batchmgrso, for batch processing and an object,say
    batchproc, as the process. The batchproc has an
    attribute for referencing the batchmgrso as itwill
    create some other process and submit it to the
    batchmgrso.
    The problem is whenever a batchproc fails and the
    batchmgrso tries to re-submit the object from the
    queue, and I use a copy input as the mechanism for
    passing in the batchproc to the service object, Ican
    find that not only does the batchproc get cloned,but
    also the batchmgrso. It caused a lot of problemand
    bombed the method.
    When I changes the mechanism to just input in the
    method signature, everything works fine.
    So is it a forte feature/bug that a copy inputwould
    clone something so "deeply" that even a SO orarchored
    object would get clone too. Is there any way toavoid
    it?
    Regards,
    Peter Sham.
    =====
    For the archives, go to:
    http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. Tounsubscribe, send in a new
    email the word: 'Unsubscribe' to:
    [email protected]
    =====
    Do You Yahoo!?
    Bid and sell for free at http://auctions.yahoo.com

    Mario,
    Well. There're 2 ways that I can do it. Avoid copy
    input as much as possible ( in fact, I hate copy input
    ) or code my own clone method.
    Coding my own clone method should be a better
    solution. So if you have time, please please descibe
    it.
    Thanks for all the troubles. Regards,
    Peter Sham.
    --- "EMMI, Mario" <[email protected]> wrote:
    Peter,
    Just a quick response before I prepare a code sample
    for you.
    Unfortunately, we pay for our sins as a true cloning
    operation has to take
    into account the (potentially) recursive nature of
    an object graph and
    effectively has to do the equivalent of serialising
    an object graph (as in
    parameter passing to remote methods) without going
    into an infinite loop
    when the object graph recurses back into itself.
    The Forte runtime does this quite nicely but if you
    wish to change its
    default behaviour, it's a bit of hard work but it's
    achievable.
    So you need to decide. Is it worth it?
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 07:20
    To: EMMI, Mario
    Cc: '[email protected]'
    Subject: RE: (forte-users) Copy Input parameter
    Hi,
    Interesting solution!
    Just to clarify further. How exactly would you
    over-write the clone method. New the object andthen
    clone all the attributes of the existing object tothe
    new object, excluding whatever attribute you thinkis
    appropriate?
    Regards,
    Peter Sham.
    --- "EMMI, Mario" <[email protected]> wrote:
    Peter,
    That is the behaviour that I have experienced
    also,
    so I do not have such
    (anchored service object) attributes in myclasses
    anymore but instead add
    that service object attribute as an inputparameter
    to all methods in that
    class that require access via that serviceobject
    attribute.
    Alternatively, if access to that anchoredservice
    object is only required in
    the partition that it was created thenoverriding
    the Clone method of the
    class to return a NIL value in the serviceobject
    attribute should work for
    you.
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 05:33
    To: Forte User Group
    Subject: (forte-users) Copy Input parameter
    Hi folks,
    I have this problem where a "copy input" seems
    to
    copy
    the service object too.
    The case is that I have a service object, say
    batchmgrso, for batch processing and an
    object,
    say
    batchproc, as the process. The batchproc has
    an
    attribute for referencing the batchmgrso as itwill
    create some other process and submit it to the
    batchmgrso.
    The problem is whenever a batchproc fails and
    the
    batchmgrso tries to re-submit the object fromthe
    queue, and I use a copy input as the mechanismfor
    passing in the batchproc to the serviceobject, I
    can
    find that not only does the batchproc get
    cloned,
    but
    also the batchmgrso. It caused a lot of
    problem
    and
    bombed the method.
    When I changes the mechanism to just input in
    the
    method signature, everything works fine.
    So is it a forte feature/bug that a copy inputwould
    clone something so "deeply" that even a SO orarchored
    object would get clone too. Is there any way
    to
    avoid
    it?
    Regards,
    Peter Sham.
    =====
    For the archives, go to:
    http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. Tounsubscribe, send in a new
    email the word: 'Unsubscribe' to:
    [email protected]
    =====
    =====

  • 2 columns dependent on user parameter, others are not - complicated

    Hi
    My select statement (for reporting purposes) contains 8-9 columns from a number of tables.
    My problem is that 2 out of these columns will depend on the following:
    a. user entered parameter
    b. more complex joins needed for just this column - on difefrent tables than used by most of the columns
    ex: of above (excluding other columns that do not depend of user parameter):
    select sum(col1), sum(col2)
    from tab1, tab2, tab3
    where tab1.col1 = tab2.col1
    and tab1.col2 = tab3.col2
    and tab1.col3 = (select col1 from tab4 where tmstmp = (select max(tmstmp) from tab4)) and tab1.col5 = (select col1 from tab6 where col1 = <userparameter>)
    How can I combine the above with my main sql statement that looks like
    select...
    from tab10, tab11,tab12,tab13,tab14........
    where ...........
    order by
    Any ways to resolve the above problem without affecting performance too much ... greatly appreciated.
    Thx!

    that looks like a dba's nightmare. I wouldn't want that running on my server.
    Perhaps you can simplify it using functions.

  • Two resistances value depend on one input parameter(like parameters in Pspice)

    I would like to have resistances in hierarchical block, which's value has to be changed without entering into hierarchical schematics. Or even two/more resistors who's values will depends on single input parameter(like PARAMETERS option in Orcad/Pspice).

    Hello,
    Something very simple which you can use to change capacitance, resistance, and inductance is have a voltage(or current) controlled resistor/inductor/capacitor. Passing a voltage thourgh the blocks will change these variable loads as you wish (you can set it anything like 12.5kohms per Volt for example). You can find these components under Basic-Virtual in the Basic Group. Hope this helps.
    Kind Regards,
    Miguel V
    National Instruments

  • Showing applets depending upon user input in one web page

    hi, I have three applets. I want to create a webpage, put three buttons (or other interactions) on it. If button one is clicked, applet one is shown. If button two is clicked, applet two is shown. I want this to happen in one web page only and one applet at a time depending on user input. Is there a way to do it? Do I need to use javascript? I am new to javascript ,but if you can point me to relevant javascript topics, i am willing to learn it. Thanks.

    There are a couple of ways I can think of off the bat...
    1) Create an IFrame that the Applet will be displayed in. The button you press submits a form whose target is the IFrame and whose action is a page with the correct Applet.
    2) Actually load all 3 Applets on the page and hide them all in a invisible divs. The button calls a javascript function that unhides a specific div (and hides all the others to be sure only one is displayed at a time).
    3) Uber-javascript AJAX like control that when the button is pushed makes a request to a page that returns the applet tag which the javascript control then inserts into the page at the proper location.
    I would toss up between 1 & 2.
    For code, search Google for important key words (like "form target iframe", or "javascript make divs invisible").

  • Passing input parameter to User Defined Procedures in ODI

    Hi
    I have to develop a procedure with an update query as follows
    Update Rec_Count set status as 'Y' where TableName = 'Name of the table'
    Here the 'name of the table' should be sent as input parameter while executing the package and this has 9 values.
    Kindly help me resolve this issue.
    Thanks

    Hi,
    Create a variable
    eg :- VarName
    and your query should be
    Update Rec_Count set status as 'Y' where TableName = '#VarName'
    Steps in package:
    step 1 :-
    refresh the variable ,
    or assign the variable while executing the package.
    Step 2
    Your procedure
    This will take the variable value dynamically while executing
    Regards,
    Rathish
    Edited by: Rathish on Aug 18, 2009 3:38 PM

  • So many Input parameter in stored procedure..how to handle it ?

    Hello,
    I have one stored procedure.in that,there is around *600 input parameter*.now I am writing one by one input parameter and this is looking very time consuming for me.is there any other method to solve it.can we use Ref cursor or any thing else...??if yes,then please explain me with one example....I have no so much idea about ref cursor.
    Thanks

    It would be pretty stupid, in any language, to define a method/procedure/function that has a 600 parameter signature.
    There are a number of ways to address this - correctly. And these have already been suggested:
    - define proper data structures for these parameters
    - use arrays
    As for how to address this in PL/SQL, depends entirely on how the call interface from the client looks like and is capable of.
    For example, if this is from a web page and the call is made via mod_plsql, the flexible 2 parameter call interface should be used. The procedure will have 2 parameters. The caller will pass name-values. The 1st array will contain the names (e.g. 600 names). The 2nd array will contain the values (e.g. 600 values).
    If the caller is a Java for example, then advance user define/custom SQL types can be defined in Oracle, used and populated in Java, and then pass to PL/SQL.
    Let's say the caller is pretty dumb and does not support the object features in the OCI (OCI = the Oracle client driver call interface used by the client).
    In that case you do not want a 600 parameter procedure.. but you still need to get the data into that Oracle server session in order to execute PL/SQL code in that session to crunch that data. A flexible and scalable solution would be to define a GTT - a global temp table (done once off up front in that schema). This allows the client to insert rows in that temp table that can be seen by that session's PL/SQL code only. For performance, the client can create a standard client array for the 600 parameters and call the SQL insert using array binding.
    This results in a single insert call to Oracle. Accompanied with 600 values. Oracle executes that insert 600 times. You know have 600 rows in the GTT and the next client call to Oracle instructs the PL/SQL procedure to process the contents of the GTT.

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

  • How to disabled the input parameter dialog box in crystal reports 9

    Post Author: Murtaza
    CA Forum: General
    Hi friends,I have got stuck with a weird problem.  In my
    crystal report, I have set up some input parameters.  I am setting
    values for these parameters somewhere inside code.  But I don't
    want to show the default input parameter dialog box. Under any case,
    user should not see the ugly parameter dialog box that crystal
    presents.   Please suggest me how I can achieve
    this.  I cannot do this through code, because our environment does
    not allow that.  I have to do this in crystal reports viewer and
    by setting some property of the crystal report object. But everything
    must be done on UI, not through code. So, the solution should not be the following. 
    // step before step 1
    // **** the line needs to refer to the report and be set before setting
    ReportSource in the viewer to myReport
    myReport.EnableParameterPrompting = False
    Any help would be greatly appreciated.  Murtaza

    Post Author: sleahcim
    CA Forum: General
    Hi Murtaza,
    Unfortunately, I am not aware of any method to suppress the prompt for the input parameters, but still use them.  It is truly a design-related issue for the report.  The reason that the prompt appears is because the parameter it is prompting for is used in the report; in particular either the Group or Record Selection, or referenced in another formula.
    The only way I can think of to not show the prompt, is to not use the parameter in the report.  You did mention that you are setting the value of the parameter inside of the report -- are you doing this through using a formula?  Perhaps you can just remove the parameter and only use the formula that you are setting the default values with.
    -Michael

  • Need Help-How Store the input parameter through java bean

    Hello Sir,
    I have a simple Issue but It is not resolve by me i.e input parameter
    are not store in Ms-Access.
    I store the input parameter through Standard Action <jsp:useBean>.
    jsp:useBean call a property IssueData. this property exist in
    SimpleBean which create a connection from DB and insert the data.
    At run time servlet and server also show that loggging are saved in DB.
    But when I open the table in Access. Its empty.
    Ms-Access have two fields- User, Password both are text type.
    Please review these code:
    login.html:
    <html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>LoginServlet.java:
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setUserName(user);
    st.setPassword(pass);
    request.setAttribute("user",st);
    request.setAttribute("pass",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String user="";
    private String pass="";
    private String s="";
    public String getUserName() {
    return user;
    public void setUserName(String user) {
    this.user = user;
    public String getPassword() {
    return pass;
    public void setPassword(String pass) {
    this.pass = pass;
    public String getIssueData() //method that create connection with database
    try
    System.out.println("Printed*************************************************************");
    getUserName();
    getPassword();
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Loading....");
    Connection con=DriverManager.getConnection("jdbc:odbc:simple");
    System.out.println("Connected....");
    PreparedStatement st=con.prepareStatement("insert into Table1 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String User=getUserName();
    st.setString(1,User);
    String Password=getPassword();
    st.setString(2,Password);
    st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s=  "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }submit.jsp:
    This is Submit page
    <html><body>
    Hello
    Student Name: <%= ((co.SimpleBean)request.getAttribute("user")).getUserName() %>
    <br>
    Password: <%= ((co.SimpleBean)request.getAttribute("pass")).getPassword() %>
    <br>
    <jsp:useBean id="st" class="co.SimpleBean" scope="request" />
    <jsp:getProperty name="st" property="IssueData" />
    </body></html>web.xml:<web-app>
    <servlet>
    <servlet-name>one</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>one</servlet-name>
    <url-pattern>/tmp</url-pattern>
    </servlet-mapping>
    <jsp-file>issue.jsp</jsp-file>
    <jsp-file>submit.jsp</jsp-file>
    <url-pattern>*.do</url-pattern>
    <welcome-file-list>
    <welcome-file>Login.html</welcome-file>
    </welcome-file-list>
    </web-app>Please Help me..Thanks.!!!
    --

    Dear Sir,
    Same issue is still persist. Input parameter are not store in database.
    After follow your suggestion when I run this program browser show that:i.e
    This is Submit page Hello Student Name: vijay
    Password: kumar
    <jsp:setProperty name="st" property="userName" value="userValue/> Your logging is saved in DB
    Please review my code.
    login.html:
    {code}<html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>{code}
    LoginServlet.java:
    {code}import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String userValue=request.getParameter("user");
    String passValue=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setuserName(userValue);
    st.setpassword(passValue);
    request.setAttribute("userValue",st);
    request.setAttribute("passValue",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }{code}
    SimpleBean.java:
    {code}package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String userValue="";
    private String passValue="";
    private String s="";
    public String getuserName() {
    return userValue;
    public void setuserName(String userValue) {
    this.userValue = userValue;
    public String getpassword() {
    return passValue;
    public void setpassword(String passValue) {
    this.passValue= passValue ;
    public String getissueData() //method that create connection with database
    try
    System.out.println("Printed*************************************************************");
    getuserName();
    getpassword();
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Connection loaded");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("insert into vij values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String userName=getuserName();
    st.setString(1,userName);
    String password=getpassword();
    st.setString(2,password);
    st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s= "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }{code}
    submit.jsp:
    {code}This is Submit page
    <html><body>
    Hello
    Student Name: <%= ((co.SimpleBean)request.getAttribute("userValue")).getuserName() %>
    <br>
    Password: <%= ((co.SimpleBean)request.getAttribute("passValue")).getpassword() %>
    <br>
    <jsp:useBean id="st" class="co.SimpleBean" scope="request" />
    <jsp:setProperty name="st" property="userName" value="userValue/>
    <jsp:setProperty name="st" property="password" value="passValue"/>
    <jsp:getProperty name="st" property="issueData" />
    </body></html>web.xml:<web-app>
    <servlet>
    <servlet-name>one</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>one</servlet-name>
    <url-pattern>/tmp</url-pattern>
    </servlet-mapping>
    <jsp-file>submit.jsp</jsp-file>
    <url-pattern>*.do</url-pattern>
    <welcome-file-list>
    <welcome-file>Login.html</welcome-file>
    </welcome-file-list>
    </web-app>Sir I can't use EL code in jsp because I use weblogic 8.1 Application Server.This version are not supported to EL.
    Please help me...How store th input parameter in Database through Java Bean                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Error message "No valid source context supplied"

    Hii, I will add buttons to my html page. So far, I inserted the following code to my bsp page: <% DATA: ls_button type CRMT_THTMLB_BUTTON,                   lt_button type CRMT_THTMLB_BUTTON_t.                   CLEAR ls_button.                   ls_

  • RTMPS not working in Android Air 3.8.0.820

    If i build my app with 3.7.0.1530 then an RTMPS connection (proxyType = "best") works fine. If I build with 3.8.0.820, on Android I get a NetConnection.Connect.Failed after about 10 seconds. Works fine with 3.8 on iOS & OS X. Any ideas?

  • Can't retrieve voicemail with the 4.2 "update"

    i've got the iphone 3g and updated to the ios 4.2 and now with this "update" i can't retrieve voicemails. i get a password prompt, but i never set up a password to retrieve voicemails. does anyone have a solution? i'd like to avoid setting an appoint

  • Import raw and JPEG and switch between them

    Some background. The Epson R-D1 (and R-D1s) when set to B&W and asked to record raw + JPGs renders the JPG in B&W and leaves the raw alone. It also shows you the images in B&W on its LCD. This is great because, if you don't want to, you never have to

  • Opening a MSWord .doc in Word v. X

    I have an MSWord .doc (created with which version, I do not know), I want to open in my Word X. This .doc has four video clips in it. In Word X, the video clips appear as inserted graphics and doule-clicking them brings up the Picture Format window.