How to implement Servlet/JSP in PAR to be used standalone (not as iView)

Hi everyone!
I want to develop a Servlet (or a JSP) that is part of my PAR with the main iView because it will be called in an iframe within that iView.
1. It has to be possible to call it directly from the Browser (iframe).
2. The output has to be exactly what i generate in it, meaning there must not be added anything to the output by the portal.
3. Because it uses the same classes that the iView itself is made of, I think it has to be part of the same PAR file.
4. Creating the servlet in an EAR and then copying (duplicating) the class files from the iView into it or putting them into their own jar and copying that into the PAR and the EAR is not really an option (for maintenance and development reasons)
What I tried so far:
-- implement the functions in a JSP which I put into dist/jsp => JSP is accessible from the browser but importing classes from the src.core is not possible (neither from default package, nor from any other named package in there)
-- implement in a JSP which I put into dist/PORTAL_INF/pagelet => JSP is not accessible from the browser (tried with the URL from IResourceInformation), so I don't know whether the imports would work
-- implement in a Servlet class in the src.core => don't know how to access that from the browser or how to configure it to be accessible or if this is possible at all
Maybe I am looking at the whole thing from the wrong side and the solution is something completely different from what I thought.
I have looked for information on this for nearly 8 hours now but did not find anything that really helped me. So any help is really appreciated.
Kind regards, Roland

First, thanks for the links.
But
3.      Put the compiled servlet class in the private lib or classes folder.
seems not very pratical to me as you always have an additional manual step to do after each and every little change and therefore another source for possible errors. Also you have to switch perspectives in Developer Studio to do the copying. Isn't there a way to use the already existing class files from the iView?
Another question away from that: How do I access such a servlet via the web browser? What is the URL to it?
Quite trivial, but didn't find information on that, too.
Thanks anyway, Roland

Similar Messages

  • How to run servlet,jsp in eclipse software

    can any one tell me how to run servlet ,jsp in eclipse
    and how to start tomcat server in eclipse
    reply me
    regards
    saravana

    Can anybody help me as I wanted to know how to run servlet,jsp in eclipse software...
    If somebody can forward me the screenshots than it would be of great help....
    Thanks

  • How to run servlet,jsp in eclipseand to start tomcat in eclipse

    hi
    i want to know how to run servlet and jsp in eclipse 3.0
    and to start tomcat server in same.
    please reply me the steps involved indetail.
    regards
    saravanakumar

    Find Lomboz J2EE plugin and a tutorial of how to use it :)

  • How to implement Master-Detail Search in TopLink without using DataControl

    Hi,
    I am using TopLink and EJB in our requirement. But we are not creating any data controls. Without data controls how to implement master detail search using TopLink and EJB. I did search for a single table. It is working fine. The way i implented is as follows.
    1) Taking search parameter from UI and passing it to A delegator class's method.
    2) Delegator class's method calls the EJB's NamedQuery which i already created using expression builder.
    3) EJB executes the NamedQuery with the parameter we are passing. And it returns the results back to UI.
    But as i am new to TopLink, can anyone tell me the procedure to implement Master - Detail search. Here we need to search based on Master table's column.
    Waiting for the replies regarding this.
    Thanks & Regards,
    Suresh Kethireddy

    Hi,
    I did it successfully. Following is the code.
    Session session = getSessionFactory().acquireSession();
    UnitOfWork uow = session.acquireUnitOfWork();
    ReadAllQuery raq = new ReadAllQuery();
    Dept d = new Dept();
    d.setLoc(loc);
    raq.setExampleObject(d);
    List<Dept> res=(List<Dept>)uow.executeQuery(raq);
    for(int i=0; i<res.size();i++){
    System.out.println("Dept DeptNo ---"+res.get(i).getDeptno());
    System.out.println("Dept DeptName ---"+res.get(i).getDname());
    System.out.println("Dept Location ---"+res.get(i).getLoc());
    List<Emp> eRes=res.get(i).getEmpCollection();
    for(int j=0; j<eRes.size();j++){
    System.out.println(" Emp No ---"+eRes.get(j).getEmpno());
    System.out.println(" Emp Name ---"+eRes.get(j).getEname());
    System.out.println("Emp HireDate ---"+eRes.get(j).getHiredate());
    System.out.println(" Emp Job ---"+eRes.get(j).getJob());
    System.out.println(" Emp Mgr ---"+eRes.get(j).getMgr());
    System.out.println(" Emp Sal ---"+eRes.get(j).getSal());
    But now my question is, i want to search by providing Dept param as well Emp(Which is child table) param also. Is it possible?
    I tried in 2 ways like this.
    1) Emp emp = new Emp();
    emp.setEname(eName);
    dept.addEmp(emp);
    raq.setExampleObject(dept);
    2) Emp e = new Emp();
    e.setEname("ADAMS");
    List<Emp> list = new ArrayList();
    list.add(e);
    d.setEmpCollection(list);
    raq.setExampleObject(d);
    But in both cases i failed to search based on the values i am passing to Emp.
    Is there any other way to achieve my requirement?
    Any help on this is great.
    Thanks & Regards,
    Suresh K

  • How to Implement SSL with Oracle Applications R12 without using Load Balanc

    How to Implement SSL with Oracle Applications R12.1.3 without using Load Balancer

    Please refer to (Enabling SSL in Release 12 [ID 376700.1]).
    Thanks,
    Hussein

  • How can i tell if Native code is being used or not?

    Hi,
    I imported a jar file called dnsjava, and set my system property to use this so that my getHostName method doesnt use native code to get the host name. My question is, how can i know for sure that it is using the code from the jar file dnsjava? I used a debugger, and it seemed like it was getting it from java.net.InetAddress instead. Please help!
    import java.net.InetAddress;
    public class Test {
         public static void main(String[] args) throws Exception {
              System.setProperty("sun.net.spi.nameservice.provider.1","dns,dnsjava");
              InetAddress addr = InetAddress.getByName("64.58.76.179");
              String name = addr.getHostName();
              System.out.println("name = " + name);
    }

    What makes you think that you can set that property in the code and it will work?
    A number of properties can only be set from the command line. They will not work when set in code.
    I am not sure that any sun type properties will work when set in code.

  • How to run servlets, jsp, ejb..?

    dear friends,
    i will be happy if anyone suggest how to run jsp, servlets, ejb. and also do give the proper server to run these. it will be helpful if u give the URL's . An early reply is helpful. thanx and bye for now. my email id is [email protected]

    this is the site where i learn jsp from :
    http://www.jsptut.com/

  • How to implement hierarchical structure of managers and reportees using jdeveloper adf

    I want to display hierarchical structure(which can be expanded and compressed) with 3 columns(Employeeid, fist Name,lastname) of managers and his reportees on selecting a top level manager.
    In this i'm going to use programmatic view objects.
    I have employees table.
    Here is my detailed requirement:
    On selecting a user from drop down list, i want to display the list of users reporting to him.
    From the displayed list on selecting a manager, list of users reporting to him has to be displayed in a tree format with the correspoding just being listed below the current selected manager
    Example :
    Top Manger  has been selected from dropdown and clicked submit.
    Output(a table as mentioned below):
    Manager1
    Manager2
    NonManager1
    Manger 3
    On clicking manager1,
    output:
    Manger 1
      Manger11
      Manasger12
      Nonmanager11
    Manger 2
    NonManger1
    Manger3
    on clicking manager1 again, tree has to be compressed and the output has to be just the same as first output.
    Please help me on this by sharing information or any references on how can i achieve this implementation using Jdeveloper adf concepts.
    Will be waiting for the inputs.
    Thank You,
    Dev

    Obviously, you can only display one picture.  So then the question becomes which picture to show.  Therefore, you will have to create some sort of preference of one pattern over another.
    I would use a FOR loop so that you can loop through your available patters and their possible results.  Use the Conditional Terminal on the FOR loop so that you can stop the loop on the first match.  Then you just wire up the selected value for the ring outside of the loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to implement a delay accurately in 44.53ms using PXI6602

    How can I implement a delay of 44.532 ms accurately using PXI 6602?

    Hi KKLEE,
    I’m assuming you mean for generation? Unfortunately the
    Start Delay property in the DAQmx Trigger Property Node is not available for
    the 6602. Therefore, there isn’t any deterministic way for you to delay the
    counter generation. You can, however, still make an approximate delay by
    creating a dummy analog input task with a simulated device, and wiring the
    error lines appropriately. The screen capture below shows how this could be
    done.
    You can create a simulated device in the Measurement &
    Automation Explorer by right clicking on Devices
    and Interfaces and then selecting NI-DAQmx
    Simulated Device from the pop-up window. Choose an M Series device, such as
    the PCI-6251.
    Please post if you have any questions. Have a great day!
    Message Edited by ryan_d on 11-28-2007 06:16 PM
    Message Edited by ryan_d on 11-28-2007 06:18 PM
    Message Edited by ryan_d on 11-28-2007 06:18 PM
    Ryan D.
    District Sales Manager for Boston & Northern New England
    National Instruments
    Attachments:
    trigger1.png ‏9 KB

  • How to implement linux's "more" command's function use java?

    In linux, we can type as following:
    more [filename]
    we can view the file's content ,page up, page down etc.
    can java implement such more command's function?

    the j2se libraries don't have an abstraction for getting information like this - so java is effectively unaware of a console
    there is an enhancement request for this - i've not heard any mention of this getting into Tiger (??)
    http://developer.java.sun.com/developer/bugParade/bugs/4050435.html
    when i had a go at this
    http://forum.java.sun.com/thread.jsp?forum=31&thread=408133
    and kind of relevent
    http://forum.java.sun.com/thread.jsp?forum=54&thread=445190
    asjf

  • How to implement line selectability for a table control using table Wizard?

    Hello SDN Community,
    I have created a table control using the Table Wizard.  I found my exact question in this forum, but unfortunately it had not been andsered.  While I cannot paste a screen-print into this plane-text area, here are the steps I followed...
    1) SE51
    2) Create new screen 0100
    3) Click Layout button
    4) Clidk Table Control (with Wizard) and draw box on canvas.
    5) Step is "Start" - click Continue
    6) Step is "Name of Table Control" - provided name
    7) Step is "Table Name" - provided name of dictionary table (AUFK)
    8) Step is "Definition of Columns" - selected order numver and order text
    9) Step is "Table Control Attributes" - Line Selectability is in display mode - cannot set it.
    I would like to have a selectability column for my table.  Would appreciate any insight into how to do this.
    Thank you,
    Dean Atteberry.

    This is a puzzling...
    For the table control wizard, in the Table Control Attributes step, I was able to get line selectability to open up by declaring a char01 data element at the beginning of my type.
    The puzzling is in regards to the "Selection col. fld" entry field.
    If I leave it blank and try to go to the next step, I get message "Enter the name of the selection column if you are using a program table"
    So it looked like it wanted to know the name of my selection column.  So I type in "CHAR1".  and got the message "The field "CHAR1" for the selection column is already contained in the table."
    Hmmmmm.... don't understand............
    Dean Atteberry.

  • How to Implement 30 days Range Partitioning with Date column. Not Interval

    Hi,
    I am using the db:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit
    Current table structure is:
    CREATE TABLE A
    a NUMBER,
    CreationDate DATE
    PARTITION BY RANGE (CreationDate)
    INTERVAL ( NUMTODSINTERVAL (30, 'DAY') )
    (PARTITION P_FIRST
    VALUES LESS THAN (TIMESTAMP ' 2001-01-01 00:00:00'))
    How can I define virtual column based partitioning with RANGE partitioning without using INTERVAL partitioning.
    And that is with Intervals of 30 days.
    For monthly I am trying as
    CREATE TABLE A
    a NUMBER,
    CreationDate DATE,
    monthly_interval date as (to_char(CreationDate,'MM-YYYY')) VIRTUAL
    PARTITION BY RANGE (monthly_interval)
    partition p_AUG12 values less than (to_date('08-2012','mm-yyyy')),
    partition p_SEP12 values less than (to_date('09-2012','mm-yyyy')),
    partition p_OCT12 values less than (to_date('10-2012','mm-yyyy'))
    Enable ROw Movement
    BUT CAN'T INSERT the data even for that:
    Insert into a (a, CreationDate)
    Values (1, '12-10-2012')
    Insert into a (a, CreationDate)
    Values (1, '12-10-2012')
    Please suggest..

    Hi rp,
    Interval Partitioned to Range. Created Daily Partitions from Monthly Part. got complicated so I am posting here.
    Basically,
    I know Interval Partitioning is a kind of Range partitioning. But explicitly for Interval Partitioned tables XML Indexes are not allowed as discussed here:
    XMLIndexes on an Interval Partitioned Table??
    I can do monthly partitions as :
    CREATE TABLE A
    a NUMBER,
    CreationDate DATE,
    monthly_interval varchar2(8) as (to_char(CreationDate,'MM-YYYY')) VIRTUAL
    PARTITION BY RANGE (monthly_interval)
    partition p_AUG12 values less than ('09-2012'),
    partition p_SEP12 values less than ('10-2012'),
    partition p_OCT12 values less than ('11-2012')
    ) Enable ROw Movement
    Insert into a (a, CreationDate)
    Values (1, '12-SEP-2012')
    Insert into a (a, CreationDate)
    Values (1, '14-SEP-2012')
    Select * from A partition (p_SEP12)
    Select * from A partition (p_AUG12)
    Select * from A partition (p_OCT12)
    Can we do it for 30 days partitions, instead of the monthly partitions. ANY suggestions..
    Thanks..

  • How To... Report in Alt. UOM using 9AMATNR not 0MATERIAL

    Hi,
    I have successfully implemented the How To... Paper on alternate UOM to provide reporting in alternate UOM in Bex. This functionality is designed for 0MATERIAL.
    Is there a way to port it to infoobject 9AMATNR. 9AMATNR is used in SCM/APO and not 0MATERIAL.
    Has anyone tried this?
    Thanks for your inputs.

    well my reporting issue is to compare sales history Vs forcast generated from SCM, So the users want to report on Prod Hier level than Material, but they also want to be able to report data on alternate unit so their expectaion is when they run the report, they need a popup for Alt UOM selection but they want data to be summarized on prod hier level ..... and here I am trying to give them that. Anyways...I will go ahead and implement it, but I have already told them that their requirement is not achievable and they will see a lot of rows in the report
    Thanks
    Ashwin

  • How do i make sure my itunes credit is used and not my bank account before i make a purchase on ibooks, as it still asks me for my bankdetails/security code..?

    I've just redeemed an itunes voucher on ibooks, but everytime i go to buy a book it still asks me for my bank details...
    How can i be sure money wont be taken out mu accountinstead of the itunes credit..?
    Is this normal.? I have yet to buy something as i dont want it charged to my account..! Not wen i have so much itunes credit.
    Any help.. Thanks..

    Hello Saethwyr99,
    ''Do I just do it by copying the places.sqlite file within that XP profile over into my USB flash drive, then replacing the places.sqlite in the Winodws 7 profile with the one from the other one?''
    you are correct : [https://support.mozilla.org/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile#w_your-important-data-and-their-files Your important data and their files]
    ''Also, random sites in every month scattered all over the list of URLs will just disappear, and random sites that I've only visited in the past couple days will insert themselves randomly into much older months of history, which makes it hard to figure out the URLs I've seen, this last one seems like a common problem from what I've read, and all of these problems seem to be slowly creeping into my Windows 7 as well when they were originally on only my XP.''
    from Firefox 4 and above versions there is not a time limit for the history.
    Firefox determines automatically how many pages can be kept '''without affecting the performance.'''
    ''as well as view all the old expired and/or manually deleted history on my Windows 7''
    i think this in not possible
    ''If I can only keep all my history through installing an add-on, a link to a relevant legal add-on that'll work well on both operating systems would be appreciated.''
    check the next add-on : [https://addons.mozilla.org/en-us/firefox/addon/expire-history-by-days/ Expire history by days]
    thank you

  • How to get full screen width and height  when using CustomItem not canvas ?

    hi..
    I have to append one Textfield and a CustomItem ( as canvas) for painting on a single form.
    I have to draw a rectangle in CustomItem in full Screen width of mobile .
    So I have to know the screen width of mobile for drawing a rectangle.
    Please Suggest me. how can I do that ?
    Thanks

    Did you check javax.microedition.lcdui.Form.getWidth() and javax.microedition.lcdui.Form.getHeight() methods?
    Atul

Maybe you are looking for