Urgent Pls - Using BC4J Intermedia tags

Hi,
I am using BC4J Intermedia tag EmbedImage to display images stored in Databases. When I try to display I get only a blank picture equivalent to the size of the image and not the image itself. The type of the image is JPG. The Image datatype in the database is ORDSYS.ORDIMAGE.
Is it to do something with the project settings? I am using Oracle 9.0.3 version of JDeveloper.
Any help is appreciated.
Thanks
Priya

Right, that's because the oracle.ord.html.URLBuilder class builds the URL for the images by using the current JSP directory level.
For example: if your JSP page that uses <jbo:EmbedImage> is located under http://hostname.com/contextRoot/mydir/. Then the generated URL for the image will be http://hostname.com/contextRoot/mydir/ordDeliverMedia?....
But in web.xml, the <url-pattern> element defines the url pattern value, which by default is "/ordDeliverMedia". So the media delivery servlet only handles the requests like these: http://hostname.com/contextRoot/ordDeliverMedia?...
So, in order to make your sample work, you need to modify the web.xml in your project. There are two alternatives:
1. Change the <url-pattern> element to this:
<url-pattern>/kerfisumsjon/ordDeliverMedia</url-pattern>
This will correctly handle the JSPs located under kerfisumsjon.
Or
2. Change the <url-pattern> element to this:
<url-pattern>*ordDeliverMedia</url-pattern>
This will handle any requests for ordDeliverMedia regardless of their directory location.
Hope this solves your problem.
Richard

Similar Messages

  • Creating rows Using BC4J Data Tags

    Hi!
    I want to create rows using BC4J data tags.
    I have 2 jsp pages: one containig forms and one to insert data.
    Is it possible to insert new rows into 2 or more tables?
    How can I differ the attributes to one table and to another?
    How can I do this?
    Thanks!

    The path is:
    Select "File/New" in the menu.
    Select "BC4J JSP" in the gallery.
    Select "Browse & Edit Form" wizard.
    This is in JDeveloper 9.0.2.
    Charles.

  • HOW TO: Create a JSP Edit Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create row edit/submit JSP pages. Here is the link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Edit_Form.html

    Are you using Java 1.4.* ?
    Use JFormattedTextField.
    import javax.swing.*;
    import java.text.*;
    import java.awt.*;
    import java.util.*;
    public class DateExample
        public static void main( String [] args )
          // Here's what you're interested in...
          DateFormat dateFormat = new SimpleDateFormat( "MM/dd/yyyy" );
          JFormattedTextField field = new JFormattedTextField( dateFormat );
          field.setColumns( 11 );
          field.setText( dateFormat.format(new Date()) );
          JPanel panel = new JPanel();
          panel.add( field );
          panel.add( new JButton( "Hey" ) );
          JFrame f = new JFrame();
          f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          f.getContentPane().add( panel );
          f.pack();
          f.setVisible( true );
    }It also works with other types of Format objects (ex. Currency, Decimal, etc.)

  • HOW TO: Create a JSP Insert Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create insert/submit JSP pages. Here is a link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Insert_Form.html

    You can loop throgh query records whit an implicit cursor (which automatically manages the open cursor, fetch and next record):
      for rec in (select intime,outtime,barcode,attend_date from dail_att; )
      loop
           t_in :=rec.intime;
           t_out :=rec.outtime;
           t_code :=rec.barcode;
           t_date := attend_date;
             PUT YOUR CODE HERE ... (if ..then... elsif... logic)
             you can avoid setting variables 'cause you can directly use the implicit cursor variables: rec.intime etc.
      end loop;
    END;Anyway, I suggest you to check the where condition of your block ... because if not all data are retrieved there should be a problem in your query ... so even the cursor (if based on very same query) will return less data than expected.
    Luca

  • Using bc4j jbo tags

    Hot to get the id of a topic added in previous jsp page using bc4j jbo tags

    Do you want to use the value in a Java variable? If so then here's what you do:
    1) Inside your rowset iterate tag, use the <jbo:Row> tag and set action="active". It will look like this:
    <jbo:Row id="rowActive" datasource="ds" action="active" ></jbo:Row>
    2) In script, you can access the attribute you want by calling rowActive.getAttribute(); ... One thing to note is that this returns an Object. You will need to type cast it before assignment. For example, say you are retrieving column Test of type Number...
    <%
    oracle.jbo.domain.Number tempNumber;
    tempNumber = (oracle.jbo.domain.Number)rowActive.getAttribute("Test");
    %>
    Hope that helped!

  • Q? on best practices/techniques using BC4J/Struts

    I have a jsp page that shows a bunch of detail records. Next to each detail record is an EDIT link.
    When the user clicks on the edit link I would like to populate a form on the same jsp page with existing values from that detail record so that the user can update the values.
    I am using struts/bc4j.
    What would be the best way to accomplish this?
    I was thinking if somehow I could get all the values of the clicked row in my controller and assign them to a form, then struts would take care of populating them again on the JSP.
    otherwise i guess the other way is to use bc4j data tags.
    Thanks in advance...

    Thanks for the pointer but it seems to be asking the same questions I am.  The only PDF that I could get was the one from quest.  Yours from LuLu I kept getting DB errors on the LuLu site. 
    Also, 3rd party options are currently out of the question.   I have done reorgs on R3 systems but since they don't have partitions and sub partitions and such there didn't seem to be as much to worry about. 
    I don't even want to mess with any BW R3 internal tables and that is why I would like to go from ODSD->Temp->ODSD.  I can get the downtime to do it too.
    Thanks for your help though the issue still sin't solved. And I'd like to see your book sometime.
    Vince

  • How can i use Oracle interMedia with Oracle forms  Urgent

    Hi all,
    I have a requirment from one of our client that they want to manage a large amount of Images,by seeing the documents about the oracle interMedia we got some idea to manage this images ,but the client is alredy having a software which is been developed by Oracle forms9i and we need to develope this using oracle forms9i can anyone give us an idea that how can we make use of InterMedia through Oracle forms9i ....
    Thanks in advance....

    I will ask, but it would be good to ask in the Oracle Forms forum as well. Many tools recognize the interMedia columns and automatically handle them since they now can say "Oh, this is an image column, I know how to handle this". I am not sure where forms is in this regard.

  • Urgent: Unable to run JSP pages(using JRun Custom Tags) in Weblogic 5.1

    Hi,
    I am using JRun Custom tags to bulid JSP pages.
    Could not run the jsp page on Weblogic 5.1.
    I could run the same on JRun Server but not on Weblogic?.
    Had placed JRuntags.jar in the web_inf directory.
    What/where i need to update in properties file?.
    Please reply..
    Best Wishes.
    Satish k.Yalamaddi.

    javax.servlet.ServletException: com/sun/tools/javac/Main (Unsupported major.minor version 49.0)
    This is your problem either your tomcat or eclipse is pointing to a wrong jre
    here the problem is you are trying to run a code that was compiled using j2sdk1.5 in j2sdk1.4

  • How to use struts Logic tags in weblogic8.1

    hi
              i have used jakarta struts in JDeveloper there i used logic tags
              but the same i have to use in weblogic8.1 ,how should i use it
              i am new to weblogic platform
              it is very urgent
              please

    Hi harish,
              Procedure for using a Struts Tag Libraries in weblogic 8.1 :
              â€¢Copy the tag lib jar files under WEB-INF/lib ( if tag handler supplied as
              classes without package a jar file then we need to copy the classes
              under WEB_INF/classes.
              â€¢ Copy the tld files files under WEB-INF or create a directory under
              WEB-INF and copy tld files under this directory.
              â€¢ We need to give the information about the tag libraries in web.xml by
              adding the following lines to it as,
              <taglib>
              <taglib-uri>bean</taglib-uri>
              <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>html</taglib-uri>
              <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>logic</taglib-uri>
              <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
              </taglib>
              To use tags in jsp file we need to add taglib directive as ,
              <%@ taglib uri="logic" prefix=“logic"%>
              <%@ taglib uri="html" prefix=“html"%>
              <%@ taglib uri="bean" prefix=“bean"%>
              Every tag can support zero or more number of attributes and a tag may or
              may not support body content
              Every Tag Library Uniquely identified by uri defined in web.xml.
              we can use the tags in jsp according to the tags and attributes which are defined in *.tld files.
              if we look at .tld files we can find several tags and its attributes.
              note :any jar files that are related to struts framework ,place under the lib directory of the webapplication.
              ----- Anilkumar kari

  • Routine in Bex - urgent pls.

    I have 2 columns A and B in the report:
    A     B     C
    1234     1234     1234     
    5903     0     5903
    0     3287     3287
    I want to get the column C.
    So, the condition for the column C would be :
    if A<>0 and B <>0 then A
    else if A==0 then B
    else if B==0 then A
    I heared that this can be done by routines . I need the code to do this . Also let me know where to put the code.
    This is urgent pls.
    Vaishali

    Hi,
    No need to write coding.....directly u can get these by unsing formula as told in the above forum....there u get all these conditions in Boolean operators. so just make use of them..
    Thanks & Regards

  • 9i;JSP; BC4J Data Tags...

    Hi,
    What's different between these two tags in BC4J Data Tags pallet:
    <jbo:InputText> & <jbo:InputRender>

    Hello,
    Here is the difference (from the online documentation)
    <jbo: InputText> Inserts a text-input field form element into
    your page.
    JSP Syntax <jbo:InputText
    datasource="datasourceId" dataitem="attributename"
    [ cols=numberCharactersWide ]/>
    Examples
    Order Id:<jbo:InputText datasource="Orders" dataitem="Id" />
    Description The input render converts all values to a String for
    storage in the database.
    <jbo: InputRender>
    Inserts a input form element that allows user to edit data of
    all types, including complex object types.
    JSP Syntax
    <jbo:InputRender
    datasource="datasourceId"
    dataitem="attributename"/>
    Examples
    <form enctype="multipart/form-data"
    NAME="iForm" METHOD="POST"
    ACTION="Submit_AddImage.jsp" >
    Image Id:<jbo:InputRender datasource="ds1" dataitem="Id" />
    Image File:<jbo:InputRender datasource="ds1"
    dataitem="Image" /><input type="submit" /> </form>
    Description
    Input form uses a field render specific to the object type.
    Hope this helps. You can search on the online documentation for
    description about this and other components.
    Thanks,
    -Kishore
    JDev Team

  • Its urgent pls help me .

    how can i call a portal from webdynpro application
    my requirment is
    i was created webdynpro application.
    in that i was created one view . in that i was created one button (go).
    if i click that button i want move some other portal.
    how can i acchive pls help me.
    its urgent.
    pls send any example programe
    Message was edited by:
            madipadiga nagaraju
    Message was edited by:
            madipadiga nagaraju

    hi,
    there is no direct tcode for going to webdynpro component/interfaces in ecc 6.0.
    but u have se58 in ecc 5.0,as webdynpro convertor.u give ur program name and click web dynpro convertor button then it takes u to se80 .but this wda(webdynpro abap) component comes as in application tree hierarchy .
    i can say in wda component refers a class .if u select webdynpro component/interface,it ask u to create a class or interface.
    after that it automatically generate component controller(it is also a class),
    interface view and windows.all these 3 are classes.for every window one interface view will be created.ie.. window is internal visible where as interface view is external visible.
    u create view and embed these views in windows.by going to the window layout,right click on the window name and click embed view.u can enbed as many view as u wish.in order to navigate from one view to other view ,click  "create navigation" by right clicking the view plugs.
    by default windows and view have inbound plugs.this is literally a event of that class.
    if u want to navigate from view1 to view2 ,create outbound plug for view1,the click outbound plug of view1 and right click the click create navigation the select inbound plug of view2.
    then create a application .this is simillar of creating an object.
    click on this object and test .this will open in browser.
    for deploying u have use "sap webdynpro iview".

  • Telnet connection---urgent pls

    each time i try to telnet using my LAPTOP.I get command not recognised.can somebody help me out now.Other PC works except mine.This is very urgent pls.

    Download Putty
    Search on google " Putty ".... using putty telnet.
    You can open Hyperterminal and choose TCP/IP option instead of COM1.
    Click on OK
    You will telnet into device.
    Putty use is very good very secure.
    Regards,
    Dharmesh Purohit

  • Use BC4J inside servlets

    Hi,
    This may be a dumb question but I'm new to JDeveloper. I created my Business Components and can use it inseide applets and JSP's - but ich couldnt find a way to use it (via wizzard) inside a servlet. Could anybody give me a tip
    TIA
    Oliver
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Roberts ([email protected]):
    I would like to use the functionality of bc4j data tags inside servlets.
    My aim is to do code intensive operations inside a servlet and forward the results, if necessary, to a JSP page.
    The most convenient way of accessing data in BC4J are the JSP data tags. I was wondering if there is a way of instantiating them as normal Java Classes in a servlet, and using class methods to perform the database update operations that I want?<HR></BLOCKQUOTE>
    null

  • Building Offline Mobile Web Applications Using BC4J: A Tutorial

    i try "building Offline Mobile Web Applications Using BC4J: A Tutorial":according with
    http://download-uk.oracle.com/docs/cd/B14156_01/doc/B13788/html/nvbc4jtu.htm
    I've problem on step:13.3 Packaging the JSP Application,in the next step on :6
    Under the Snapshots section, click "Import...". You can now connect to the Oracle Database by providing the following values in the "Connect to Database" dialog.
    Table 13-8 lists values that you must specify in the Connect to Database dialog.
    i enter jdbc:oracle:thin:@192.168.100.10:1521:mag,
    where mag is sid.And Ok,writing Error:similar...
    make sure jdbc driver...in the classpath.
    Thanks.

    You could turn on debugging for your EJB's. Add the following tag to your OC4J start options:
    -Dejb.debug=true.
    Please also check the following logs:
    - $OH\application-deployments\<appName>\OC4J_Namedefault_island_1\application.log
    - the opmn logs for your OC4J instance
    Furthermore you can add some Sys.out statements to your code to see where the problem lies.
    Hope this helps.
    Deepak

Maybe you are looking for

  • Adding html to messages I send

    I use Macmail and want to be able to include the link to my website in my signature. I don't want it to say http://mydomain.com...I just want it to appear as a clickable link. Is that possible in Macmail? I've tried a few things but thus far, none of

  • When I download an apin downloads and it's just a textp, I open it box with a bunch of sill chinese looking gibberish. How do I utilize the app?

    When I download an app, I open it up in downloads and it's just a box with a bunch of useless chinese looking text. What am I doing wrong. Any help would be appreciated 

  • How to avoid JWS launch popups?

    When I start my JWS application I get 2 popups. First a Java logo on orange background and then a Javaws window stating which application its launching. If I start my application with "-Xnosplash" then the java logo dosent show but the second popup s

  • Upconvertion from labview 5.1 to 2012 - (A)

    Could anyone please upconvert this softwares from Labview 5.1 to a version which can be opened on Labview 2012? I would be really grateful. I'll have to post another codes on extra messages, as I can't attach all of them at once due to the forum limi

  • Syntax error in ora sid user .profile

    Hello all, I am getting the following error whenever I su to the ORA<SID> user in AIX 5.3 .profile[37]: 0403-057 Syntax error: `"' is not matched. @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ind/ind/SAPSRC.SH#6 $ SAP necessary to get hostname