I'm working on JSP that allows the user in this case to add a new restauran
I'm working on JSP that allows the user in this case to add a new restaurant to the database. I have 2 database tables, one being RestaurantTable and containing the columns:
Id (Restaurant Id) type: int (primary key)
Name (Restaurant Name) type: varchar
Address (Restaurant Address) type: varchar
PhoneNumber (Restaurant Phone Number) type: varchar
Category (Type of Restaurant) type: varchar
and the other being Rank and containing the columns:
Value (Restaurant rank number) type: float
Id (Restaurant Id same as in the RestaurantTable) type: varchar
Since all of my restaurants which are already in the database have ideas, if a user were to add a restaurant I want my JSP to give it the next Id that follows. For that I have created a SQL sequence which is rest_id_seq.
There error I'm getting is : Invalid column type
I understand that the value for Id must be an integer because that is what I defined it as when I created my table, but I don't understand anyother way to do it then to put the sequence in as it's value.
I'm really confused as to what to do. Any help would be appreciated. Thanks
I'll post again with my code
Ok I really don't get why I can't post my code on here, I've been trying over and over again. I cut and paste my code and put it between and I hit the post button and the page does nothing.
Similar Messages
-
Is there a way to make a form that allows the user to select multiple answers from a dropdown?
Hi,
I work for a school that is building a form right now, and one thing we would like to do is have a list of teachers that can be selected from a drop down menu, effectively allowing the user to choose four or five from a list of twelve. Is there a way to do this? I see checkboxes, but that doesn't seem like a good answer for something that has twelve choices. I rolled through the other examples, and they all were single choice.
Thanks,
LeeHi Ariel,
Thanks for responding. I've added the list box, but I'm not sure how to select two options that aren't right on top of each other. Is it possible to add check boxes? I've also added a scroll bar to make it easier to browse. I've included a screenshot to show what it looks like.
Thanks for being patient. I'm new at this!
https://www.evernote.com/shard/s33/sh/804fbf7c-c4e5-4f34-a094-fdaedf67b020/5c0a42f59890ba7 49e4e945b703b5d58 -
Can I create a fillable PDF that allows the user to attach a file to the submitted form?
There are suggestions in the Help documentation and on this site that indicate it is possible to attach files to a fillable PDF form that is being submitted. But I do not see any instructions for adding this functionality to a form. I am using Acrobat 9 Pro to create my form. I have a Submit button with an Action/Menu Item/Submit a form option, and the URL link for the submission is a local coldfusion file with a #FDF suffix. The export format is HTML. The form also contains a hidden EMAILTO field, with an Options/DefaultValue option identifying the recipient's email address. (I'm guessing the local cfm file uses this field.) There is also a hidden URL field in the form, and its Options/DefaultValue specifies the URL of the fillable form itself. (Perhaps the local cfm file uses this field too.)
How can I add functionality to this form, using Adobe/PDF, to allow the user who submits the form to attach a file to the submission?You have to first configure a text field so it can be used for file selection. You do this on the Options tab of the field properties dialog. In order to select the corresponding check box, make sure only the "Scroll long text" option is selected.
You then can set up a button that has the following JavaScript attached to the Mouse Up event:
// Mouse Up script for button
getField("upload_text_field").browseForFileToSubmit();
Replace "upload_text_field" with the actual name of the file selection text field. -
My goal is to have a box pop up when the executable for my program is run. The box will have a bunch of fields, and an OK and Cancel button. Ideally, the user will be made to change some of the values, and warnings (with another dialogue box) will pop up if the values are nonsensical, allowing the user to proceed or go back and change them. The constants will be clustered, to be used later in other VIs.
Does anyone have a good template for this sort of VI? I looked at this article: http://www.ni.com/tutorial/8768/en/, but it doesn't go into enough detail to be helpful to me.This should get you started down the pathJust replace User data with your cluster and do the data integrity check in the value change event use a simple one button dialog to notify the user which values are out of compliance and disable and grey the OK button untill all conditions are met.
Jeff
Attachments:
Prompt(Date).vi 50 KB -
In Firefox 3, the user could access a dropdown menu by hovering over a small black arrow next to the forward arrow in the Navigation Toolbar. This allowed the user to go to earlier pages in the browser history, rather than using the back button to go to the immediate previous page.
After updating to Firefox 4, this menu disappeared. Was it moved? Was it removed?
I found this feature to be very useful. Why was it changed?
NickThere are two ways to get this: (1) Hold the back button until the menu appears (2) Right click the back button. See the screenshot below for reference.
-
Please allow us to resize our wallpapers apple.
Apple rarely announces the content of an incremental update prior to release, so no one here would be able to tell you that.
-
How do I create a form that allows the user to import a photo?
I am creating a form in Acrobat 8 Professional (MAC) that will be used by PC Reader users. Users need to be able to import photos into the form. How do I import images into a form?
Would these topics at this link help?: (Click Here)
-
Is there any software for iTunes that allows the user to adjust tint, color and hue?
I would like to view my videos with the ability to fine tune color (hue, tint and color) for playback, Any one know a easy quick fix?
Thank You Keith for responding. I am asware of the options in the drop down list in iTunes "Show in Finder" to use OT and its options to adjust tint, color, contrast etc, etc., I was more interested if the same thing can be can done in iTunes it's self? Do you know of a plugin or a simple script that might help me? ( I do not know apple script very well but if it is well written i can fallow instructions pretty good.)
-
Name
Social Security
Child 1
Social 1
Child 2
Social 2Hi blabla12345,
(untested and without warranty)
replace this line:
const sSaveCUBE = "CUBE";
with this:
const sSaveCUBE = "cube";
Have fun -
Component to allow the user to build a list from another list's items
Hello everybody,
I'm looking for a widget that allows the user to create a list by choosing from items from another list.
Something like the tool to customize the button bar in MS Office or MS Explorer. You can see an example of what I'm talking about:
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/databoundcomponents/displayedcolumns.gif
It would be easy to program a component like this (and I've already found some piece of code by Googling), but I'd like to know if someone made a stable Swing component of it to avoid reinventing the wheel.
Thanks in advance.There is one here
http://www.geocities.com/nirajkagarwal/html/ListSelect
or.htmlThanks, I already found this one via Google but I was looking for something more "professional".
It seems the apache project team made a utility to
control elements in a list...it seems very generic
(maybe over-flexible if there is such a thing...) and
really needs a tutorial !!!
http://incubator.apache.org/uima/apidocs/org/apache/ui
ma/tools/util/gui/ListSelector.htmlYes, it really looks like a work in progress.
I'll wait some more to see if other readers come with links, then I'll start coding my own ListSelector ;-)
NB: another example of what I want to accomplish is shown in figure http://java.sun.com/products/jlf/ed2/book/images/SelectableList1.gif -
Web Site Display Language - Allowing the user to chose the language
I have created a web site that allows the user to display the page in the language of the users choice.
Windows Internet Explorer and FireFox both allow the user to select a language option, and the web page will display the text in that language.
Safari on the Mac does not allow the display to be changed.
I have used the System Preferences - International option to select the language that I would like to use. The operating system menus and other options display as expected.
Safari does not.I have created a web site that allows the user to display the page in the language of the users choice.
What is the website? -
Hi All,i am currently working on a flex application that will allow the user to change the language within the application from english to Japanese and vice versa. And everything works fine.
I am using flex 4.5
We allow the user to save records with english or japanese texts.
problem
When the user manually enters Japanese text and tries to save it the record defaults back to the default name (which is in english). But if you copy the entered text and paste it and then save it.It works fine.
Any idea , why this is happening?
Please let me know if the question is not clear.
Looks like there was already a bug
https://issues.apache.org/jira/browse/FLEX-28894?page=com.atlassian.jira.plugin.system.iss uetabpanels:all-tabpanel
Not sure why does it say , Resolved .
-KB
Message was edited by: bKartik.bBy Payal integration , you mean paypal button html ? or payment gateway setup etc ? If its a gateway configuration for your site domain then single page for all layout will work , but if you are using button code for all renditions then you would need to create separate pages for all.
Thanks,
Sanjit -
I-tunes is note letting me access i-tunes store without first dowloading the new version of i-tunes. The problem is that my older operating system won't work and is not allowing the newer i-tune versions to work. How can I just get use the old i-tunes?
Hi,
Not sure if any of you above have managed to solve your problem or not but after coming across this same problem myself today as I am currently 'sofa bound' I decided to make it my mission to find a way around it.
Initially I did think, having ready what seemed like a million questions and people with the same problem, that the only way was to buy OS X 10.5 ... HOWEVER, no. In among all these threads I found a jewel - Download I Tunes 9.2.1 which gets rid of the download itunes 10 advert and allows you to then buy from itunes again :-) I am now one very happy lady.
I apologise to all those that dont have older versions of OS X that maybe wont support even this upgrade but certainly for those like me with just 4yr old lap tops at least it means it not longer means buying a new one.
Hope this helps son very frustrated people like myself - so much for apple support! -
What is the best online storage for photos. Specifically one that allows the original image quality to be downloaded should your hard storage goes belly up
I'd put them on an external hard drive(s) and burn them to a DVD as well (at least 2 - 3 copies on different drives/media); I prefer having control and a local solution instead of relying on a server and the possibility of someone (who shouldn't be) downloading my work.
-
In Adobe Acrobat X Standard, our user used to be able to resize drawings to 8.5 x 10, it stopped working yesterday. It allows her to do this without an error but the size does not change?
Try unmounting the volume on your iMac using Disk Utility. Then mount it again. You may need to reboot the laptop or relaunch its Finder process (using the Force Quit window) after remounting the drive on your iMac. Remember that no process may be accessing any files on the drive you plan to unmount, or the unmount will fail. Unmounting and remounting an external drive on my iMac made it become visible on my MacBook Pro after it had disappeared.
Maybe you are looking for
-
Customized Pf Status along with the standard Pf status
Hi all I have created an ALV report and has its default pf status which includes all function like sum ,sort, export, variants save etc. I have a requirement to have an extra push button along with this PF status. I have created a pf status with this
-
How do I separate my iCloud account from my daughters account
We set my iCloud account with my darters when I bought the iPad . Now I want to separate it and have my own account. How do I do this.
-
Error in ECA when assigning the value to structures
Hi, There are errors in ECA when we execute our function modules. Say a script has 3 interfaces (just an example) 1) In the first command interface, there is a reference to a structure which has 3 nested structures within, in which the
-
2014 Mac mini doesn't scale the entire HP Envy 32 monitor screen
I recently purchased a HP Envy 32 monitor for use with my 2014 Mac mini with the Iris display. I get 2560x1440 resolution at 60 Hz on both the DP (1.2) as well as the HDMI ports (using the auto-detected HP Envy 32 color profile) but the display doesn
-
Authorisation for creator to confirm his messages in support desk
Hi Friends, I have configured support desk functionality where user creates a support message.This message is handled by 1st level support team.If 1st level is not able to resolve it is sent to 2nd level. Also support message can be created by 1st