Passing cursor record values to procedures - looking for advice

I frequently use cursors in my programs and need to pass the values from said cursor around in the program to other procedures/functions.  I am looking for advice on the best or recommended way of doing this.
Currently the majority of my programs do something like this:
CREATE OR REPLACE PACKAGE BODY some_pkg AS
     CURSOR some_cursor IS
          SELECT t.col1,
                           t.col2,
                          t.col3,
               FROM some_table t;
PROCEDURE sub_proc
     (p_cursor               IN      some_cursor%ROWTYPE)
IS
BEGIN
     dbms_output.put_line(p_cursor.col1);
END sub_proc;
PROCEDURE main_process
IS
     l_cursor          some_cursor%ROWTYPE;
BEGIN
     FOR l_cursor IN some_cursor LOOP
          sub_proc(l_cursor);
     END LOOP;
END main_process;
END some_pkg;
Basically I create the cursor as global so I can use it's %ROWTYPE as a parameter datatype in my procedures. 
I understand there are other options such as using a defined record type, or ref cursors, but I'm not totally clear on how ref cursors would help me, I don't really understand them well.
Can anyone provide some feedback on how I currently handle this situation vs. the alternatives?
Thanks

I am not sure what you need to do.
You can base records on cursors or tables using the %ROWTYPE operator.
Cursors can be defined in the package header and used elsewhere by using normal cursor functionality (untesed)
create or replace package my_package as
  cursor my_cursor is
    select *
      from dual;
  my_procedure;
end my_package;
create or replace package body my_package as
  procedure my_procedure is
  my_record my_package.my_cursor%rowtype;
  begin
    for r in my_package.my_cursor loop
      my_record := r;
    end;
  end my_procedure;
end my_package;
  This can allow you to define the cursor in one place and reference it elsewhere.
Reference cursors are pointers to result sets.  They reference actual datasets and can be passed between routines if defined in package headers.  There is a little more overhead using reference cursors but they support dynamic sql if needed (it usually isn't). and you MUST carefully coordinate FETCH commands to receive the values the cursor is selecting (this is harder than it looks)(untested)
create or replace package my_package as
  type my_refcur_type is sys_refcursor;
  my_procedure;
end my_package;
create or replace package body my_package as
  procedure my_procedure(p_refcur out my_package.my_refcur_type) is
  begin
    open p_refcur for 'select * from dual';
end my_package;
--elsewhere
my_package.my_procedure(my_cursor);
fetch my_cursor into v_dummy;
Hope this helps

Similar Messages

  • Can be passed Formula Column value to Procedure/Function?

    Below cf_value is return after some calculation by using main query.
    Can be directly passed formula column value to procedure without assinged to placeorder?
    as below..
    f_convert(:cf_value,new_value);
    My Procedure is...
    PROCEDURE f_convert( val1 in number,val2 in out number) IS
    BEGIN
    val2 := val1 * 100;
    END;
    If anyone knows pls reply me....

    Actually, if there is any other calculations there (In Proceudre)
    Can I used is as below??
    PROCEDURE f_convert( val1 in number,val2 in out number) IS
    BEGIN
    val2 := val1 * 100;
    return (val2);
    END;
    ----A procedure cannot return a value, the return clause in my previous post was part of the function for formula column.
    Suppose you have a formula column say CF_2 then the function for it will be as:
    function cf_2formula return number
    is
    val1 number;
    val2 number;
    begin
    val2 := :cf_1 * 100; -- or val2 := val1 * 100 --parameters not allowed in formula column function
    -- All the other code that you need inclusive of calling function, procedure as in any PL/SQL block can be placed
    return (val2);
    end;So any other calculation can be used in the formula column function

  • How to pass apex item value into custom xml for chart or guage?

    Re-opening the old thread : Re: How to pass apex item value into custom xml for chart or guage?
    Which was not answered.
    Roel - Thanks. Its working - but in a semi quotes in the custom XML
    <pointers>
    <pointer value= '&P5_RUNNING_TOTAL.'
    <label enabled="true">
    <position placement_mode="ByPoint" x="50" y="15" />
    <format>{%Value}{numDecimals:1}</format>
    <background enabled="false" />
    </label>
    </pointer>
    </pointers>This question was helpful for us to resolving one recent thread : AnyChart - set Dial axis intervals dynamically?
    (Re: AnyChart - set Dial axis intervals dynamically?
    Edited by: P.Ranish on Dec 13, 2012 6:23 AM

    P.Ranish wrote:
    Is there any update for this question ???
    Edited by: P.Ranish on Dec 13, 2012 3:36 AMNo, And there won't be in the future.
    Please stop posting followup's to old threads, if you have a real problem please search the forum first and post a new question with all information
    Roel wrote:
    Try using &P5_RUNNING_TOTAL. or #P5_RUNNING_TOTAL#Just to make it clear - this will only work if page is reloaded after setting the item values dynamically via AJAX

  • I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    Unfortunately, Safari cannot be updated past 5.1.10 on a Mac running v10.6.8.
    So, the options are to upgrade to a newer OS X or use Firefox or  Chrome.
    Be aware, Apple no longer support Snow Leopard v10.6 >  www.ibtimes.com/apple-kills-snow-leopard-os-x-106-no-longer-receives-security-u pdates-1558393
    See if your Mac can run v10.9 Mavericks >  OS X Mavericks: System Requirements
    If so, you can download and install Mavericks for free from the App Store.
    Read prior to upgrading >   Upgrading to 10.7 and above, don't forget Rosetta! | Apple Support Communities

  • Is MS exchange the only way to keep mail synced across all devices? Can Mac mail do this without exchange? I have iPhone,iPad and new MacBook Pro, and looking for advice please.

    Is MS exchange the only way to keep mail synced across all devices? Can Mac mail do this without exchange? I have iPhone,iPad and new MacBook Pro, and looking for advice please.

    As Bob says, any iMap service can do this. GMail can, iCLoud mail can too.
    Both of these can be used with Mail on any device.

  • New at this and looking for advice

    Hi, I am new at Qmasnter and looking for advice. Myself and a few of my other co-workers have been using FCP2 and we have been tossing around the idea of making a Cluster with our computers on our campus. Two of us run on MacBook Pro's, and the other on a 24" iMac, there is also 2 MacPro's and another 24" iMac we would like to toss into the cluster. I know it seems backwards, the ones that are doing all the editing are on the slower machines, but our organization operates backwards and not logically anyways. The question is what happen to the cluster when a node is turned off? Should the laptops be a node in the cluster? All the computers are running on a gigabyte network, so the network can handle it. Just looking for peoples wisdom before I cause my own headache, and learn for others mistakes.
    Thanks
    Randy Kennedy

    Hi Jon,
    I've also started investigating the qmaster.
    I'm following this guide you posted on digitalrebellion :
    http://www.digitalrebellion.com/blog/posts/usingcompressor_with_multiplecores.html
    but I the 'options for selected service' is greyed out when I click on compressor.
    I can selected the 'options for...' when I click on rendering, but it just allows me to add another computer (but my only choice is 'this computer'. I see the option for SSH, but if i'm logged into another computer, shouldn't I be able to see it in the list?
    Sorry for the noob questions. I"m trying to figure it out.
    I have the following at my disposal:
    mac pro 2.66 (main machine)
    imac 2.16
    macbook pro 2.2
    powermac g5 2.0
    cheers,
    Keebler

  • PLSQL and XMLTYPE -- Trying to pass cursor record into a XMLTYPE query.

    Hi all --
    I'm trying to pass records from a cursor into a xmltype query, with no success. If i hard code what the cursor record is, it works just fine, but when I use cursor_rec.value, I think it is taking that strin literally. Here is a simple example of what i'm trying to do.
    Brief Background -- I have two tables (OPLAN, OPLAN_SUB_CONT) with an XMLTYPE column. OPLAN contains the bulk/main XML with about 30 elemets, while OPLAN_SUB_CONT contains the xml files which either inserts or updates any of the 30 elements. Instead of hard coding 30 statments to check each element, I created a cursor to cycle through the possible elements. If an element exists i do something , if not i go the next element.
    This returns null, using elements_rec.element_name in the query...
    declare
    cursor cur_get_elements is
    select element_name
    from oplan_element_attribs
    where parent_element='Transactions'
    and element_name='OPLAN_STATUS';
    elements_rec cur_get_elements%rowtype;
    v_element number;
    begin
    for elements_rec in cur_get_elements
    Loop
    dbms_output.put_line ('before extract');
    select nvl(count(value(p)),0)
    into v_element
    from oplan_sub_content_xml oscx,
    table(xmlsequence(extract(SUBSCRIPTION_CONTENT,'Transactions/elements_rec.element_name'))) p;
    if v_element =0
    then dbms_output.put_line ('Element ' || elements_rec.element_name || ' is null');
    elsif v_element > 0
    then dbms_output.put_line ('Element ' || elements_rec.element_name || ' is not null');
    end if;
    end loop;
    end;
    SQL> /
    before extract
    Element OPLAN_STATUS is null
    PL/SQL procedure successfully completed.
    If i hard code the element_name (elements_rec.element_name) on line 16 (line wraps) to "OPLAN_STATUS' i get desired results ... returns not null
    declare
    cursor cur_get_elements is
    select element_name
    from oplan_element_attribs
    where parent_element='Transactions'
    and element_name='OPLAN_STATUS';
    elements_rec cur_get_elements%rowtype;
    v_element number;
    begin
    for elements_rec in cur_get_elements
    Loop
    dbms_output.put_line ('before extract');
    select nvl(count(value(p)),0)
    into v_element
    from oplan_sub_content_xml oscx,
    table(xmlsequence(extract(SUBSCRIPTION_CONTENT,'Transactions/OPLAN_STATUS'))) p;
    if v_element =0
    then dbms_output.put_line ('Element ' || elements_rec.element_name || ' is null');
    elsif v_element > 0
    then dbms_output.put_line ('Element ' || elements_rec.element_name || ' is not null');
    end if;
    end loop;
    end;
    SQL> /
    before extract
    Element OPLAN_STATUS is not null
    PL/SQL procedure successfully completed.
    Any ideas?
    Thanks!

    I should try everything before posting! Sorry, got it to work...
    replaced ..
    select nvl(count(value(p)),0)
    into v_element
    from oplan_sub_content_xml oscx,
    table(xmlsequence(extract(SUBSCRIPTION_CONTENT,'Transactions/elements_rec.element_name'))) p;
    with
    select nvl(count(value(p)),0)
    into v_element
    from oplan_sub_content_xml oscx,
    table(xmlsequence(extract(SUBSCRIPTION_CONTENT,'Transactions/' || elements_rec.element_name || ''))) p;

  • How to pass pageFlowScope variable value as bind variable for VO

    Hi,
    I have one fixed lov (not based on datasource), if i select any value in that lov i want to pass this value to a pageFlowScope variable.
    After this i want to use this value as bind variable for VO. whenever the vo executes thereafter this bind variable should filter that vo results.
    My jdev version: 11.1.0.0
    Thanks in advance,
    SAN

    san-717,
    can you elaborate on the use case instead of the implementation you don't get done? I understand you have data displayed in a tree: so lets assume the tree structure is Locations, Departments and Employees according to the Oracle HR sample schema.
    1. What is the LOV supposed to do ?
    2. Where is the LOV located ?
    3. What values does the LOV show ?
    4. Is the LOV a select choice component or a real LOV (with search dialog)
    5. Where is the bind variable used ?
    To me it sounds like you want to filter the tree data based on the select choice value. However, you wont do this by passing the bind parameter to all View Objects involved as they may not have the attribute in their query. So your use case is important to answer the question
    Frank

  • Is it possible to pass table type values as input parameter for con prg?

    Hi All,
    Could you please confirm that is it possible to pass table type value as input to concurrent program?
    If possible how to achive this?
    If not possible whether we have any ora doc which is confirming this.
    Any hel will be great.
    Thanks,

    Hi student;
    Please check (http://apps2fusion.com/at/45-as/241-enablingdisabling-concurrent-program-parameters)
    Hope it helps
    Regard
    Helios

  • New to photoshop, looking for advice on creating a stencil design, can anyone explain how to do this

    Heya,
    So I'm hoping to get back into photoshop, my knowledge at the moment is pritty minimal, but i'm going to start learning how to use it again.
    I'm new to this forum and don't intend to come on here often for advice but i hope that someone would be kind enough to point me in the direction that i'm looking for, i would be very grateful.
    Firstly, i haven't yet decided which adobe photoshop product is best suited for what i'm looking for and i aim to go and explore the trials first to find out.
    I'm looking to create designs with software that doesn't really have any limits in terms of creating designs.
    I was wondering if someone could give me some links to a tutorial or something that explains how to create the stencilling effect in the image that is seen as a tree with a cityscape in the background, and possibly the other effects seen on the t-shirt. I know it might be a lot to ask but it would really mean a lot if someone could explain how you create effects like this.
    Here's the image:http://www.gifts.com/products/Kohls/Mudd-Tree-Tee?p=6886:1945256129:35
    I know that the image is small, it was the best i could currently find, i hope that you can still see it well enough.
    Thank you in advance
    I really appreciate it!!

    First you may want to google »photoshop tutorial distresssed«.
    As for combining images like that a combination of Blend If-settings (one can split the handles by alt-click-dragging them)), Layer Groups set to Blend Modes other than Pass Through and Grtadient Maps may be employed to maintain high editability.
    One could also just use the images as Layer Masks for Solid Color Layers (and use Levels or Curves to get the intended contrast), though.

  • Looking for advice on photo software

    I am a recent 'switcher'. After using a PC for almost 25 years, I recently bought an iMac and couldn't be happier with the switch.
    Here's my problem: I currently have about 2,000 photos on my iMac and iPhoto has been awesome up until now for handling my photo needs. However, my family has recently gathered ALL of our old family photos and are passing them from one relative to another to copy, make prints or whatever they want to do. I plan on scanning most of them into my iMac. I realize that I'm going to have more photos than iPhoto is made to handle and I'm looking for Mac software capable of organizing these photos.
    For background, I own a Canon PowerShot 75 (point-and-shoot) digital camera and usually only take pictures while on vacation or at family gatherings. I am NOT a power user in photography. I rarely edit photos. I NEVER use RAW format and probably never will. Basically, I'm just looking for Mac-capable software capable of organizing and letting me find photos out of thousands of photos. I am willing to buy whatever I need but don't know which way to go. I've looked at Aperture and don't know if it's what I need or not. Something else?

    However, my family has recently gathered ALL of our old family photos and are passing them from one relative to another to copy, make prints or whatever they want to do. I plan on scanning most of them into my iMac. I realize that I'm going to have more photos than iPhoto is made to handle...
    Is that more than 250,000 photos? Because that's what iPhoto's made to manage. And once you hit that you still have the possibility of additional libraries.
    All of this:
    I own a Canon PowerShot 75 (point-and-shoot) digital camera and usually only take pictures while on vacation or at family gatherings. I am NOT a power user in photography. I rarely edit photos. I NEVER use RAW format and probably never will. Basically, I'm just looking for Mac-capable software capable of organizing and letting me find photos out of thousands of photos.
    points me to recommend iPhoto. Aperture is geared to RAW shooters.
    For a point of reference: I have 22k photos in my main library, and I can find any I need in seconds. The key is using Keywords:
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums exensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 20k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    Keywording takes time to set up, there's no doubt about it. I use Keyword Manager as it's much more powerful than the inbuilt system, and adds the possibility of nested keywords. So, for instance, if I add John to a photo it also adds 'Family'. Now I can add many keywords to a pic quickly.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.
    Regards
    TD

  • Powerbook Titanium user looking for advice on MacBook Pro

    Hello, all,
    After almost 10 years of faithful service, I'm afraid that my 15" TiBook is showing signs of age and may soon need replacing. For financial reasons, I can't spring for a brand-new, top-of-the-line MBP, and I was wondering if you had any advice about what I should look for in a reconditioned model from the AppleStore. Aside from basic functions like emails and web, I'd be using it primarily for the Adobe Creative Suite (no animation or any really heavy stuff) and for watching DVDs when away from home. How do you feel about the glossy screens, for example? On the French AppleStore, there are a couple of MBPs from early 2011, but I'd seen that there were concerns with the temperature/fan noises… I realize that almost anything I may buy now will be light years faster and more powerful than the 667 Mhz that I have now, but I'd like for the replacement machine to be as impervious to ageing as the PB has been.
    Any and all advice would be most welcome.
    Thanks for reading.

    My suggestion since you prefer to maximize your computers lifespan is to get either the new:
    1: High res, anti-glare 15" 2.2 Ghz or above
    2: High res, anti-glare 17" 2.2 Ghz or above.
    (The 13" MacBook Pro is integrated graphics, the 15" 2.0 has a dedicated graphics card that is as weak as the integrated graphics. Both are very poor choices for the long term.)
    The two models I've mentioned have the top of the line i7 Quad cores that simply blow the dual cores away in every way possible. The 1GB Radeon 6750M GPU is a monster video card that will satisfy ANY need you have for a long time.
    If your trying to save money and going for a used dual core i5, your doing yourself a great disservice because those machines are soon destined for the scrap heap.
    I opted for the anti-glare because with a laptop it's a necessity unless you live in a basement or a cave.
    The glossy forces you to seek dark locations to see the screen because it reflects dam near everything, even your face.
    Some people say to get a aftermarket anti-glare film, but those are expensive, they dry out, peal and bubble, not very nice looking and need occassional replacement.
    You will not give a flying ratts *ss four days later if you don't have a snazzy black bezel, your going to want to use the machine as intended in nearly any location. The matching case bezel is just wonderful and the new anti-glare (not ugly matte like before) screen is of a higher quality, looks fantastic being able to see every inch of the screen all the time.
    You can do a Google image search for "Mac glossy anti-glare" and get hundreds of pictures for your decision making process.
    The new machines are easily opened up to add more RAM or switch out the hard drive with a 00 micro-phillips screwdriver and a plastic compartmentalized holder to place the screws in order so the right ones go into the right holes. Won't void your warranty as long as you don't do any damage. Don't strip the screws.
    Do get AppleCare and a good case, even a MacTruck.
    Use the keyboard and trackpad as little as possible, use a wired or wireless instead to keep the wear off the machine.
    Keep the keyboard area covered and away from food/liquids, it gets behind the keys easily and will fry it.
    If you use the keyboard and trackpad, take off any jewelry and use a pad protector as you'll wear the case and 3 years from now it will look ugly as sin.
    Snow Leopard is a great OS, Apple plans on major changes in the next one to make OS X look like a iPad, you might not like it. The grumbling has already started.
    So get a Snow Leopard machine now with the iLife on the installer disks while you have a chance, a few weeks from now you might not have that option as all new machines will be forced into Lion.

  • New System Build For Premiere 5.5 Looking For Advice

    Hi there, this is my first time on here and it looks like this is the best place for advice.
    So I've been tasked to build a new computer for a client for Premiere 5.5. He's running a very basic studio setup and his main complaint is how it takes
    such a long time to render video. He told me it takes him about 6 hours to render a 40 minute sequence to MPEG2 standard(this is what he mostly renders as). I did some playing around and it turns out that his current system is relatively good but it uses a HD 6990 as its GPU(which can't even take advantage of Premier's hardware rendering capability!)
    Now initially I was going to go the all SSD route with a a budget of about $2500 or so. However, after doing some reading on here, I've decided that this
    isn't necessarily the best way. So I will only run the OS of an SSD. Here is what I have so far:
    PROCESSOR:
    Intel Core i7-2600K Quad-Core Socket LGA1155, 3.40Ghz, 8MB L3 Cache
    (I will overclock this as much as possilbe with the Noctua cooler)
    MOTHERBOARD:
    Asus P8Z68-V Pro Socket 1155 Intel Z68 Chipset
    RAM:
    G.SKILL Ripjaws X Series DDR3 1600MHz (PC3-12800) 16GB (4x4GB) Dual Channel Kit
    VIDEO CARD:
    EVGA GeForce GTX 570 HD Superclocked 1280MB GDDR5 (012-P3-1573-AR) nVidia GeForce GTX 570Chipset(797MHz) 1280MB GDDR5 Memory(3900MHz)
    POWER SUPPLY:
    OCZ ZX Series 1000W Fully Modular 80 Plus Gold Certified Power Supply (OCZ-ZX1000W)
    HARD DRIVES:
    OCZ Vertex 2 SATA II 2.5" 120GB Solid State Drive (OPERATING SYSTEM DISK)
    Western Digital VelociRaptor (WD3000HLFS) 300GB SATA II 10000RPM 16MB x2 (Project Disk Run in RAID 0)
    Western Digital VelociRaptor (WD3000HLFS) 300GB SATA II 10000RPM 16MB x2 (Output Disk Run in RAID 0)
    CPU COOLER:
    Noctua NH-D14 Six Heatpipe Dual Radiator CPU Cooler
    OPTICAL DRIVE:
    ASUS DRW-24B1ST Black SATA
    Now if there are any suggestions, PLEASE let me know how I can improve this build. I really don't want to disappoint the guy, especially if he isn't going to get a great performance boost in terms of rendering time. Considering he can't use GPU acceleartion right now on his $600+ card, I would imagine this should be a better build.
    Also, will there be a problem if I run four hard drives in RAID 0 mode using the motherboards onboard RAID capability?

    Photomaster,
    I think you are on the right track to speed up this guys system (2600k w/ OC, dual RAID 0) and I second Harm's comment about large 7200 drives being better than the prev. generation VR 300GB drives (HLFS series).
    Be aware however that "rendering" does mean different things, and if you are thinking that MPE will increase AME rendering to MPEG2-DVD by 10x you will be very disappointed! Here is the rest of the story...
    Timeline rendering, as benchmarked in PPBM5, will indeed speed up on the order of 10x with the addition of MPE using the appropriate nVidia hardware. PPBM5 is a test carefully constructed test that represents how long it takes for Adobe Premiere Pro to prepare (render) a timeline for playback. In actual use, your results will vary. Some timelines may only be sped up by 2x (i.e. very complex and/or using non-MPE effects, filters, etc.) to more than 1,000,000x faster for the case where a non-MPE system requires rendering, whereas the MPE system can play back the timeline without ANY rendering (i.e. simple SD timelines with MPE compliant effects).
    Next, full timeline rendering and "exporting" from a Premiere Pro timeline to MPEG2-DVD format are both sped up, but more on the order of 2x. On my fast quad-core system, I'm getting about a 1.8x improvement from MPE assistance using the PPBM5 project for testing.
    Finally, using Adobe Media Encoder (AME), and I can only speak for CS5, the MPE hardware does not even come into play and does not speed things up at all. On a positive note, Harm has reported that AME ver. 5.5 ran just over 2x as fast as ver 5.0.3; possibly the newer version is in fact tapping the MPE hardware for this gain?
    Regards,
    Jim

  • Web Based Messageboard (JSP, XML, XSLT) - Just Looking For Advice Please!

    I have a general question - I am not looking for any code, just some advice if possible. I am studying on a Masters course and I have been given an assignment to do which I am having difficult getting started. I have worked a lot with Java up until now, however this is the first time I have had to JSP on my course.
    My current assignment is that I am required to create a simple web based message board, using JSP and XML, which allows users to post messages to the board, and also to reply to messages. The content of the message board is stored in an XML file, and there is no database involved. The message data needs to be formatted for viewing in a browser using XSL transformations.
    I am stuck as to how to go about starting the project, and this is all I am asking for advice in. I have created the basic XML file which has some preliminary data stored within it, and I have created an XSL stylesheet to transform this data, however I am stuck with the JSP. Do I need to create a seperate JSP page for each page of the website? How does this link in with the XSLT?
    I would welcome and really appreciate any advice, but I stress that I am not looking for anyone to give me any code or anything like that.
    Thanks.

    You can use XSLT to convert XML to HTML. Then include this HTML in your JSP. Further on you've a plain HTML form with an input field for a message which you submit to a servlet. In the servlet validate/convert/whatever this message and add it to the XML file and then forward/redirect the request back to the JSP.

  • Looking for advice on small office use ...

    I'm looking for options to share our photo library in a small office environment. Essentially we have a single person (ie, our photographer) who is responsible for maintaining our program's photo library. What we're looking for is a way for him to very easily "publish" the photos which would allow other staff in our environment to quickly find and use images when necessary. We're a pure mac environment, although our photographer is currently a bridge / CS3 user (ie, not Aperture). I'm an experience Aperture user at home, and I'm trying to see if it could be used in a shared environment.
    If not - does anyone have any suggestions ?
    Thanks,
    Paul

    Tell us about your "shared environment." I assume the various Macs are connected via a local network. Do you have a dedicated server? (A mac that is used to store files and is always on - that all other macs can access via cable or wireless.)
    If so, it seems that Aperture may be the wrong app for this. Since "everyone else" just needs to access pictures that the photographer has adjusted (using AP), what you need is software that accesses a "library" of image files. I'm thinking of something like the old iViewMedia Pro (now MS Expression Media, yes it's available for the Mac). So, basically you need a good DAM (digital asset management) app for everyone to use.
    What I envision is this (not sure if this is the workflow you are thinking about) - photog processes RAW or other image formats in AP and exports adjusted images to jpg or tiff. These are then stored in some folder hierarchy. "The DAM Book" discusses a strategy for this - folders in the
    <year>
    <month>
    <day>
    hierarchy, but you can use some other organization like
    <year>
    <subject>
    Once the photog has processed the images and exported the final products, you import each new batch of images into each of the DAM software on each Mac. This software should be able to read metadata like keywords (you'd have to be sure the AP exported image files have XMP sidecar files or DNG files with embedded metadata that includes keywords - keywords are the important data you really need for everyone to use when searching for images). Unfortunately, DNG is still not well supported in AP, it's better handled in Lightroom. However, others here may want to add some ideas. I believe you can add some metadata like keywords directly inside other image file formats (tiff, jpg??). Don't know if AP handles this.
    At any rate, look into Expression media or something similar that others here might suggest.

Maybe you are looking for