| | |
error while forwarding page
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Now here is crucial question: "Do you want to submit only average project and forget about it or you want to get best out of your project and learn something?"
If
If
- answer is I want average project and forget about it, then continue as you started. Unfortunately I do not see many members want to help with such lousy coding...
- answer is I want to submit best project and learn in same time, then you will take this design to Database Design section and seek advice on current state of your DB design as there are serious flows in it. For example, aren't they supposed to be same?
CREATE TABLE markedevent ( userid int(4) NOT NULL , eventid int(4) NOT NULL, PRIMARY KEY ( userid) ); CREATE TABLE Event ( Eventid int(4) NOT NULL AUTO_INCREMENT, Description varchar (255) NOT NULL, Publish varchar(20) NOT NULL, Questionid int(4) NOT NULL, Targetgroup varchar(70) NOT NULL, Anonymous varchar(15) NOT NULL, PRIMARY KEY ( Eventid ) );
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
•
•
Join Date: Jun 2008
Posts: 38
Reputation:
Solved Threads: 0
Hi peter_budo,
Thanks for yor post.
The highlighted column in two tables stores the same data.
Now forget about markedevent table for time being.
now if i want to restrict user against polling same questions in second times, i check userid and eventid in final output table like:
if the user has polled perticular event previusly then his userid and corresponding eventid will be there in final table. if not then result of rs will be null. can i use like this?
whether i am doing in right ways?
Thanks and Regards
Haresh
Thanks for yor post.
The highlighted column in two tables stores the same data.
Now forget about markedevent table for time being.
now if i want to restrict user against polling same questions in second times, i check userid and eventid in final output table like:
JSP Syntax (Toggle Plain Text)
rs=stmt("SELECT userid FROM final where Userid='"+USERID+"'and Eventid='"+EVENTID+'""")
JSP Syntax (Toggle Plain Text)
if(rs==null){ shows the event for polling} else{ }
Thanks and Regards
Haresh
Last edited by peter_budo; Jul 30th, 2008 at 8:18 am. Reason: Replacing [tex] for [code] tags
•
•
Join Date: Jun 2008
Posts: 38
Reputation:
Solved Threads: 0
Hi peter_buto,
I am really interested about how to separate business logic from presentation logic.
Like you suggest me to do database connectivity with servlets or java class only.
As this is my first project, I require help from you.
Can I send my project folder with this post?
It’s really difficult to manage both this logic in jsp page with many times problem with closing scriplet.
Another one is can i write single page database connectivity code for entire project.
Thanks and Regards
Haresh
I am really interested about how to separate business logic from presentation logic.
Like you suggest me to do database connectivity with servlets or java class only.
As this is my first project, I require help from you.
Can I send my project folder with this post?
It’s really difficult to manage both this logic in jsp page with many times problem with closing scriplet.
Another one is can i write single page database connectivity code for entire project.
Thanks and Regards
Haresh
Yes you can attach compressed copy (in ZIP) of your project.
And it would be possible to have one servlet handling all, but I would advice against it (Java file with hundreds lines doesn't look pretty either ) and recommend splitting on more servlets to handle similar requests
And it would be possible to have one servlet handling all, but I would advice against it (Java file with hundreds lines doesn't look pretty either ) and recommend splitting on more servlets to handle similar requests
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
OK, I downloaded files, but first I will have to re-install NetBeans as I have the simplest package for Java coding and Mobility Pack
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
For what sort of database is that zip file? Is that Derby or MySQL? If it is Derby you need to tell me how to import it and if it is MySQL then you didn't export it correctly...
The way to export from MySQL was something like this if I remember it:
The way to export from MySQL was something like this if I remember it:
- Open Command Prompt
- Got to top level of the hard disk C:\
- Type following command JSP Syntax (Toggle Plain Text)
- mysqldump -u YOUR_USERNAME DATABASE_NAME>FILE_NAME.sql -p
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
•
•
Join Date: Jun 2008
Posts: 38
Reputation:
Solved Threads: 0
Hi Peter_bodu,
Sorry for late post as was not at my desk.
If you downloaded mysql database, then you can have the start window for it like-> start->programs->mysql_mysql server 5.o-->mysql command line client. otherwise you can access it in command promt window by using command
Thanks and regards
Haresh
Sorry for late post as was not at my desk.
If you downloaded mysql database, then you can have the start window for it like-> start->programs->mysql_mysql server 5.o-->mysql command line client. otherwise you can access it in command promt window by using command
•
•
•
•
mysql -u userId -h Hostname -p here userId =root Hostname=localhost
Then it ask password. type password= root123
my datbase name is =mynewdatabase
Haresh
Last edited by guravharsha; Aug 2nd, 2008 at 1:32 am.
•
•
•
•
Hi Peter_bodu,
Sorry for late post as was not at my desk.
If you downloaded mysql database, then you can have the start window for it like-> start->programs->mysql_mysql server 5.o-->mysql command line client. otherwise you can access it in command promt window by using command
Thanks and regards
Haresh
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
![]() |
Similar Threads
- Optimum Online Web Hosting. (Networking Hardware Configuration)
- "How Much Would 'You' Charge?" (Website Reviews)
- SYSVER 0xff00024 NT_Kernel error (Viruses, Spyware and other Nasties)
- Netgear router blocking Hotmail (again) (Networking Hardware Configuration)
- MarbleHost.com: Safe web host providing daily data backup (Web Hosting Deals)
- Cpanel Hosting, 14gb disk space, 350gb traffic free domain this month only $19.90 (Web Hosting Deals)
- JSP iterator error with structs (JSP)
- delay forwarding of page (PHP)
- 5GB Diskspace/100GB Bandwidth -$5.95 Per Month. First Month (Web Hosting Deals)
- 15GB Diskspace .:. 100GB Bandwidth - I'll Try That For A $1.00 (Web Hosting Deals)
Other Threads in the JSP Forum
- Previous Thread: general questions about jsp
- Next Thread: Open Office document in IE browser
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web






