reuse Java code?

Hello

I need to use the same java method in jsp pages (templates).

so I created an element of CS and I put all the common inside java code using the < %! % >

Can I use < %@include = file "" % > to call this CS element and use the methods? "

Because I think it does not with the < render: callelement...

Kind regards

Ghazi H.

Hello

What you are trying to do is a bad practice in my opinion and I recommend you to create a new library of classes (jar) and import the classes you need in the different models.

It will be useful,

Gerardo

Tags: Fusion Middleware

Similar Questions

  • How do you remove all THE Java code of Vista before a Java reinstall.

    I have (Microsoft Security Essentials) has recently detected viruses in my tree of Java.  While I think that the problem was managed by MSE, I still want to remove completely all my machine Java code prior to a relocation of a pure set of Java.  It seems that Java would not provide you with a removal of Java (like MaAfee) do this, and the only code available tool is the standard Microsoft required uninstall code.  I want to remove all traces of Java code, and I don't usually use (do not trust) of 3rd party code that you find on the Internet, but if anyone has good experience with one of them, I would like to know.

    Even if the uninstaller code seemed to work, I found a lot of leftover Java files and folders left behind.  For example, there is a Sun\Java\... tree located in the AppData\LocalLow directory.  I would like to know why this code was left and whether it is safe to just delete.  I don't like just big clear code because there may be a registry entry based on the code, which could cause another problem to me (even if the Java code is supposed to be uninstalled).

    In the meantime, as an alternative, I renamed all Java directories that I can find.  Roughly the same and about as good what remove Java directories, isn't.

    And finally, I have a Vista 64-bit system, so which implementation of Java should I download/use. When I uninstalled the Java code, there is an updated version of 32-bit (Version 6, 26 update in the list of programs), as well as an outdated version of 64-bit (Version 6, Update 13 instead of Version 6, update 26) in the list programs.  These work together.   I shouldn't have to download both, I have to, or I should.

    And one last comment.  I've been running for a few days now without any Java installed on my machine and do not encounter problems or errors due to the absence of the code.  I know that many of the Applications that I use, use javascript, which I think is a little different that the standard Java code.  So what's the problem here.  Have I just not met a Java-application or is there more parts left Java in the machine I don't know or Windows excuting part of the said code.  I need to Java, I don't.

    roninrr

    Yes, Java is bad enough to remove all its files when uninstall you it but things left to do no harm. You can remove them if you want.

    There is no relationship between Java and Javascript, with the exception of confusion as well as the fact that both languages look a bit.

    You can probably do without Java. Java has become one of the biggest goals for malware recently. I uninstalled Java of my computers a while back I found I was taking more time now know to use it. I was only access a Web site regularly used and find a substitute for it. I could leave uninstalled, and see if you hit what he really needs.

    If you decide to reinstall, the 32-bit version is all you need unless you use Internet Explorer 64-bit (which you shouldn't).

  • Error: the file is not a valid Java code file

    Hello

    IM new in the development of BB, so bad to describe my problem step by step:

    -First of all, had installed jdk-1_5_0_14-win, BlackBerry_JDE_4.6.0, j2sdk-1_4_2_18-win, Desktop manager 4.6

    -Open BB JDE, create a new workspace

    -Add a project HelloWorldDemo.jdp file (located in the sample folder)

    -Debug the application in the Simulator (9000-JDE) without any error

    -Construction of the project and generate the .axl and .cod files

    -Try to install this app (HelloWorldDemo.cod) in my device with error

    C:\Archivos programa\Research in Motion\BlackBerry JDE 4.6.0\samples\com\rim\samples\device\helloworlddemo>javaloader u load HelloWorldDemo.cod
    Charger Pocket RIM Wireless Java
    Copyright 2001 - 2007 Research In Motion Limited
    Connected
    HelloWorldDemo load error: the file is not a valid Java code file
    7832 bytes sent to ~ 15664 bps
    Disconnected

    -Also try to install the application with Desktop Manager and the .axl file, but show this message "a fatal error has occurred while updating your software to devices." Please try again ".

    My device is a Blackberry 8700

    Software: v4.1.0.351

    Help, please!

    Thank you!

    Thank you!! Problem solved.

  • How to simulate BlackBerry options/commands from java code?

    Hi friends,

    For wipe/erase of personal data, we have the following option on BlackBerry phone (model: 9930)
    Options of-> Security-> Security Wipe

    I want to give the same option in my BlackBerry App (e.g.. A button marked "clear data")
    How can I simulate the same functionality through java code

    Can someone please provide some help or provide a reference to the entire API

    Thank you

    Laughing out loud
    You can enter simulation (clicks, presses), and you can launch native applications, if you know their module name, but both approaches have their limitations.

    See http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html... or http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html... to see how to apply.

  • Integration of the java code BlackBerry with Phonegap.

    Hi all

    I don't know if I have a good question, as I'm new to development Phonegap, not knowing anything about it.

    I want to know how integrate us the BlackBerry with Phonegap code java code, in particular, how a screen be pushed using the code Phonegap? Give me a solution, thanq.

    Hello

    Getting started guides for cordova (on which is based the PhoneGap project) can be found here:

    http://docs.PhoneGap.com/en/2.4.0/guide_getting-started_blackberry_index.MD.html#getting%20Started%2...

    Here are the docs for the creation of plugins based on Java for BBOS (versions 5-7).

    http://docs.PhoneGap.com/en/2.4.0/guide_plugin-development_blackberry_index.MD.html#developing%20A%2...

    For most applications, there is no need to develop plugins with Java. Your screens should be based on HTML and JavaScript.

    Keep in mind the benefit of using cordova is to target multiple platforms (BBOS, 10 BlackBerry, iOS, android and others). You always need to install SDK BlackBerry WebWorks.

    I hope this helps.

  • Java code in the expression editor

    The Java tab in the expression editor makes me think it should be possible to write a bunch of lines of code java, somehow but no matter what I try it always refused. The java code only I got to work was create a set command, and then write the right side a

    var x = something;

    statement. Since there is no try/catch, if, while, instructions etc. in the java tab, should not be possible to use somehow? And if so, what can they be used in (quite apparently the game is bad)?

    I use IPCC 4.5 with Premium license and I am able to write java code inside the set command.

    The java code must be writing in brackets {}; for example

    {

    try {}

    int i = 0;

    int result = 0;

    for (i = 0; i<>

    result = result + i;

    }

    return the result;

    } catch (Exception ex) {}

    Returns - 1;

    }

    }

    Hope this helps.

    Stefano

  • How to see the public API java code (including police)

    Hello

    Excuse my noobishness, but I recently met {this} message and can't seem to find out how Mantaker (and other participants of the discussion) discovered the java code in the class of the police?

    Am I missing something? Is it possible for any public class?

    Please fill in my blanks of knowledge.

    Thank you.

    If you look at the post just above that you have linked to you will see that they used the javap command.  It's legal and it comes with the JDK.  Either way, you will notice that it does not give the complete code just the headers of the method and fields.

    For example, to get information, they passed the command line and navigate to the directory where your net_rim_api.jar file is.  Then type

    javap net.rim.device.api.ui.Font
    

    Of course, this assumes that the javap command is in your path.

  • Need information of Java code for services

    Hi Experts,

    Can you please give information about where I'll get the Java code for java api services.

    Example: For VisitorManager, where I'm going to get its details information.

    There are also many other api services, then where I will find its detail.

    Thank you

    Ravi

    Following links may help you.

    Sites API Java Docs - https://docs.oracle.com/cd/E29542_01/apirefs.1111/e39356/toc.htm

    Asset API Tutorial - https://docs.oracle.com/cd/E29542_01/doc.1111/e29634/asset_api_tutorial.htm#WBCSD2387

    REST API - https://docs.oracle.com/cd/E29542_01/doc.1111/e35835/wemrestresources.htm#WBCSR354

  • What is the problem with this single line of Java code in the software special approval BPEL code?

    Hello

    My java code does not build in jdev if I leave this line in java tissue BPEL code

    Criteria of SearchCriteria = new SearchCriteria (AttributeName.USER_LOGIN.getId (), une_chaine, SearchCriteria.Operator.EQUAL);

    With the help of Jdev 11.1.1.7.0

    oimclient is inside of the SCA-INF/lib, manifest says it is version 11.1.2.2.0

    Error message does not say much

    at com.collaxa.cube.lang.compiler.template.CubeProcessGenerator.compile(CubeProcessGenerator.java:313)

    at com.collaxa.cube.lang.compiler.template.CubeProcessGenerator.generate(CubeProcessGenerator.java:169)

    at com.collaxa.cube.lang.compiler.BPEL1Processor.transform(BPEL1Processor.java:257)

    at com.collaxa.cube.lang.compiler.BPEL1Processor.process(BPEL1Processor.java:161)

    at com.collaxa.cube.lang.compiler.CubeParserHelper.compile(CubeParserHelper.java:47)

    at oracle.fabric.bpel.bpelc.BPELComponentValidator.validate(BPELComponentValidator.java:40)

    at oracle.soa.scac.ValidateComposite.validateComponentTypeServicesReferences(ValidateComposite.java:1066)

    at oracle.soa.scac.ValidateComposite.doValidation0(ValidateComposite.java:514)

    at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:493)

    at oracle.soa.scac.ValidateComposite.run0(ValidateComposite.java:214)

    at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:195)

    at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:187)

    Do I need exactly the same version of jdev to oimclient?

    TIA

    Leo

    Well it seems to work when I remove all imports, even classes in java.util. as map, list, etc.

  • Can you call a java code or write a java code to clean or normalize the data in a Disqualification processor?

    Can you call a java code or write a java code to clean or normalize the data in a Disqualification processor?

    We're not your script:

    #! function : doit

    var st = new com.dq.SampleTest();

    function doit()
    {
      st.Inputs(5);
      output1 = st.result;
    }

  • How to create programably InputComoboxListOfValues in java code

    12.1.3 jdev

    I'm trying to dynamically create InputComoboxListOfValues in the java code as follows.

    RiLOV RichInputComboboxListOfValues = new RichInputComboboxListOfValues();
    riLOV.setLabel (label);
    riLOV.setId ("iclov" + ind);
    riLOV.setVisible (true);
    riLOV.setRendered (true);
    riLOV.setSimple (true);
    riLOV.setContentStyle("text-transform:uppercase;");
    riLOV.setValue (defaultValue);
    riLOV.setPopupTitle ("search dialog box");
    riLOV.setAutoSubmit (true);

    I also need to

    riLOV.addLaunchPopupListener (myLaunchPopupListener);

    riLOV.addReturnPopupListener (myReturnPopupListener);

    My question is how to build myLaunchPopupListener /myReturnPopupListener

    Thank you.

    riLOV.addLaunchPopupListener (myLaunchPopupListener);

    riLOV.addReturnPopupListener (myReturnPopupListener);

    Instead of addX() methods, you can use the setX() methods that use the MethodExpression as parameter.

    Example for MethodExpression: Blog in Java Evangelist John Yeary: JSF 2.x tip of the day: creation by programming MethodExpression EL

    But, af:inputListOfValues / af:inputComboboxListOfValues components require a very complex model to activate filtering etc so this can be very difficult to implement correctly if they are not supported by the link layer.

    From here you can download components done face ADF demo and see how this can be implemented: Application Development Framework downloads

    BTW,

    riLOV.setContentStyle("text-transform:uppercase;");

    Of course, you know that this only display value in uppercase on your page and does not convert the value in the data model?

    Dario

  • How to kill a process of the system of java code.

    Hi,


    i need to kill or remove windows system process like cmd.exe from java code.

    as detached from end process in task mgr.

    i tried below code but its not removed.

    is there a better way we can do this.

    killing a system process from java code will create any issues?


      
    public static void main(String[] args) throws Exception {

      
    String[] cmd = { "cmd.exe" };
      
    Process p = Runtime.getRuntime().exec(cmd);
       p
    .destroy();
      
    }


    any suggestions or ideas are really appreciated.

    Thank you.


    The utility 'tasklist' will give you the same basic information in the Task Manager. You can always capture that and find the line (including the PID) of your application.

    Use your favorite search engine and look for "windows get the pid using java. You will find LOTS of other posts for this same issue.

  • Read current user connected from java code VOImpl

    Hi experts,

    I use Jdev 12.1.3 and I would like to read the value of adf.context.securityContext.getUserName () in the java code of a VOImpl so I can pass it as a parameter to a PLSQL stored procedure.

    How can I do?

    Thank you very much
    Jose.

    You can use the code below:

    String currentUser store = ADFContext.getCurrent () .getSecurityContext () .getUserPrincipal () .getName ();

    Thank you

  • How to get the value on a model that is defined in the java code in email

    Hello

    I created a custom code and send email as well to custom component. I can send emails using the method:

    InternetFunctions.sendMailTo (EmailID, EmailTemplate, subject, cxt);

    But my problem is that I have to get a value in the model of "EmailTemplate" which are defined from java code. but I don't know how to get the value.

    I will highlight in the java code by using this code: binder.putLocal ("ErrorApproveRejectMsg", massegeBody);

    I'm trying to enhance the model using the code below, but not able to get.

    1 < $exec getValue ("#active", "ErrorApproveRejectMsg") $ >

    2 < $exec getValue ("#active", ErrorApproveRejectMsg) $ >

    3 < getValue ("ErrorApproveRejectMsg") $exec $ >

    4 < $exec getValue (ErrorApproveRejectMsg) $ >

    5 < getValue ("#local", ErrorApproveRejectMsg) $exec $ >

    6 < getValue ("#local", "ErrorApproveRejectMsg") $exec $ >

    7 < $ErrorApproveRejectMsg$ >

    8 < $exec ErrorApproveRejectMsg$ >

    Assuming that cxt will be your Service or execution context object

    You can do something like this

    DB. PutLocal ("ErrorApproveRejectMsg", "Error");

    cxt.setCachedObject ("DataBinder", db);

    PageMerger h = new PageMerger (db, cxt);

    cxt.setCachedObject ("PageMerger", h);

    InternetFunctions.sendMailTo (usersEmail, emailTemplate, emailSubject, cxt);

    where db is current databinder object, and you can put any variable custom in the workbook by using the putLocal method.

    Thank you

    Vikram

  • How to insert a new accessory through java code

    Hello world

    I need to add a new accessory through java code. I found the service EDIT_RENDITIONS in the add attachments page. But this service is not documented. Does anyone have an example how to add attachments?

    Thank you

    Martin

    Martin,

    Try the following code:

    final IdcClientManager clientManager = new IdcClientManager();

    Customer IdcClient;

    try {}

    client = clientManager.createClient (IDC_PROTOCOL + RIDC_SERVER + ":" + RIDC_PORT);

    final String username = 'sysadmin ';

    final DataBinder dataBinderReq = client.createBinder ();

    ServiceResponse severiceResponse = null;

    dataBinderReq.putLocal ("IdcService", "EDIT_RENDITIONS");

    dataBinderReq.putLocal ("a", '1560'); as integer

    dataBinderReq.putLocal ("dDocName", "DEV2_001509"); AsString

    dataBinderReq.putLocal ("renditionKeys", "addRendition0"); AsString

    dataBinderReq.putLocal ("addRendition0.name", "theFileName");

    dataBinderReq.putLocal ("addRendition0.description", "theFileDescription");

    dataBinderReq.putLocal ("addRendition0.action", "modify");

    final String fileName = "c:\\test.txt";

    final file = new File (fileName);

    final TransferFile tf = new TransferFile (queue);

    dataBinderReq.addFile ("addRendition0.file", tf); as bytes

    severiceResponse = client.sendRequest (new IdcContext ("username"), dataBinderReq);

    final DataBinder dataBinderResp = severiceResponse.getResponseAsBinder ();

    DataBinder resultado = severiceResponse.getResponseAsBinder ();

    System.out.println (dataBinderResp.ToString ());

    } catch (final IdcClientException e) {}

    System.out.println (e.getMessage ());

    e.printStackTrace (System.out);

    }

    Jonathan

    http://jonathanhult.com

Maybe you are looking for

  • Firefox won't allow refdesk as my home page, all other browsers ok

    Firefox has for years my browser and refdesk has been my homepage. yesterday morning that I registered a 404 message that refdesk is not found. I tried google and internet explore and both find refdesk without problem. I uninstalled and reinstalled f

  • iBooks author in a different version.

    I submitted one version of a book with many photos in the store in Dutch. It worked well.Now I duplicated the Dutch file and a new name and made an English version of this book. Everything works fine and every detail has changed for the good result,

  • Network/Server XP capabilities

    can I use xp as server and receive a signal 'Wireless' to connect to internet while retaining a ' Wireless ' private 'distinct '?

  • post a comment on youtube

    I tried to post my comment on a video clip on youtube, and as soon as I chose the post, he said: error try again.  Can you please help me and let me know what I'm doing wrong and what I need to do?

  • Renovated E260v2 guard randomly turn on/off

    I had an e260v2 refurbished from TigerDirect (it has an "R" embossed on the back) today, and I turned it on after the battery is about half full. Use the tuner radio for a while (5 min. or more) and all of a sudden it turned off. I pressed the power