How to write a user password update page to update jazn-data.xml?

Many thanks!
Or is there any container managed servlet?

Can someone help on this?
I am just looking for an example (may be with a 2 column matrix), not somebody to write full code as per my requirements for me.

Similar Messages

  • How to write a procedure for update the table

    Hi all
    can any body please tell me how to write a procedure to update the table......
    I have a table with about 10,000 records...........Now I have add a new column and I want to add values for that like
    registration Code Creidits
    13213 BBA
    1232 MCS
    I had add the creidit now i want to update the table.........the new value want to get by SQL like
    Creidit = select creidit from othere_table...........
    Hope u can understand my problem
    Thanks in advance
    Regards
    Shayan
    [email protected]

    Please try the following --
    update Program_reg a
    set TotalCreidit = ( select tot_cr <Accroding to your logic>
                                from Program_reg b
                                where a.Registration = b.Registration
                                and    a.Enrollment = b.Enrollment
                                and    a.code = b.code
    where a.Registration in ( select distinct Registration
                                        from Program_reg );
    N.B.: Not Tested....
    Regards.
    Satyaki De.

  • How to identify a user across multiple pages

    Hi,
    I'm doing a homebanking and I would like to know how to identify a user across multiple pages.
    I have already take a look at HTTPSESSION, but I didn't understand.
    Can someone help me.
    I'm send the servlet Logon.
    import java.io.*;
    import java.sql.*;
    import java.util.Date;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Cons_logon extends HttpServlet
         private Connection conexao = null;
         Login1 login1;
         public void init (ServletConfig cfg) throws ServletException
              super.init(cfg);
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   conexao = DriverManager.getConnection("jdbc:odbc:bank");
              catch (Exception e)
                   System.out.println(e.getMessage());
         public void doPost (HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
              String Suser, Spassword;
         PrintWriter out;
              res.setContentType("text/html");
    out = res.getWriter();
    String opcao = req.getParameter("log");
    Thanks

    I would recommend using the authentication mechanism that's guaranteed by the servlet spec. If you do that, you can just call
    request.getRemoteUser()
    to get the user name across multiple pages.
    If you want to use your own login scheme, you can create a new session object and map it to a user name somewhere in your app. Or you can just put the name of the user on the session. But the preferred way is to use the default authentication scheme defined by the spec.

  • I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    Hi,
    May the below code is useful for you, but I dont know how to sort.
    Edit the tag as per your job request.
    alert(app.activeDocument.xmlElements[0].contents)
    //Second alert
    var xe = app.activeDocument.xmlElements[0].evaluateXPathExpression("//marginalnote");
    alert(xe.length)
    for(i=0; i<xe.length; i++)
        alert(xe[i].texts[0].contents)
    Regards
    Siraj

  • How to configure jazn-data.xml for two realms?

    Hi,
    in my test application a JSP page is secured with <auth-method>BASIC</auth-method>.
    I use the jazn-data.xml configurtion in the Embedded OC4J in JDeveloper 10.1.2.
    With the standard configuration of jazn-data.xml I can sign in with user admin/welcome without any problems.
    In this case only the jazn.com realm exists.
    If I configure a second realm over the JDeveloper menu "Tools -> Embedded OC4J Server Preferences ..." then I can´t sign in any more.
    The new realm domain.com have some users in the group myusers. In the orion-web.xml I add the new group in the role-mapping.
    What is the problem? I can´t find informations in the documentation.
    Oracle® Application Server Containers for J2EE
    Security Guide
    10g Release 2 (10.1.2)
    B14013-02
    Thanks and best regards,
    Tobias
    orion-web.xml
    <orion-web-app servlet-webdir="/servlets/">
    <security-role-mapping impliesAll="false" name="user">
    <group name="jazn.com/users"/>
    <group name="domain.com/myusers"/>
    </security-role-mapping>
    </orion-web-app>
    web.xml
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>TestApp</web-resource-name>
    <url-pattern>*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>user</role-name>
    </auth-constraint>
    </security-constraint>
    <security-role>
    <role-name>user</role-name>
    </security-role>
    </web-app>

    Hi,
    I switched my above example from jazn-data.xml to LDAP and deployed this in iAS.
    In the OID are two realms configured, realm_1 and realm_2 and some users for each.
    But I can only access my JSP with users of realm_1 or realm_2 and not
    simultaneous users of both realms. That´s dependents on the configured "Default
    realm" of the JAZN LDAP User Manager in the EAR.
    If I set "Default realm" = realm_1 in the enterprise manager of the iAS then
    only members of realm_1 can access the JSP and vice versa for realm_2.
    I packaged my above example as EAR and configured the default generated
    orion-application.xml in the enterpise manager of the iAS.
    orion-application.xml
    <?xml version = '1.0'?>
    <!DOCTYPE orion-application PUBLIC "-//ORACLE//DTD OC4J Application runtime
    9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-application-9_04.dtd">
    <orion-application deployment-version="10.1.2.0.2"
    default-data-source="jdbc/OracleDS" treat-zero-as-null="true">
    <web-module id="webapp" path="webapp.war"/>
    <persistence path="persistence"/>
    <principals path="principals.xml"/>
    <jazn provider="LDAP">
    <property name="ldap.user" value="cn=orcladmin"/>
    <property name="ldap.password" value="!ias_admin10g"/>
    </jazn>
    <log>
    <file path="application.log"/>
    </log>
    <namespace-access>
    <read-access>
    <namespace-resource root="">
    <security-role-mapping>
    <group name="jazn.com/administrators"/>
    </security-role-mapping>
    </namespace-resource>
    </read-access>
    <write-access>
    <namespace-resource root="">
    <security-role-mapping>
    <group name="jazn.com/administrators"/>
    </security-role-mapping>
    </namespace-resource>
    </write-access>
    </namespace-access>
    </orion-application>
    orion-web.xml
    <orion-web-app servlet-webdir="/servlets/">
    <security-role-mapping impliesAll="false" name="user">
    <group name="realm_1/users"/>
    <group name="realm_2/myusers"/>
    </security-role-mapping>
    </orion-web-app>
    What do I have to configure to get access to the JSP with both realms?
    Best regards,
    Tobias

  • How implement security with jazn-data.xml file?

    Hi,
    I cannot implement the security user/role management in a web-app (Weblogic 10.3.6).
    web.xml (war file)
         <!-- Security JAAS -->
        <login-config>
            <auth-method>CLIENT-CERT</auth-method>
        </login-config>
        <security-constraint>
            <web-resource-collection>
                <web-resource-name>myApp</web-resource-name>
                <url-pattern>/pages/index.jsp</url-pattern>
            </web-resource-collection>
            <auth-constraint>
                <role-name>admin</role-name>           
            </auth-constraint>
        </security-constraint>
    jazn-data.xml (ear file)
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jazn-data PUBLIC "JAZN-XML Data" "http://xmlns.oracle.com/ias/dtds/jazn-data.dtd">
    <jazn-data>
    <!-- JAZN Realm Data -->
    <jazn-realm>
        <realm>
            <name>myrealm</name>
            <users>               
                <user>
                    <name>admin</name>
                    <display-name>admin</display-name>
                    <credentials>!pwd</credentials>
                </user>           
            </users>
            <roles>     
                <role>
                    <name>admin</name>
                    <members>                   
                        <member>
                            <type>user</type>
                            <name>admin</name>
                        </member>
                    </members>
                </role>          
            </roles>
        </realm>
    </jazn-realm>
    <!-- Permission Class Data -->
    <jazn-permission-classes>
    </jazn-permission-classes>
    <!-- Principal Class Data -->
    <jazn-principal-classes>
    </jazn-principal-classes>
    <!-- Login Module Data -->
    <jazn-loginconfig>
    </jazn-loginconfig>
    </jazn-data>
    I need to set user/role in Weblogic console? :-S
    Thanks for reply,
    Matteo.

    hi "romanna"
    Part of the answer to "Can somebody point me out how I need to define security ..." can probably be found in the "Oracle ADF Developer's Guide" that has "18 Adding Security to an Application".
    success
    Jan

  • Storing additional user information in jazn-data.xml

    How I can read, write additional information to jazn-data.xml using XMLRealmUser class?
    Can't use direct parsing jazn-data.xml.
    Thank you.

    Re: OC4J 10.1.3 to weblogic 10.3.2: jazn-data.xml can't migrated

  • How to change application name in system-jazn-data.xml

    I have weblogic server installed and applications deployed.
    However, I'd like to change the application name in system-jazn-data.xml, specifically, the "<name>context=APPLICATION,name=app1</name>" change "app1" to be "AllMyApp".
    Is this possible? ideally, I do not want to re-deploy the application. I'm not sure what files in application(I have both Web and EJB based applications) kept the name to point to above names in system-jazn-data.xml
    Thanks

    Hi thanks for your quick response.
    I mean to say we have deployed one application and that application appears as a web-DynPro application in PCD. Then i copied that application and pasted in the application folder as a page(PCD object). The page in the folder and application in webdynpro application both are having the same name.
    Now when i changed the name of the application in webDynPro (By re factoring) and deployed. The name in PCD in webdynPro application get changed but the PCD object in Folder becomes like a warning sign and shows that broken delta link.
    Now i want to know can i edit the link of the object so that it can point to the exect application or i have to copy the application and again paste as PCD object in the folder and then assign again to all 20 roles.
    Thanks & Regards
    Jeetendra....

  • I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    weblogic credentials are different.
    and using thode credentials I am able to login to weblogic server
    the users I am talking about is the process users defined in realm.
    in realm those users are defined as Default authenticator and OID authenticator.
    and I am trying to authenticate one of those users defined in realm using java api so that I an access a process defined In Oracle BPM 11g

  • How to change Analyzer user password with Administration API?

    Hi,<BR>I would like to change Analyzer user password with Administration API. Can someone post some sample commands to do the task?<BR><BR>I would just like to write an application to change end user's Analyzer password.<BR>As I see I would need to do the following:<BR>1. login with admin userid/password<BR>2. execute some method to change password for required userid. I think the input parameter should be userid (of the user I would like to change password) and new password (the new password for the user).<BR>3. logout<BR><BR>Can someone post some sample code (commands to execute)?<BR><BR>Thanks,<BR>grofaty<BR><BR>My system:<BR>Analyzer Server 7.0.1.<BR>Essbase server 7.1<BR>Windows XP SP2<BR>

    <blockquote>quote:<br><hr><i>Originally posted by: <b>knightrich</b></i><BR>Hello Mr. Jordan.<BR><BR>I would like to exchange some thoughts about "housekeeping" Analyzer reports in preparation for migration from Analyzer 7.0.0.0.01472 to 9.x:<BR><BR>...<BR><BR>Did you solved such a problem or do you have an idea if it could be solved with the Admin API methods?<BR> ...<BR>Migration from 7.00 to 9.x: As we heard last week the "Migration Wizard for Reports" in 9.3 should be able to migrate reports. Do you have experience or more detailed information about that Wizard?<BR><BR>Many thanks in advance<BR><BR>knigthrich<hr></blockquote><BR><BR>knighrich, <BR>I'd like to be more help, but I have no experience with System 9. I did substantial cleanup when we migrated from Analyzer 6 to Analyzer 7.1, and even more cleanup when moving up to 7.2, but our installation is smaller in scale than yours and we didn't need to automate report cleanup.<BR><BR>You might be able to get the ownership information you need through the back door, doing a direct query on the database, but simpler might be an export users, at least from 7.0. (This facility probably doesn't exist in system 9; it was dropped in 7.2 in favor of an undocumented API) The export file is an xml file that could easily be parsed to identify reports that have the administrator as user and then a second pass to delete those with otuer ownership as well. As previously suggested, you might be able to get this by a well crafted SQL query against the repository.<BR><BR>Procedurally, we have both public reports that have the blessing of management and are widely available, owned by a "public owner", and private reports developed by indivdual users and shared or not. Our team maintains the public reports, but not the private reports. We may be asked to make a previously private report public and take over maintenance of it. <BR><BR>I hope that you can find a solution that meets your needs. Certainly a call to customer support to identify a poorly documented feature would be in order.<BR>

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • How do I customize the password input page of the PDF documented created from Pages?

    Is there a way to customize the password input page of the PDF document created from within Pages?
    I created a document in Pages, on exporting I choose PDF, in the Security Options drop down I checked box password required and typed in a password, then clicked Next, then typed in a file name and then clicked Export. This created a PDF file that when I open with preview brings up a red colored page saying:
    This PDF is password protected.
    Please type the password below.
    Password:
    I want to change the color and the text and potentially add an image. I may also need to put in instruction in multiple languages not just english.
    Please let me know. Thanks all!

    Not that I know of.
    You could control click on the Pages.app and have a look inside the application package's resources to see if any of it looks like password dialog, but my guess is that it has been encoded in the main part of the application and altering that, even if you could, would probably result in a check-sum error or failure to take updates.
    Adobe Acrobat has more control over its .pdfs but its password verification, I think is also part of the application.
    Peter

  • How to get the user password?

    I want to get the user password.
    How to do ?
    Thank you.

    Hi Zhang,
    You cannot see the password of an Authenticated User. You can retrieve the Password of the User in encrypted from using JNDI - by connecting to the OID & getting it. You can even change the password of the user with the necessary permissions - but, you cannot get the unencrpted password.
    Regards,
    Sandeep

  • How to write ABAP Routeines in Update/Transfer Rules ?

    Hi Experts,
    Iam new to BW and i don't have ABAP knowledge.Can any body help me ..to write ABAP Routeines in Update rules/Transfer rules.Give me some basic knowledge with proper example.and what type of routeines we need to write ?
    I will appreciate if some one helps me with proper Documentation.My mail id is [email protected]
    Points will be rewarded.
    Thanks in advance,
    Nayanasri.

    Hi Nayanasri,
    It is not mendatory that u need to write Update routines for all update rules. It depends on the requirement. Without update routine u can always manage. My last implementation was for a small chemical firm where i did not use any of the update routine. Suppose if u want to change the records in datapackage depending on certain conditions, then u can go for this. I'm just pasting one of my update routine program
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS8YGTGDCL6B.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    DELETE DATA_PACKAGE WHERE /bic/yverbr NE  'V2'.
    DELETE DATA_PACKAGE WHERE /bic/ydpbasfs = 0 AND /bic/yoplqty = 0.
    ENDFORM.
    Where the delete statement deletes the records when the field /bic/yverbr noe equals to 'V2' or deletes it when /bic/ydpbasfs equals zero.
    If the explanation is not suffecient, pls post further
    Regards
    Sriram

  • How to read weblogic user/password within a J2EE app ?

    All,
         There is an J2EE that exposes a webservice and the service can not be secured with ws-security since the service is an exact implementation of an standard that does not mandate  ws-secutiry and only insists on SSL/TLS. The application however needs a legitimate authenticated weblogic user for the rest of its work and hence the app has to read a known user created in the weblogic and then read its password as well and authenticate  within the app and use that authenticated subject. User can create this predefined user in weblogic and we may ask user to store the same weblogic password also in a CSF like OPSS and then have the app read the CSF, but since the password is available in the weblogic internal ldap, we want to leverage that and read the user's password using any of the weblogic mbean's APIs. Can anyone provide a pointer on how to read a user's password within the Weblogic's embedded ldap ?
         We referred to this Developing with the User and Role API - 11g Release 1 (11.1.1) & 6 Managing Security Realms with JMX but could not successfully get it working with J2EE app (Servlet/Filter).

    You can use JMX
    Please find a sample here
    List Users and Groups in Weblogic using JMX | Middleware wonders!!

Maybe you are looking for

  • Pavilion dv6 - the search for WLAN doesnt exist after installing windows 7 ultimate

    pavilion dv6 - the search for WLAN doesnt exist after installing windows 7 ultimate after installing windows 7 my computer only displays the LAN on my quicklaunch bar and I can even search for open WLAN networks =(

  • PB 17 has no sound

    A couple of weeks ago, the sound stopped working on my PB 17". It doesn't play music or the system sounds. Does anyone have any ideas?

  • Tryin to restore iphone but error 1050 shows how do i fix this

    ivebeen tryin to unlock my iphone all day with recovery mode and cant seem to get anywhere. now the device isnt being reconiced on my computer how can i fix this problem please help...

  • How to pass (String[] args), as a parameter.

    * StringMethods * @author (Robin) * @version (1) public class StringMethods     private String[] args;     private int numArgs;     public void printIt(String[] args)         System.out.print ("You have entered " + numArgs + " Strings");            

  • Type casting issue

    Hello All, I've a Type casting issue. Could yu please help me resolving it. I'm trying to initialize the variable v with sysdate ('mon-dd-yy:hh:mi:ss') but couldn't initialize. I was able to do that in the body but is it not possible to do it in the