| | |
I need advice on jsp seach form and "clipboard"
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2007
Posts: 23
Reputation:
Solved Threads: 0
Hi.
Me again. I have searched google and found no good tutorials to help me.
I'm using "Glassfish v2", "Mysql v5" and "NetBeans 6.5 beta".
***I have to make a seach jsp page that searches by different parameters stuff from database - meaning from one parameter to several.
My second question is related to "clipboard" on jsp page.
I have to make the following thing:
1) i have 3 tables. Contract is the table that is related to Property with the "middle table" called ContractProperty. And i have to make a interface that allows user to mark certain properties from one contract and then move that mark stuff to another contract, using the table ContractProperty.
2) I have to "copy" one Property into a memory (clipboard) and then be able to use it on other forms. In the clipboard can have only one Property.
Can you atleast answer my question on the search form? It would be nice if you'd post some helpful tips and tricks.
I do NOT need you to make the code(some code snipets would be nice, but well... if you do not want to, then i do not mind), i just need some advice.
Me again. I have searched google and found no good tutorials to help me.
I'm using "Glassfish v2", "Mysql v5" and "NetBeans 6.5 beta".
***I have to make a seach jsp page that searches by different parameters stuff from database - meaning from one parameter to several.
- Which methods and how should i do it? (I do not want code, i just need tips and howtos)
- Is there a easy way to do it in netbeans using java persitance unit?
- Are there any good tutorials or do you know any tips how to do it.
My second question is related to "clipboard" on jsp page.
I have to make the following thing:
1) i have 3 tables. Contract is the table that is related to Property with the "middle table" called ContractProperty. And i have to make a interface that allows user to mark certain properties from one contract and then move that mark stuff to another contract, using the table ContractProperty.
2) I have to "copy" one Property into a memory (clipboard) and then be able to use it on other forms. In the clipboard can have only one Property.
- Can you please tell me where should i start.
- Are there any good tutorials that i have not found.
- What should i know about things like that.
- Any good tips or hints.
- Is there javascript involved and if so how should i implement it. I'm using JSF techonology to make my jsp pages and i have controller/converter/class files.
- I have had almost the same thing done in php(not by me). Is it any way possible to modify that php+postgresql to work with jsp?
Can you atleast answer my question on the search form? It would be nice if you'd post some helpful tips and tricks.
I do NOT need you to make the code(some code snipets would be nice, but well... if you do not want to, then i do not mind), i just need some advice.
•
•
Join Date: Sep 2007
Posts: 23
Reputation:
Solved Threads: 0
For the first part of my question i think i found a solution. Netbeans had a sample application that has a search form in its 6.1 release(sadly not in the 6.5 beta samples). It uses visual jsf, but i guess that i can use both (jsf and visual jsf ) frameworks in one project.
As soon as i get the base of my app finished i'll let you know how the search feature turns up.
But in the mean time can you give me some advice on the other two questions...
As soon as i get the base of my app finished i'll let you know how the search feature turns up.
But in the mean time can you give me some advice on the other two questions...
Last edited by kohuke; Aug 22nd, 2008 at 8:44 am. Reason: typo ;)
There is no concept of an actual clipboard in web applications; in standalone applications, sure, but in browser based applications. If you want to persist state across pages, there are two ways. One would be to set the value as a HttpServletRequest attribute with key as "key" and then retrieve it on the next page using request.getAttribute("key"). Another way would be to use sessions to persist user data.
Since you are using JSF things should be pretty easy. Just use your backing bean methods to retrieve the desired value from the current page, set it in session, let the navigation handler decide which page to next go to using the return value of the backing bean method and in the backing bean of that page retrieve the session stored value and then remove it from the session.
All the above has been explained assuming you know JSF, if you don't it's about time you started reading some good books. Actually, what you ask for here encompasses the complete technical architecture of your application, so it's kind of hard to explain it. Good books / tutorials and trial and error are your way to go.
Since you are using JSF things should be pretty easy. Just use your backing bean methods to retrieve the desired value from the current page, set it in session, let the navigation handler decide which page to next go to using the return value of the backing bean method and in the backing bean of that page retrieve the session stored value and then remove it from the session.
All the above has been explained assuming you know JSF, if you don't it's about time you started reading some good books. Actually, what you ask for here encompasses the complete technical architecture of your application, so it's kind of hard to explain it. Good books / tutorials and trial and error are your way to go.
I don't accept change; I don't deserve to live.
•
•
Join Date: Sep 2007
Posts: 23
Reputation:
Solved Threads: 0
•
•
•
•
All the above has been explained assuming you know JSF, if you don't it's about time you started reading some good books. Actually, what you ask for here encompasses the complete technical architecture of your application, so it's kind of hard to explain it. Good books / tutorials and trial and error are your way to go.
Can you suggest any good books/tutorials that would explain it to dummy. (I just hope that it is a web based book, since i have no idea what our university library has to offer)?
IMO 'JSF in Action' seems to be a good book because:
• Its foreword is written by the JSF specification lead himself.
• The author walks through the JSF concepts by creating an almost real life application
• Since it's a good 1000 page book, you should be able to find almost everything in it.
Then again, practice and googling is what you will additionally require to complete your project.
• Its foreword is written by the JSF specification lead himself.
• The author walks through the JSF concepts by creating an almost real life application
• Since it's a good 1000 page book, you should be able to find almost everything in it.
Then again, practice and googling is what you will additionally require to complete your project.
Last edited by ~s.o.s~; Aug 22nd, 2008 at 4:16 pm.
I don't accept change; I don't deserve to live.
This is the book, reason you may had difficulties to find is short name JSF compare to full name of the book http://www.amazon.co.uk/JavaServer-F...9436105&sr=1-6
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Maybe some of these links can be useful
http://java.sun.com/j2ee/1.4/docs/tu.../JSFIntro.html
http://java.sun.com/developer/techni...vaServerFaces/
http://www.coreservlets.com/JSF-Tutorial/
http://java.sun.com/j2ee/1.4/docs/tu.../JSFIntro.html
http://java.sun.com/developer/techni...vaServerFaces/
http://www.coreservlets.com/JSF-Tutorial/
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Other Threads in the JSP Forum
- Previous Thread: Need sample JSP code....
- Next Thread: Example of an application to manage a table (add/update/delete items)
| Thread Tools | Search this Thread |
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






