[Struts] Use or re-define processRoles

Hello forum,
in my struts web application i need differentiate accesso to determinate actions.
For example, only the user type A can invoke "addItem" action.
In Struts APi, i've found the method processRoles for RequestProcess class.
I don't know how use it.
Can you to do an example please?
Thanks, bye.

yes, you are right, struts controller passes it to UIX controller to handle the events.
you may return a Page object as the result of the EventResult. Then struts will try to find a forward with the same name as the Page and follow it.
In 10gProduction we do things a little differently:
if there is an event=foo on the request URL:
1. struts controller will try to find and execute an onFoo method on the matching DataAction/DataPage subclass.
2. if there is no onFoo method, struts will try to execute an action binding (on the UIModel for the DataAction) with the name foo.
3. if steps 1 or 2 fail to do anything, then struts will ask UIX controller to handle the event.
after the event is handled:
4. if the UIX event handler returns an EventResult with a Page as the result, struts will try to find a forward that matches the Page name.
5. otherwise, struts will try to find a forward with the name foo
6. if both steps 4 and 5 fail to find a forward, then no navigation will take place, and struts will render the same DataAction/DataPage again.

Similar Messages

  • How to embedded css in Struts using JBuilder 8

    Hi everyone,
    I have a serious problem in my GUI. Currently i am doin a web portal using struts,Enterprise JavaBean(EJB).
    The softwares i am using are Jbuilder 8 and Dreamweaver MX.
    The interface of my portal is coded in html with css involved.The problem is that once i converted my html coding into struts format using JBuilder 8, the css cannot be read in the struts.(For example, my font size,color,border is the what i have defined in css)
    I have try to covert the html coding into 3.0 Browser compatible using dreamweaver MX. Although it is able to display some of the things that is specified in the CSS,
    but some tags are still lost.
    I will like to know if there is any method,steps or tag that i should take note in my coding so that i can embedded my CSS into my struts using JBuilder 8 without affecting my form color,aligments,size type,etc...
    Regards,
    Jong Hann

    Hi bidris2003,
    i have try the 2 different set of coding.The result is still the same. It doesn't read into the css thing. I have create a folder called css in WebPortal folder. The rest of my jsp pages are in WebPortal folder.
    Example:(1) my jsp page contain in side the WebPortal folder.
    C:\Documents and Settings\u\Desktop\GamePortal(with css)\WebPortal
    (2) My css contain in css folder
    C:\Documents and Settings\u\Desktop\GamePortal(with css\WebPortal\css
    Example code 1:
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <html:html locale="true">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="layout.css" type="text/css">
    <html:base/>
    </head>
    <body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0">
    <table width="100%" border="0" cellspacing="0" height="49" cellpadding="0">
    <tr>
    <td rowspan="2" width="224" height="49" align="left" background="Images/headerbg2.jpg"><html:img width="224" height="49" src="Images/header.jpg"/></td>
    <td height="27" background="Images/headerbg1.jpg">�</td>
    <td width="250" height="27" background="Images/headerbg1.jpg" styleClass="headertext" valign="bottom">
         <html:link href="lostpassword.jsp" target="main">Lost
    password</html:link> :: <html:link href="signup.jsp" target="main" style="text-decoration:none;">Join</html:link></td>
    <td width="9" height="49" rowspan="2" align="right">
    <div align="right"><html:img width="9" height="49" src="Images/header2.jpg"/></div></td>
    </tr>
    <html:form action="/loginAction">
    <tr>
    <td height="22" background="Images/headerbg2.jpg">�</td>
    <td width="250" height="22" background="Images/headerbg2.jpg" valign="middle">
         <div align="right" styleClass="formtext" style="color:#FFFFFF"> Nick:
    <html:text property="nick" styleClass="input"/>
    Password:
    <html:password property="password" styleClass="input"/>
    <html:submit value="Go" property="Submit" styleClass="submit"/>
         </div>
    </td>
    </tr>
    </html:form>
    </table>
    </body>
    </html:html>
    Example code 2:
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <html:html locale="true">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <html:base/>
    <LINK rel="stylesheet" type="text/css"
    ref="<html:rewrite page='/css/layout.css'/>">
    </head>
    <body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0">
    <table width="100%" border="0" cellspacing="0" height="49" cellpadding="0">
    <tr>
    <td rowspan="2" width="224" height="49" align="left" background="Images/headerbg2.jpg"><html:img width="224" height="49" src="Images/header.jpg"/></td>
    <td height="27" background="Images/headerbg1.jpg">�</td>
    <td width="250" height="27" background="Images/headerbg1.jpg" class="headertext" valign="bottom">
         <html:link href="lostpassword.jsp" target="main">Lost
    password</html:link> :: <html:link href="signup.jsp" target="main" style="text-decoration:none;">Join</html:link></td>
    <td width="9" height="49" rowspan="2" align="right">
    <div align="right"><html:img width="9" height="49" src="Images/header2.jpg"/></div></td>
    </tr>
    <html:form action="/loginAction">
    <tr>
    <td height="22" background="Images/headerbg2.jpg">�</td>
    <td width="250" height="22" background="Images/headerbg2.jpg" valign="middle">
         <div align="right" class="formtext" style="color:#FFFFFF"> Nick:
    <html:text property="nick" styleClass="input"/>
    Password:
    <html:password property="password" styleClass="input"/>
    <html:submit value="Go" property="Submit" styleClass="submit"/>
         </div>
    </td>
    </tr>
    </html:form>
    </table>
    </body>
    </html:html>
    CSS code inside the CSS folder:
    font { font-family: Verdana, Arial, Helvetica, san-serif; font-size:9px;}
    body {
                   background-color: #FFFFFF;
                   text-align: left;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:9px; font-weight:normal;
                   padding:0;
                   scrollbar-face-color:#FFFFFF;
                   scrollbar-shadow-color:#AAAAAA;
                   scrollbar-highlight-color:#AAAAAA;
                   scrollbar-3dlight-color:#e5e4e4;
                   scrollbar-track-color:white;
                   scrollbar-arrow-color:#7f7f7f;
    A { text-decoration: none;
         font-family:verdana, arial, helvetica, sans-serif;
         color:#5B5B5B;}
    A:hover { color:#939393;}
    A:active { color:#939393;}
    A:link {color:#5B5B5B;}
    A:vlink {color:#000000;}
    .box {
                   border-right: 1px solid #7F7F7F;
                   border-top: 1px solid #7F7F7F;
                   border-left: 1px solid #7F7F7F;
                   border-bottom: 1px solid #7F7F7F;
                   text-align:left;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:10px; font-weight:normal;
                   color: #666666;}
    .boxdashed {
                   border-right: 1px dashed #7F7F7F;
                   border-top: 1px dashed #7F7F7F;
                   border-left: 1px dashed #7F7F7F;
                   border-bottom: 1px dashed #7F7F7F;
                   text-align:left;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:10px; font-weight:normal;
                   color: #666666;}
    .description {
                   text-align:left;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:9px; font-weight:normal;
                   color: #666666;}
    .details {
                   text-align:right;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:11px; font-weight:900; vertical-align:bottom;
                   color: #666666;}
    .formtext {
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:8px; font-weight:900;
    .forum {
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:10px; font-color:#5B5B5B;
    .forumtext {
                   background-color:#FFFFFF;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:12px;vertical-align:top; padding:0;
                   A { text-decoration: none;
                        font-family:verdana, arial, helvetica, sans-serif;
                        A:hover { color:#939393;}
                        A:active { color:#939393;}
                        A:link {color:#5B5B5B; text-decoration:none;}
                        A:vlink {color:#000000; text-decoration:none;}
    .forumtext2 {
                   background-color:#EEEEEE;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:10px; vertical-align:middle; padding:0;
    .forumheader {
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:10px; font-weight:900; color:white;
                   height:20px; text-align: center;
    .forumheader2 {
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:10px; font-weight:normal; color:white;
                   height:20px; text-align: center;
    .headertext {
                   text-align:right;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:9px; font-weight: bold;
                   color: #FF0099;
                   text-decoration: none
    .headertext2 {
                   text-align:left;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:10px; font-weight: bold;
                   color: #5B5B5B;
                   text-decoration: none
    .input {
                   border: 1px solid #5B5B5B;
                   width: 53px;
                   height: 12px;
                   color: #FF0099;
                   font-family: Verdana, Arial, Helvetica, sans-serif;
                   font-size: 9px;
                   text-align: left; line-height: 11px;
                   padding: 0px;
    .input2 {
                   border: 1px solid #FFFFFF;
                   border-bottom: 1px solid #7F7F7F;
                   border-right: 1px solid #7F7F7F;
                   border-top: 1px solid #7F7F7F;
                   border-left: 1px solid #7F7F7F;
                   width: 270px;
                   height: 18px;
                   background-color: #FFFFFF;
                   color: #7F7F7F;
                   font-family: Verdana, Arial, Helvetica, sans-serif;
                   font-size: 9px;
                   text-align: left;
                   padding: 0px;
                   overflow:auto;
    .submit {
                   border: 1px solid #FFFFFF;
                   border-bottom: 1px solid #7F7F7F;
                   border-right: 1px solid #7F7F7F;
                   border-top: 0px;
                   border-left: 0px;
                   width: 25px;
                   height: 15px;
                   background-color: #FFFFFF;
                   color: #7F7F7F;
                   font-family: Verdana, Arial, Helvetica, sans-serif;
                   font-size: 9px;
                   text-align: center;
                   padding: 0px;
    .updates {
                   text-align:left; border:1px solid #939393;
                   font-family: Verdana, Arial, Helvetica, san-serif;
                   font-size:10px; font-weight:normal;
                   color: #666666;
                   padding: 10px;}

  • Is there a way to use a statically defined appearance stream in a dynamically created annotation?

    Hello,
    I want to create a document with cascading 'popups'.  Not the built-in text-only popup, but an annotation containing an appearance stream that defines text and images.  I'm currently using widget annotations based on a pushbutton field.
    Each page in my document has many citations that refer to other pages in the document.  When a user hovers over the citation, I want a 'popup' to appear containing a depiction of the destination.  However, as the destination will itself have citations, I also want the 'popup' to contain citations that the user can hover over, triggering another popup, etc.  In this way, a user could navigate throughout the document without leaving the page or even clicking the mouse.
    Obviously, with even a modest number of citations per page, pre-calculating and statically defining all of these widgets causes a combinatorial explosion, making the document sluggish and very large.
    Instead, I'd like to statically define appearance streams once per document, and then dynamically create annotations and assign the appropriate appearance stream using JS as the user navigates.
    So far I've created a named AP in the names dictionary, but I haven't been able to use it to dynamically set an appearance stream of a dynamically created widget annotation.
    Also, I've called Doc.getIcon(), passing in the named AP, which returns an Icon object.  However, after field.buttonSetIcon() and passing in the named AP, the button does not display the icon.
    Is there a way to use a statically defined appearance stream in a dynamically created annotation?
    Thank you,
    Dave

    Hi George, I've gotten named APs to work, and I expect hidden buttons will follow.  Thank you very much!
    Quick follow-up - I will have many documents embedded within the same pdf file, and some of these documents will contain identical popups.  However, I don't want to store identical icons in each document on account of file size.
    Instead, I'd like to store one instance of each icon for all documents in the file.
    Can I store all of the icons in a single document, and then access them by calling <DocName>.getField().getIcon() from any document in the file?
    Thank you again,
    Dave

  • How to close a pop up window of used component ( usage defined )

    Hi Friends ,
    I'm calling a window as a pop up of used component ( Usage defined ). I want to close that pop up using a button on the embedded view of that window.
    it would be great help If any one can help me in this.
    Regards,
    Laeeq

    >
    Laeeq Siddique wrote:
    > Hi Silke ,
    >
    > I Want to close a pop up using a botton on embedded view of window of used component and I do not have the refrence of window object there. I know what you are talking about but its not that simple.
    >
    > Regards,
    > Laeeq
    Actually it is pretty simple.  From the embedded view you can use the APIs to get access to the hosting window object.
    data l_api_v_new_attachment type ref to if_wd_view_controller.
      l_api_v_new_attachment = wd_this->wd_get_api( ).
      data window_controller type ref to if_wd_window_controller.
      window_controller = l_api_v_new_attachment->get_embedding_window_ctlr( ).
      data window type ref to if_wd_window.
      window = window_controller->get_window( ).
      window->close( ).

  • Problem in struts using JDeveloper10.1.2

    hi
    Iam completly new to jdeveloper
    Iam using jdev 10.1.2 for my simple struts application
    I have
    action class -- LoginAction
    form bean -- login (using DynaActionForm)
    login.jsp to enter username
    success.jsp for welcom msg
    failure.jsp --- in this i use one submit btn when i press this it will go to login.jsp for relogin
    <form action="/login.jsp">....
    the problem is
    In LoginAction
    String password=(String)((DynaActionForm)form).get("password");
    // String pwd =request.getParameter("username");
    if(password.equalsIgnoreCase("oracle"))
    return mapping.findForward("success");
    else
    return mapping.findForward("failure");
    iam import all the class for the respective reff variables.
    But it will indicate err underline(blue) under text which are in bold saying msgs as
    --method get(java.lang.string) not found in org.apache.struts.action.DynaActionform
    the samething for remaining two showing on ActionMapping
    plese tell me where is the problem
    running on Embedded OC4J SERVER
    error message is
    http://hostname:8988/hello_struts1-ViewController-context-root/login.do
    07/07/19 17:12:31 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
    Jul 19, 2007 5:12:32 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Jul 19, 2007 5:12:32 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Jul 19, 2007 5:12:32 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='view.ApplicationResources', returnNull=true
    Jul 19, 2007 5:12:32 PM org.apache.struts.action.RequestProcessor processException
    WARNING: Unhandled Exception thrown: class java.lang.NullPointerException
    thanks

    Duplicate post:
    problem on struts using jdeveloper 10.1.2
    user583549,
    I see you got an answer from Shay in the other post.
    Good Luck,
    Avi.

  • How to use a user defined function in where cluase condition

    Hi,
    I have designed a query by selecting some columns in the tables and some columns are retrieved directly from table and some columns are passing to a user defined function. Now my requirement is i need to use that user defined function result in oracle where condition clause.
    Ex : select marketing_user_id,get_name(marketing_user_id),item_id,get_item_name(item_id),get_country_name(country_id),
    from
    where get_item_name(item_id) in ('x','y','z')
    and get_country_name(country_id) in ('India','America','China');
    When am i trying the query by above format i am getting the wrong resultset.
    BR,
    uma

    I am not sure why your getting the wrong results but you should seriously reconsider the approach your are taking. Using functions like this is very ineffecient and should be avoided at all cost.

  • How to use a user defined function in XI

    Hi Experts,
    I would like learn how to use a user defined function  in Xi during mapping . Is there any step by step on that.
    Besides during when me make communcaton channels I see the following tabs...Paramters ..Identifiers ...Module...
    The module that is given here ...where and how it is used.

    Hi,
    You can write UDFs in java in Graphical mapping to enhance your XI Graphical mapping functionality
    The steps for doing it would be:
    1. Click on Create New function Button found on Bottom left corner on your XI Mapping window.
    2. Write your java code.
    3. Run the Mapping Test as usual.
    >>The module that is given here ...where and how it is used.
    The adapters in the Adapter Framework convert XI messages to the protocols of connected external systems and the other way around. When doing so, some
    functionality might need to be added specific to a situation which is possible with the use of custom modules.
    Typical example would be validation of file content when using a File Adapter or modification of the message payload to a common content structure which is not supported by any of the standard SAP modules.
    An Adapter module is developed as an Enterprise Java Bean and is called locally by the Adapter.
    An example on modules :
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805">How to develop a module for reading file name in a sender file adapter XI 3.0</a>
    Cheers,
    Chandra

  • Use of externally-defined/ in weblogic-ejb-jar.xml

    I am trying to use Global Roles defined via the Weblogic console to control access to EJB methods.
    I am using the <externally-defined/> tag in security role assignments, however when I deploy to Weblogic I get the following error :
    <8/09/2004 04:21:42 PM GMT+10:00> <Error> <Deployer> <BEA-149205> <Failed to initialize the application appsdirmars-marketdata_ear due to error weblogic.manag
    ement.ApplicationException: Prepare failed. Task Id = null
    Module Name: ejb-marketdata.jar, Error: [EJB:011024]The XML parser encountered an error in your deployment descriptor. Please ensure that your deployment descriptor corresponds to the format in the DTD. The error was:
    Error parsing file 'META-INF/weblogic-ejb-jar.xml' at line: 51 column: 26. Element type "externally-defined" must be declared..
    at weblogic.j2ee.J2EEApplicationContainer.checkForErrors(J2EEApplication
    Container.java:1612)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:1207)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:1051)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:823)
    at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(Sl
    aveDeployer.java:2925)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications
    (SlaveDeployer.java:967)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
    ava:349)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
    e(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
    at weblogic.Server.main(Server.java:32)
    I am running Weblogic 8.1 SP3 on Windows XP Pro.
    The XML is valid for the specified DTD according to my XML editor.
    The relevevant fragment from weblogic-ejb-jar.xml is included below.
    Any help much appreciated.
    Gavin.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">
    <weblogic-ejb-jar>
    <security-role-assignment>
    <role-name>MarsAdmin</role-name>
    <externally-defined/>
    </security-role-assignment>
    <security-role-assignment>
    <role-name>MarsViewer</role-name>
    <externally-defined/>
    </security-role-assignment>
    </weblogic-ejb-jar>

    I tried using the <global-role/> tag instead - this does deploy without any errors - but when I call the secure EJB method I get the Security Violation error below.
    The DTD says using the <global-role/> tag is fine, albeit deprecated, but the Weblogic 8.1 manual says this has been replaced by <externally-defined/>, so I'm not sure if this should work or not.
    [EJB:010160]Security Violation: User: 'ghughes' has insufficient permission to access EJB: type=<ejb>, application=_appsdir_mars-marketdata_ear, module=ejb-marketdata.jar, ejb=marketdata.MarketDataManager, method=getEnergyOverview, methodInterface=Remote, signature={java.util.Date}.
    So on the whole I'd prefer to work out why Weblogic isn't recognising <externally-defined/> - I've included the full deployment descriptor below - I'm generating it using the latest snapshot of XDoclet - is the DTD specified correct for Weblogic 8.1 SP3 ? (It matches the one specified in http://e-docs.bea.com/wls/docs81/ejb/DDreference-ejb-jar.html - but I can't think of anything else that could be wrong).
    Any tips much appreciated as I need to enable an administrator to customise these roles at runtime rather than hard-coding the role - group mappings into the deployment descriptors.
    Thanks,
    Gavin.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">
    <weblogic-ejb-jar>
    <description><![CDATA[Generated by XDoclet]]></description>
    <weblogic-enterprise-bean>
    <ejb-name>marketdata.MarketDataManager</ejb-name>
    <stateless-session-descriptor>
    </stateless-session-descriptor>
    <reference-descriptor>
    </reference-descriptor>
    <jndi-name>marketdata.MarketDataManager</jndi-name>
    <local-jndi-name>marketdata.MarketDataManagerLocal</local-jndi-name>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>marketdata.MessageManager</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>5</max-beans-in-free-pool>
    <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>FileTopic</destination-jndi-name>
    <connection-factory-jndi-name>JMSConnectionFactory</connection-factory-jndi-name>
    <jms-polling-interval-seconds>10</jms-polling-interval-seconds>
    <jms-client-id>1</jms-client-id>
    </message-driven-descriptor>
    <transaction-descriptor>
    <trans-timeout-seconds>10</trans-timeout-seconds>
    </transaction-descriptor>
    <reference-descriptor>
    </reference-descriptor>
    <enable-call-by-reference>True</enable-call-by-reference>
    </weblogic-enterprise-bean>
    <!--
    To add enterprise beans that you have deployment descriptor info for, add
    a file to your XDoclet merge directory called weblogic-enterprise-beans.xml that contains
    the <weblogic-enterprise-bean></weblogic-enterprise-bean> markup for those beans.
    -->
    <!-- xdoclet merge file -> weblogic-ejb-jar.xml -->
    <security-role-assignment>
    <role-name>MarsAdmin</role-name>
    <externally-defined/>
    </security-role-assignment>
    <security-role-assignment>
    <role-name>MarsViewer</role-name>
    <externally-defined/>
    </security-role-assignment>
    <idempotent-methods>
    </idempotent-methods>
    </weblogic-ejb-jar>
    Message was edited by [email protected] at Sep 8, 2004 8:45 PM

  • Error erase Queries in Query Manager- The query is used with user-define...

    Hello Experts
    I have deleted a User Field that had a Formatted Search and now I can not remove it because it is linked according to a UF, the error message is as follows:
    "The query is used with user-defined values [Message 952-23]"
    There will be a way to resolve this issue???
    Thanks in advance

    Hi Juan,
    I have tried this very limited, but the formid, is this a number in your case?
    SELECT * from cshs t0 inner join ouqr t1 on t0.queryid = t1.intrnalkey
    where t1.qname = '[%0]'
    Running this query I can get the form id that I need to recreate, but I have a feeling you already know the form id, is this correct?
    - Is there an error when you try to recreate the form id?
    - Will it not let you recreate the same form id because the id is given by the system?
    If it is not possible to recreate the form id, please prepare a backup and log a message. Support should be able to correct the entry in table cshs.
    Hope it helps.
    Jesper

  • Passing values to action form in struts using html:link tag in struts

    hi
    As we can post values to action form bean in struts using a <html:text> tag in side a form.
    Can the same be achieved by using a html:link attribute.
    If not then how can this be achieved (i.e. posting a form on click of a link and populating action form bean property for the same).
    thanx in advance.

    Crosspost:
    http://forum.java.sun.com/thread.jspa?threadID=5244035&tstart=0

  • Unusual use of interface defining static factory class with getInstance

    This question is prompted by a recent New to Java forum question ask about the differences between Interfaces and Abstract classes. Of course one of the standard things mentioned is that interfaces cannot actually implement a method.
    One of my past clients, one of the 500 group, uses interfaces as class factories. The interface defines a pubic static class with a public static method, getInstance, that is called to generate instances of a class that implements the interface.
    This architecture was very object-oriented, made good use of polymorphism and worked very well. But I haven't seen this architecture used anywhere else and it seemed a little convoluted.
    Here is a 'pseudo' version of the basic interface template and use
    -- interface that defines public static factory class and getInstance method
    public interface abc {
        public static class FactoryClass
            public static abc getInstance ()
                return (abc) FactoryGenerator(new abcImpl(), abc.class);
    -- call of interface factory to create an instance
    abc myABC = abc.Factory.getInstance();1. Each main functional area ('abc' in the above) has its own interface factory
    2. Each main functional area has its own implementation class for that interface
    3. There is one generator (FactoryGenerator) that uses the interface class ('abc.class') to determine which implementation class to instantiate and return. The generator class can be configured at startup to control the actual class to return for any given interface.
    I should mention that the people that designed this entire architecture were not novices. They wrote some very sophisticated multi-threaded code that rarely had problems, was high performance and was easy to extend to add new functionality (interfaces and implementing classes) - pretty much plug-n-play with few, if any, side-effects that affected existing modules.
    Is this a best-practices method of designing factory classes and methods? Please provide any comments about the use of an architecture like this.

    Thanks for the feedback.
    >
    I don't see how 'the generator class can be configured at startup to control the actual class to return for any given interface' can possibly be true given this pseudo-code.
    >
    I can see why that isn't clear just from what is posted.
    The way it was explained to me at the time is that the interface uses standard naming conventions and acts like a template to make it easy to clone for new modules: just change 'abc' to 'def' in three places and write a new 'defImpl' class that extends the interface and the new interface and class can just 'plug in' to the framework.
    The new 'defImpl' class established the baseline functionality that must be supported. This line
    return (abc) FactoryGenerator(new abcImpl(), abc.class);uses the initial version of the new class that was defined, 'abcImpl()', when calling the FactoryGenerator and it acted as a 'minimum version supported'. The generator class could use configuration information, if provided, to provide a newer class version that would extend this default class. Their reasoning was that this allowed the framework to use multiple versions of the class as needed when bugs got fixed or new functionality was introduced.
    So the initial objects would be an interface 'abc' and a class 'abcImpl'. Then the next version (bug fixes or enhancements) would be introduced by creating a new class, perhaps 'abcImpl_version2'. A configuration parameter could be passed giving 'abcImpl' as the base class to expect in the FactoryGenerator call and the generator would actually create an instance of 'abcImpl_version2' or any other class that extended 'abcImpl'.
    It certainly go the job done. You could use multiple versions of the class for different environments as you worked new functionality from DEV, TEST, QA and PRODUCTION environments without changing the basic framework.
    I've never seen any Java 'pattern' that looks like that or any pattern where an interface contained a class. It seemed really convoluted to me and seems like the 'versioning' aspect of it could have been accomplished in a more straightforward manner.
    Thanks for the feedback. If you wouldn't mind expanding a bit on one comment you made then I will mark this ANSWERED and put it to rest.
    >
    I don't mind interfaces containing classes per se when necessary
    >
    I have never seen this except at this one site. Would you relate any info about where you have seen or used this or when it might be necessary?

  • NoSuchMethodException in Struts using DispatchAction

    Hi,
    I have wriiten a sample code using the DispatchAction Class(Subclass name is UserDispatchAction)
    It has 3 methods funct_save() ,funct_remove(), funct_delete() however whenever i give a call the funct_remove it gets invoked but the rest two doesn't. Can any body help me to sort out this problem. The following is the code for UserDispatchAction Class
    package StrutsApp;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.actions.DispatchAction;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionForward;
    import java.io.IOException;
    import javax.servlet.ServletException;
    public class UserDispatchAction extends DispatchAction
         public UserDispatchAction(){}
         public ActionForward funct_save(ActionMapping mapping, ActionForm form,HttpServletRequest req,HttpServletRequest res) throws IOException,ServletException
              return mapping.findForward("save");
         public ActionForward funct_remove(ActionMapping mapping,ActionForm form,HttpServletRequest req, HttpServletResponse res ) throws IOException, ServletException
              return mapping.findForward("remove");
         public ActionForward funct_delete(ActionMapping mapping, ActionForm form,HttpServletRequest req,HttpServletRequest res) throws IOException,ServletException
              return mapping.findForward("delete");
    }The following is the struts-config.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
         <form-bean name="lookupform" type="StrutsApp.LookUpForm" />
         <form-bean name="tmpForm" type="StrutsApp.tmpForm" />
    </form-beans>
    <global-forwards>
         <forward name="home" path="/home.do" />
    </global-forwards>
    <action-mappings>
         <action path="/Lookup" name="lookupform" type="StrutsApp.LookUpAction">
              <forward name="success" path="/success.jsp" />
              <forward name="failed" path="/index.jsp" />
         </action>     
         <action path="/home" forward="/success.jsp" />
         <action path="/Edit"
              type="StrutsApp.UserDispatchAction"
              input="/index.jsp"
              parameter="trial"
              name="tmpForm"
              scope="request"
              validate="true">
              <forward name="remove" path="/remove.jsp" />
              <forward name="save" path="/save.jsp" />
         </action>     
    </action-mappings>
    </struts-config>The following is the JSP that invokes the ActionServlet
    <%@ page language="Java"%>
    <%@ taglib uri="StrutsTagLib" prefix="Strut" %>
    <html>
         <body>
              <Strut:form method="post" action="/Edit.do">          
                   <Strut:select property="trial" size="3">
                        <Strut:option value="funct_save">Save</Strut:option>
                        <Strut:option value="funct_remove">Remove</Strut:option>
                        <Strut:option value="funct_delete">Delete</Strut:option>
                   </Strut:select>
                   <Strut:submit/><Strut:cancel/>
              </Strut:form>
         </body>
    </html>
    Following is the web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
    <web-app>
    <servlet>
         <servlet-name>action</servlet-name>
         <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
         <init-param>
              <param-name>config</param-name>
              <param-value>/WEB-INF/struts-config.xml</param-value>
         </init-param>     
         <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
         <servlet-name>action</servlet-name>
         <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <taglib>
         <taglib-uri>StrutsTagLib</taglib-uri>
         <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    </web-app>
    Regards
    Clefies R Dsouza

    Duplicate post:
    problem on struts using jdeveloper 10.1.2
    user583549,
    I see you got an answer from Shay in the other post.
    Good Luck,
    Avi.

  • Struts using DAO Design Pattern ..?Please give an example..... URGENT......

    Dear all,
    I have to develop an application in Struts by using DAO design pattern ..........
    Please give an example on Struts using DAO...................
    Thank you
    Please

    I'm glad you asked. It means Read The Flaming Manual. That'd be the struts manual by the way.

  • Struts using DAO Design Pattern Tutorail

    Can anybody give me a link for the Struts using DAO Design Pattern tutorial
    sample tutorial

    http://javaboutique.internet.com/tutorials/ApacheDAOs/
    Found by using google: strust dao pattern tutorial
    There are more good links using that search...

  • How can i develop charts using only xml defination

    how can i develop charts using only xml defination.can any one please let me know
    manks

    hello,
    in reports 6i the charts are created using oracle graphics which stores the chart definitions in a separate file (.OGD). there is not XML interface for graphics.
    with reports 9i and the introduction of the BIgraphBean the definition of the chart-properties is also done in XML.
    reports 9i will be available with iAS Release 2.
    regards,
    the oracle reports team

Maybe you are looking for

  • Delete files from server

    Rather that putting or getting files from the server, how do I delete them off of the server? I've been clicking on a file, then right clicking and selecting delete, but does this actually remove the file off of the server? I've perused the internet

  • Petition for Technical Support (Problems with BlueSoleil on BT6967 ver 1.43)

    I downloaded BT software BlueSoleil v2.0 from http://www.msi.com.tw/program/support/download/dld/spt_dld_detail.php?UID=326&kind=8 After installation, it doesn't load and asking for Licence Problem with my BT-6967 that's I think is not model v1.43, h

  • Link to URL should call a SAP transaction through URL with params

    Hi All, I have a requirement where I need to open a SAP Transaction MM03 on click of a link in a webdynpro application. I feel that I can call it using a URL but not sure of how the URL should look like. If I can pass the Params with the OKCodes etc

  • Screen zoom on an external monitor over Airplay is broken

    I just updated to Mavericks and noticed that I have lost functionality. I mirror my MacBook Pro to an external Sharp monitor using Airplay. While I am mirroring and zoom in on my screen, my screen will zoom but not the external monitor. In 10.8 this

  • My Photos as Screen Saver will not 'save'

    When I select my own album or event to use as the screen saver for my new apple tv, it never seems to 'stick' or save. Everytime I come back into the room, or the next day it seems that the screensaver is reverting back to the built in 'animals' phot