How use the method hasPermission in weblogic server 6.1

Hello everybody !
In my application web ,i restrict access to some ressources (some jsp)
to some specified groups .
So,i create permissions in the file web.xml , as indicated in the doc
6.0 .
For example only the user : system can access to all the jsp , and the
others users no .
Now ,in my code ,I would like to use the method hasPermission in order
to modify my application according to the differents groups of users .
But my problem is that i don't know the parameter aclName !
For the parameter permission I use the syntax "new
weblogic.security.acl.PermissionImpl(".../x.jsp") .
For the parameter sep (char),i use : '.' .
But i don't find the parameter aclName .
When i was in weblogic 5.1 ,i created permission in the file
weblogicURL.policy with the syntax : " Permission
weblogic.security.acl.URLAcl "weblogic.url",".../x.jsp" " and after
i gave "weblogic.url" as parameter for aclName .
But in version 6.0, I try web.xml, web ? but nothing is good .
Is there any person which have an idea or the solution ?
All the sugestions are welcome !
Thanks by advance !
Good bye .

hi,
maybe a better approach could be to use roles instead of permissons.
Your menu.jsp could look like this:
<%
if(request.isUserInRole("super-user"))
%>
... code HTML where the button "Creation" is created
<%
%>
You can map the role 'super-user' to an individual principal or a
user group in weblogic.xml. In that case only users that are in
the mapped group/principal will see the 'creation' link. So simply
add user 'system' to a group 'super-user'.
regards,
przemek
Marc Alfonsi schrieb:
Hi Kirann and everybody!
Thanks for your message .
I'm going to explain better than the first time .
I set up security-constraints in my web.xml .
For example only "system" can access to the directory Creation and
all its .jsp , and the others users no .
Now ,in my code , there is a jsp : menu.jsp which displays some
possibilities : creation of an employee , visualisation ...with HTML
code : button "Creation" which call a .jsp of the directory Creation .
Actually , if a user different of "system" try to click on the button
"Creation" there is a dialog box of login . The user writes its loggin
but the access is prohibited ( because security-constraint in web.xml
).It's normal but not very well .I would like that a user who don't
have access to the functionality "Creation" don't see the button
"Creation" !
So in menu.jsp , i would like to use the method hasPermission at the
location of the button "Creation" is created with HTML code :
<%
if weblogic.security.acl.Security.hasPermission(.....,new
weblogic.security.acl.PermissionImpl("/Creation/x.jsp"),'.')
%>
code HTML where the button "Creation" is created
<%
%>
But my problem is that i don't know the first parameter which
correspond
to aclName .
Any suggestions are welcome .
Thanks for help .

Similar Messages

  • How can I configuration MBean in weblogic server  using the console ?

    How can I configuration MBean in weblogic server using the console ?
    I hear people talking about mbeans in weblogic server I have look in the console I can not find where , or how to do it.
    can some body explain that or a link that explain it, how to do it on the console ?

    Hi,
    Registering Custom MBeans from Admin Console is not yet possible. But yes there are ways to Configure and Utilize Custom MBeans ...
    http://weblogic-wonders.com/weblogic/2010/02/16/registering-and-invoking-custommbeans/
    Thanks
    Jay SenSharma

  • How to delete the deployed composite in weblogic server 11g

    Can someone tell me how to delete the deployed composite in weblogic server 11g ?I'm facing an issue where the weblogic server is getting started and immediately after sometime the server changes to "Force shutdown"..When i checked the logs,there is an error in one of the composite i deployed..So now i wanted to delete the deployed composite?Please help ....
    Thanks

    Hi
    1. Deleting a domain will not hold any references. But make sure that under your user_projects/applications also remove the folder that matches with your domain. Basically under user_projects folder you will see 2 folders named applications and domains. When you create a domain say mySoaDomain, it will crate a folder with the same name under applications folder also with few files like em.ear. If you do this, then you can crate a new soa domain and use the same old name.
    2. NOW comes the most important thing. If you create a new SOADomain, at one point, you had to give details for soainfra and mds schemas. If you give your current existing db details (that was used for your old deleted domain), then you may still have the issues. Because the soainfra db may still have the instances for your old process.
    3. If you really want to have a full clean soa domain, here is what you do:
    a) Run rcu and drop the existing schemas for soainfra and mds.
    b) Run rcu again and create above schemas again.
    c) Now create SOADomain using config wizard and refer above clean rcu db and you are all set.
    3. Under your domain root folder, just searh for files named with your workflow and you should see the .jar location.
    Thanks
    Ravi Jegga

  • How to increase the memory for my weblogic server in Jdeveloper 12.1.2.0.0 ?

    Hey everyone,
    So as my title says, i'm trying to increase the memory for my weblogic server in my windows 7 64 bit machine, with 8GB ram.
    The values appear to be: JAVA Memory arguments: -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
    I've done some search from this forum and i've added this to my jdev.conf:
    AddVMOption  -XX:MaxPermSize=1536M (in this one i've only changed the value)
    AddVMOption -Xmx1536M
    AddVMOption -Xms1536M
    And i've changed this: MEM_ARGS="-Xms1024m -Xmx1024m" in my startNodeManager.sh file
    I'm still getting the same line in my server but i need to change the values since i'm not getting the server to run my application very well (it gets stucked in loading my databases and graphs) and i think it will continue untill i get a heap exception error.
    Any ideas of how to change this?
    Regards,
    Frederico.

    Thanks Alejandro .
    I'm going to ask you another question and this one is quite important.
    Whenever i run my project a couple of times, i'm not able to retrieve the page, it just gets stuck on loading.
    It just stops the loading, like its a really really slow page. I'm not using a lot of rows in my database so i don't take to much memory but it doesn't load and i know everything is fine but i just added some graphs after testing it.
    Do you know why?
    In the console it says that everything is fine and shows the link for the page but it never loads completely until it gives a error because it does not respond in 600 seconds.
    Strange right?

  • How to use the method getParameterValues() of request object in JSP?

    I'm trying to use the method
    String a[]=request.getParameterValues("ch_box");
    to retrieve the values from the form
    but it gives the error
    "Method getParamaterValues(java.lang.String) not found in interface javax.servlet.http.HttpServletRequest."
    so plz tell me how to overcome this hurdle?
    thanx

    Well, just one note... either you have a typo in your code, or else in your post.
    If you cut and pasted the error message (which it looks like you did), then the method getParamaterValues() should be getParameterValues() instead (notice the spelling difference), so you probably just have a typo in your code.

  • How to use the method "getChildrenRemoved()" declared in ElementChange?

    How to use the method "getChildrenRemoved()" declared in DocumentEvent.ElementChange?

    I have tried to use it,but the code below alway say "Yes"....
    I really have no ideas about why ec is always a null.
    public void removeUpdate(DocumentEvent ee) {
           DocumentEvent.ElementChange ec = ee.getChange(doc.getDefaultRootElement());
           if(ec == null)
              System.out.println("Yes");
                     }

  • How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP server

    In 9iAS 9.0.2 Oracle HTTP Server (OHS) is pre-configured to assign requests to the Home OC4J instance via the URL-prefix "/j2ee"/
    For example, the TEST servlet under OC4J would be passed through OHS using:
    http://urmachine:urApachePort/j2ee/TEST
    whereas in the standlone OC4J version, this URL works:
    http://urmachine:urOC4JPort/TEST
    How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP Server?

    It is getting the url prefix from mod_oc4j.conf
    under /ora9ias/Apache/Apache/conf
    You can read more on this at
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a92173/confmods.htm#1008977
    -Prasad

  • 10.3, how to configure cluster as "single Weblogic server"

    Hello,
    We have a Cluster with Two Managed servers. The ports for the MS's are 7002, 7003. We want deployments for these servers to be visible through port 80/443. Currently we have Mapviewer application deployed and targeted to the cluster. All servers are RUNNING and the deployment is active. However we are only able to access the deployment on ports 7002, 7003.
    The documentation states: "A WebLogic Server cluster consists of multiple WebLogic Server server instances running simultaneously and working together to provide increased scalability and reliability. A cluster appears to clients to be a single WebLogic Server instance."
    But nowhere does it state how to get a cluster to appear as a "single Weblogic server instance". Where does this happen in the admin console or config files? Perhaps its a node manager function? Please help. Thank you.

    Thank you. I was beginning to think it was something external to Weblogic. I saw alot in the docs about Load Balancing within Weblogic but didn't read much into it. I'm assuming its more at the application level? Anyhow..
    Reading the description of the FrontEndHttpPort config option for Clusters made me think it was the solution:
    "Sets the FrontendHTTPPort for the default webserver (not virtual hosts) for all the servers in the cluster. Provides a method to ensure that the webapp will always have the correct PORT information, even when the request is coming through a firewall or a proxy. If this parameter is configured, the HOST header will be ignored and the information in this parameter will be used in its place, when constructing the absolute urls for redirects."
    I would set FrontendHTTPPort to 80, restart everything and get strange results. If I typed in http://localhost:7003/mapviewer it will redirect browser to http://localhost/mapviewer/faces/home.jspx and give a 404 type error. Using this new URL if I inserted the :7003 port again and hit go, the page would come up...but submitting a form or link on the page it would redirect back to port 80 and a 404 error. edit: this is probably working as intended.
    So is there a popular solution or plugin for this issue?
    Edited by: jstretch on Jan 21, 2009 2:06 PM

  • Fetching data using the method query

    Hi experts
    Using the class /scmtms/if_lcp and using the method query, how to fetch the data from the business objects.
    my requirement is i need to fetch the data from the BO /SCMTMS/FRIEGHTORDER and  /SCMTMS/SHIPMENTREQUEST.
    If any one can send the sample code for this, it will be very usefull for me.
    Thanks in advance
    sai
    Edited by: sai sai on Jun 17, 2009 5:21 PM

    report  z_fo_read.
    data:
      lr_fro        type ref to /scmtms/if_lcp,
      lr_lcp_transaction type ref to /scmtms/if_lcp_transaction.
    * step 1
    lr_lcp_transaction = /scmtms/cl_lcp_factory_adapter=>get_lcp_transaction_handler( ).
    * Schritt 2:
    lr_fro = lr_lcp_transaction->/scmtms/if_lcp_facade~get_lcp( in_bo_name = /scmtms/if_freightorder=>co_bo_name ).
    constants: co_do_prefix_root_tpcharges type string value 'TRANSPORTCHARGES.ROOT'.
    * Schritt 3:
    data:
      ls_params        type /scmtms/s_srq_rt_a_block value is initial,
      ls_root_data     type /scmtms/if_freightorder=>ty_root,
      ls_selection     type /scmtms/s_selection_parameter,
      lt_out_messages  type /scmtms/if_srvmgr_types=>ty_messages,
      lt_out_node_ids  type /scmtms/t_bo_node_id,
      lt_root_data     type /scmtms/if_freightorder=>tt_root,
      lt_items_data    type /scmtms/if_freightorder=>tt_transportchargesinfo,
      ls_items_data    type /scmtms/if_freightorder=>ty_transportchargesinfo,
      lt_selections    type /scmtms/t_selection_parameters,
      lv_action_name   type string,
    *     Notification structure
      ls_change_notifications type /scmtms/if_srvmgr_types=>ty_change_notifications.
    * A) Root-ID des SRQ holen, der ge-/entsperrt werden soll:
    ls_selection-attribute_name = /scmtms/if_freightorder=>co_attr-root-for_id. " ID.
    ls_selection-sign   = 'I'.
    ls_selection-option = 'EQ'.
    ls_selection-low    = '00000000000000000000000000000000800'.
    *ls_selection-high   = '00000000000000000000000000000000427'.
    append ls_selection to lt_selections.
    call method lr_fro->query
      exporting
        in_bo_node_name         = /scmtms/if_freightorder=>co_bo_node-root
        in_query_name           = /scmtms/if_freightorder=>co_query-root-root
        in_selection_parameters = lt_selections
      importing
        out_node_ids    = lt_out_node_ids
        out_messages    = lt_out_messages.
    * B) Daten holen:
    call method lr_fro->retrieve
      exporting
        in_bo_node_name        = /scmtms/if_freightorder=>co_bo_node-root
        in_node_ids            = lt_out_node_ids
      importing
        out_data               = lt_root_data
        out_messages           = lt_out_messages.
    read table lt_root_data into ls_root_data index 1.
    The above code is a snippet, extract useful information for you.

  • How used single ssl for tow exchange server without clustering

    how used single ssl for tow exchange server without clustering
    exchange 2003 std fron-end server
    used for add new server for owa failover or standby 

    Olivia, hopefully by now you have solved your issue but just for the sake of answering that question here so that people having the same issue can later find it I'll go through the motions:
    there are a couple of ways you can achieve this.
    A. get a certificate for free out there
    B. generate your own self signed "fake" certificate.
    certutil will certainly let you do this, here's how:
    1. First, create a file/directory layout to store your certificates
    mkdir -p /path/to/certificates/selfsignedCA2. Initialize a database for the certificate you want to create
    certutil -N -d /path/to/certificates/selfsignedCA -P "ca-"3. Create a self-signed CA certificate
    certutil -S -x -n "ca-cert" -s "cn=SelfSigned CA Certificate,dc=yourSuffix" -t CTPu -v 120 -d /path/to/certificates/selfsignedCA -P "ca-" -5Note: when prompted, select choice (5) SSL CA and 'y' for critical extensions
    4. Export the your newly created self-signed CA certificate in PEM format
    certutil -L -d /path/to/certificates/selfsignedCA -P "ca-" -n "ca-cert" -a > /path/to/certificates/selfsignedCA.pemthat should get you going
    -=arnaud=-

  • Hey i hav an hp pavilion g series n i would like to kno how use the function keys without having to

    hey i hav an hp pavilion g series n i would like to kno how use the function keys without having to click on the fn + function key

    Hi,
    You can change this in your system bios as described in the link below.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • What are the Admin Parameters in Weblogic server?

    What are the Admin Parameters in Weblogic server?

    Hi,
    Can you explain what specifically are you looking for? Are you looking for parameters to weblogic.Admin command or something else?
    Anil

  • How imstall the  BI7 on windows 2003  server

    Hi
    How imstall the  BI7 on windows 2003  server please   advise .
    thanks in advence
    with best regards
    jainendra prajapati

    Hi,
    Just install Netweaver 7.0 system following installation guide on https://service.sap.com/instguides and then after installation finished install BI_CONT add-on.
    Then your BI 7.0 system will be ready.
    Thanks
    Sunny

  • Adobe Illustrator in out Terminal Server environment. How is the licensing work for Terminal Server installations?

    Adobe Illustrator in out Terminal Server environment. How is the licensing work for Terminal Server installations?

    You can find all forums here:
    https://forums.adobe.com/welcome

  • HT1338 Dear all, I have just bought a MacBook pro with osx lion on 25thast month. I wanted to know if I can use the methods described above to update to osx mountain lion or I have to buy osx mountain lion from the app store?

    Dear all, I have just bought a MacBook pro with osx lion on 25th last month. I wanted to know if I can use the methods described above to update to osx mountain lion or I have to buy osx mountain lion from the app store?

    Here are the rules to qualify for the free upgrade:
    http://www.apple.com/osx/uptodate/
    (has to be purchased from Apple or authorized reseller).

Maybe you are looking for

  • Home Directories when installing on multiple partitions

    I have a macpro setup with two partitions.  Originally one partition assigned to Snow Leopard.  I log in using a network user (using OSX server) and that user has local Admin rights.  All is well. I setup a new instance of Snow Leopard on the seconda

  • Can anyone recommend a simple Notes/To Do List app

    Hello, I am going crazy looking for a very simple To Do List / Notes app for my iPhone that does what I want it to do. I have spent hours in the Apps store and downloaded over 12 so far, and have not found the right one. Can anyone recommend one that

  • "This item is no longer available"

    HELP! Someone sent me a gift and I clicked to redeem it and it said that the gift was no longer available! It was the vanessa anne hudgens album. when i went to go click to buy it myself, it said the same thing! what do i do?   Windows XP  

  • How to remap keyboard characters?

    I'd like to remap my Russian phonetic keyboard layout to match what this guy did for the Mac: (scroll down to Usage to see the layout that I'm wanting): http://www.users.bigpond.com/sphynx1/RussianPhonetic/ Does anyone know what files I can edit to g

  • Msg no F5598(Posting keys for acnt determ for transac. ERS do not exist

    A. Posting keys for acnt determ for transac. ERS do not exist B. Error in acnt determination(:table T030K key INT1 MWS Msg No FF709) C. How to carru out TOR?