How do you handle long strings between JSP forms and Oracle?

I am using Apache 1.3.12 with JServ 1.1 and Oracle 8.0.4 on NT4 development Server.
I am developing an application where one component allows authors to contribute articles or comments via a JSP page. I am noticing a problem when the info in the form gets too long (> 2000 characters). 99% of the inserts fall well within this limitation. The remaining 1% is sufficiently significant that I can't use a VARCHAR. It seems that SQL*NET chokes on large strings.
My immediate workaround for these messages is to break them up into segments. Instead of storing the text or a message directly in a message table, I've added another table, msg_text, with columns msg_id, seg_num, and seg_text. On insert the message is split into segments limited to the smaller of the query limit and database varchar limit, minus the overhead of the sql query. This makes for an ugly insert operation, though and I would very interested to see if anyone out there has a better way to accomplish this task directly with CLOBs.

The apparent problem with LONGs is that, of course, you can only have one per table.
I had exactly this problem and ended up with several tables for one Business Entity, which is not really satisfactory.
For the next phase of the Project, I will investigate:
Putting these tables into a View.
Putting Instead Of triggers on the View to "synchronise" changes to all underlying tables.
Basing my BC4J Entity Object on the View...
... and I hope that Bob will be my uncle.
I'd be interested to hear from anyone who has already tried this, or you if you give it a go.
Rich

Similar Messages

  • If unboxed how could you tell the difference between refurbished imac and new imac?

    If unboxed how could you tell the difference between refurbished imac and new imac?

    Besides all of that, you can purchase Apple Care which will extend your warranty to 3 years just like you can on a brand new iMac.
    If you're considering a "refurbished" iMac, buy it ONLY from Apple.  I believe it's your best bet.

  • How can you tell the difference between ipad 2 and ipad 3 ?

    I need to know how can you tell the defferance between the Ipad 2 and Ipad 3 by just looking at it ?

    Well it hard to tell if you don't have the two side by side and compair it to...

  • How can you sync safari bookmarks between iphone 5 and ipad mini retina? IOS 7.1.2

    The syncing works between my iMac and iPhone on one hand and between iMac and iPad on the other. I'm using IOS 7.1.2. I made sure iCloud is on on IOS devices, same iCloud account, made sure there is no problem with the WiFi...I appreciate any help I can get. thanx

    Finally I got a solution from an Apple guy today. First we did the following steps on an iPad and then on iPhone.
    Basically, it comes down to this:
    general/restore/ erase all content and settings
    set up the iPhone/iPad as a new device
    type your iCloud account info
    once everything is up and running, wait for a while and first check on contacts, calendars, notes if it's syncing with the iCloud, then open safari and look for the other device. In my case it worked and iPad finally detected iPhone and I could see the safari tabs from the iPhone on the iPad.
    But then, Iphone still couldn't detect the iPad, so the guy said the original problem was probably in iPhone. And so we did the whole thing again on iPhone and then I finally had my tabs from all devices visible on every device.
    Thanks for your help anyway.

  • How do you handle mixes of widescreen(16:9) and fullscreen(4:3)?

    Okay I have a native Fullscreen(4:3) (FS from now on) that has a widescreen (16:9) (WS from now on) mode. I am primarily using the widescreen mode for shooting but on my Panasonic using the WS mode disables the image stabilization. You have to flip back to FS to turn on stabilization. The result is I have tapes that are mainly WS but have scenes, or clips, that are FS.
    When I create a new iMovieHD (ver 5) project I choose DV Widescreen as the video format. Most of the video is fine but the FS parts are stretched. If I just choose DV all the WS footage is crammed into FS and only the FS shots look right. What I would like is to use WS format and have any FS content pillarboxed.
    2 part question:
    1> Is there a way to do this in iMovieHD ver 5?
    2>If no on 1 is this something that is better handled in ver 6? Might be a good excuse to buy iLife 06.

    Welcome to iMovie Discussions.
    The following works for me in iMovie HD 6 ..try it and see if it works in iMovie HD 5, but I'm not sure (..I've forgotten..) if drag'n'drop between projects works in HD5; I don't think HD5 allows two projects to be open simultaneously. If not, you may need to Ctrl-click (..using the Finder..) on your 4:3 project to 'Show Package Contents', and then Copy the footage that's in the 'Media' folder onto your Desktop, so that you can then drag it into your 16:9 project..
    (1) Create a new project in 16:9 and import your 16:9 footage into that.
    (2) Create a new project in 4:3 and import your 4:3 footage into that.
    (3) Open the two projects side-by-side.
    (4) Drag clips from the 4:3 project into the 16:9 project ..they'll look wrong at first, but wait till they've been automatically 'pillarboxed'.
    The result looks like this:

  • How can you tell the differance between an iphone charger and an ipad charger?

    how can you tell the differance between an iphone and ipad charger

    http://store.apple.com/us/product/MC359LL/A/apple-ipad-10w-usb-power-adapter?fno de=3c
    http://store.apple.com/us/product/MD810LL/A/apple-5w-usb-power-adapter?fnode=48

  • How do you associate a view with a form?

    How do you associate a view with a form and make it accessible in the form?

    Try this
      <Field name='myview'>
                        <Display class='Text'>    
                            <Property name='title' value='My View'/>
                        </Display>
                        <Derivation>                       
                            <invoke name='getView'>
                                <ref>:display.session</ref>
                                <concat>
                                    <s>User:</s>
                                    <ref>accountId</ref>
                                </concat>                       
                                <map>
                                    <s>authorized</s>
                                    <s>true</s>
                                </map>
                            </invoke>
                        </Derivation>
                    </Field>           
                    <Field name='myview.waveset.organization'>
                        <Display class='Text'>    
                            <Property name='title' value='User Org'/>
                        </Display> 
                    </Field>

  • How do you handle multiple at the same address?

    My wife just got an iMac. She is using the Birthday feature in Address Book and iCal to track our friends and family birthdays and anniversaries.
    Question:
    How do you track it when multiple people are at the same address? For instance, our friends are a family of four, but they all live at the same address. Do you need to make a separate Address Book card for each of them, even the 1 year old baby? Or can you track multiple people in a single card with custom fields?
    If you do need to make multiple cards, then how do you handle mailing lists? For instance, if I make separate cards for all four of them, how do I make sure I only send on Christmas card when I use my Mac to print labels?
    Thanks for any advice.

    This is really an issue that you're going to have to resolve yourself since Apple's address book isn't really built with this in mind - darn it. For me there are three scenarios. First, a singleton. No problem. Second a family for which all members share the same information - acquantences to whom I don't send birthday greetings. These get one card and I'll put in both (or all) their names in the first name field (as in Bob and Jean). If there are children, in the last name field I'll add 'and Ken' or 'and the kids'. Third, a family for which some fields are different - perhaps cell phone number, birthday, etc.
    For mailing purposes, I create a holiday group and put the people I'll be sending cards to into the group.

  • How do you handle an incoming call while playing a game?

    If you're playing a game on your iPhone, how do you handle an incoming call? A call will stop my app from running, but how do I save the state and restore it when the user starts the app again?
    I have a bunch of objects on-screen and I need to record where they are so that the user doesn't lose the progress of their game.
    I've looked through the SDK, but I can't see anything obvious. Any ideas?

    I don't have a device to test with, but I suspect you'd want to save state in one of the UIApplicationDelegate callbacks:
    applicationWillResignActive:
    applicationWillTerminate:

  • How do you sync iCloud (contact, calendar, task) to outlook 2011 for Mac? and how do you make seemless sync between iCloud to Outlook 2011 to Blackberry device or an iPad?

    I have three device: Macbook Pro (OSX 10.7.5) for work; an iPad and a Blackberry for mobile. I used mail, iCal, and Address Book combine with mobileme (iCloud) to exchange data such as contact, calendar and task from my Mackbook Pro to my iPad but never to Blackberry. The problem is my boss was asking me to change to Outlook 2011 for Mac because some of the email that I sent from Mail did not appear in my client's Blackberry. So how do you sync iCloud (contact, calendar, task) to Outlook 2011 for Mac? and how do you make seemless sync between iCloud to Outlook 2011 to Blackberry device or an iPad?  
    Best regards,
    W. Sasongko

    More Like This --------------------------------------->

  • How can you handle Third Party Payment in Oracle Payroll

    People I hope you all are at your Good Health!
    I have a question and that is i would like to know how i can restrict a dependent from getting an Insurance benefit after he has crossed the Age =18 Also the To date must be calculated and populated automatically.
    Also, how can we handle this third party payment in the Oracle Payroll.
    All comments are welcomed.
    Chetan

    For the payment piece, create a payment method on the person record as a third party. you would need to have setup the recieving party as a third party organization before setting up at employee level.
    During normal payroll processing, you may run Third party check writer to generate a check .
    Ankur thank you for the response i have understood that we must create a Payment Method and Check the Check box for Third party Payment on Payment Method window.But how will that be handled for case where an employee has taken a Loan from a Bank and he has to be deducted every month from his salary how can we handle such a requiremet.
    I did not understand when you said :
    "you would need to have setup the recieving party as a third party organization before setting up at employee level.
    During normal payroll processing, you may run Third party check writer to generate a check ."
    Could you please explain me.
    Regards,
    Chetan

  • How do you change the spacing between lines of text?

    using Dreamweaver 6 how do you change the spcing between lines of text. Not seeing it as a option in the page properties menu.

    Try CSS line-height property.
    Kenneth Kawamoto
    [link removed by moderator]

  • How do you get firefox 4 to save tabs and windows and restore them? Don't say set preferences to open them on startup or use restore previous session under history; those do not work. Or is it no longer possible to save windows and tabs?

    Question
    How do you get firefox 4 to save tabs and windows and restore them? Don't say set preferences to open them on startup or use restore previous session under history; those do not work. Or is it no longer possible to save windows and tabs?

    '''IT'S A EASY AS IT SHOULD BE.'''
    This is essentially paulbruster's answer, but I've added the steps some might assume, but which aren't so obvious to those of us who are new at this, like me.
    This solution might ''appear'' to be long and complicated, but after you follow the directions once, you'll find it's quick, clean, and simple. Almost like they designed it this way.
    # If you haven't already, open a bunch of tabs on a few different subjects.
    # Click the List All Tabs button on the right side of the tab strip.
    # Select Tab Groups.
    # Create a few groups as described [http://support.mozilla.com/en-US/kb/what-are-tab-groups#w_how-do-i-create-a-tab-group here] , i.e. just drag them out of the main thumbnail group into the new groups they create.
    # Now click on any thumbnail in any new group, but not the original big default group you may have left some tabs in.
    #A regular Firefox window will open, but'' only the tabs in that group will be visible.'' You also now have the Tab Groups button in the tab strip.
    # Right click on any tab, and there it is: Bookmark All Tabs. Click on it in the list of options. Or you can hit Ctrl+Shift+D instead and go straight to the dialogue box from the tab without any clicks. But don't go looking for this familiar option anywhere else, 'cause it's not there.
    # Now pick an existing folder or create a new one just like you would have before and '''shlpam!''' there they are. New folders are supposed to end up in the Unsorted category all the way at the very bottom, but for some reason mine show up at the bottom of my last sorted category.
    # DO NOT CLICK THE UPPER-RIGHTMOST X to close this group of tabs. This will close ALL of your tabs in all groups, currently visible or not. At least it asks if you're sure first. Instead, click your new Tab Groups button to return to the Boxes 'O Thumbnails window, and click the X in the group box you just bookmarked.
    # Click on another thumbnail to repeat the process with another group, or click on a thumbnail in the big default box to return to the original FF window. You can also click the Tab Groups button at the upper right, or Ctrl+Shift+E, which will also get you ''into'' the Boxes 'O Nails window ''from'' FF.
    # So now when you reopen FF after shutdown, simply select your folder from your Bookmarks and Open All in Tabs. '''Just like paulbruster said. '''

  • How do you tell the difference between a genuine USB to Lightning cable? I spoke to two different operators at Apple Support. One said that it has Designed in California Made in China and the serial number on it, and the other operator said it didn't

    How can you tell the difference between a genuine Apple lead and the cheap, or sometimes not so cheap imitations? I spoke with two people at Apple Support - one said that it has Designed in California Made in China and the serial number stamped on it, and the other said it didn't. Come on guys, how are we supposed to tell if you can't? I'd really like to know how to identify my lead amongst my daughter's gazillion fakes?

    All my cables are genuine either with the devices or from Apple retail Store I have never found a serial number on any regardless of which length ,I have all three lengths
    In fact they have nothing printed at all only a USB logo at relevant end

  • SMTP traffic blocked by ISP how do you handle it ?

    I have recently installed the OCFO 10.1.3.07. We were using POP account previously and i had 2 account created in outlook (one using my SMTP server as outgoing mail server and the 2nd using the user ISP SMTP server) to let users send emails from home by letting them select the account in outlook before sending their mail without having them to configure anything.
    I am now stuck here. I tried replicating the same kind of setup using OCFO and a secondary IMAP4 account but it doesnt work. The mail stays in the outbox. The only way to send from their homes is to run the configuration wizard and change the SMTP server adress.
    How do you handle this? am i taking the wrong approach here?
    Thanks for any inputs.

    For anyone who might be interested,
    I have submited a SR to oracle support and the workaround to this issue is to Create a 2nd mail profile and configure the OCFO with a different SMTP server within that profile.

Maybe you are looking for

  • How to create a chart based on an existing report by passing variables?

    Hi, I have created a report (REP01). I've put a link on a column (table_name), on clicking it takes to another interactive report (REP02) that use table_name as filter. Now, I want to create a flash chart (Chart02) on this page of second report which

  • Trouble while passing an array as a parameter to an JDBC Control

    Hi everyone, recently I have upgraded my WLS Workshop 8.1 application to WLS 10gR3 using the workshop 8.1 application upgrade but after the upgrade to beehive controls I'm having troubles in a couple of methods that receive an array as a parameter. O

  • SQLLoader issues of Oracle RAC with ASM

    One of our client wants to use Oracle RAC with ASM for our application, i just want to know if there would be any two-phased commit transactions and SQL*Loader issues in ASM. Database is Oracle 10g

  • How to edit address contacts on .mac

    I just got .mac and I want to edit my contacts online, but when I go to sync back to my computer the updates don't show up in my address book. Changes only show up when I make changes in the address book itself. Is there a way to do this?

  • Windows, RAC and network card problems... ?

    Dear friends, I've a problem! :) Here are some info: Node Hardware:      Processor: Intel(R) Xeon(R) CPU E7430 @2.13GHz (2 processors)      Installed memory(RAM): 52.0 GB      System type: 64-bit OS      Windows edition: Windows server 2008 R2 Enterp