-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.jsp
776 lines (734 loc) · 50.5 KB
/
profile.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
<%@page language="java" %>
<%@page import="java.util.*" %>
<%@page import="java.sql.*" %>
<%@page import="com.mysql.jdbc.*" %>
<%
try {
java.sql.Connection con = null;
String url = "";
String u_id = request.getParameter("u_id");
String h_id = request.getParameter("hash_id");
ArrayList<Integer> people_following = new ArrayList<Integer>();
//Things being displayed
String username = "";
String first_name = "";
String last_name = "";
String fullname = "";
int tweets_count = 0;
int followers_count = 0;
int following_count = 0;
String tweets = "";
String output = "";
String hash = "";
String tag = "";
//query
String user1 = "SELECT username FROM user_t WHERE user_id=" + "'"+ u_id + "'";
String fullname_q = "SELECT fullname FROM user_t WHERE user_id=" + "'"+ u_id + "'";
String total_tweets = "SELECT COUNT(*) FROM tweet_t WHERE user_id=" + "'"+ u_id + "'";
String total_followers = "SELECT COUNT(user_t_user_id_follower) FROM follow_rel where user_t_user_id_followee=" + "'" + u_id + "'";
String total_followees = "SELECT COUNT(user_t_user_id_followee) FROM follow_rel where user_t_user_id_follower=" + "'" + u_id + "'";
String my_tweets = "SELECT tweet FROM tweet_t WHERE user_id=" + "'"+ u_id + "'" ;
String session_tweets = "SELECT tweet_t.tweet, user_t.username, user_t.fullname from tweet_t inner join follow_rel on follow_rel.user_t_user_id_followee=tweet_t.user_id inner join user_t on user_t.user_id=tweet_t.user_id WHERE follow_rel.user_t_user_id_follower=" + "'"+ u_id + "'" + "OR user_t.user_id=" + "'"+ u_id + "'";
String hash_tweet_q = "SELECT tweet_t.tweet, user_t.username, user_t.fullname from tweet_t inner join hashtag_tweet_rel on hashtag_tweet_rel.tweet_t_id=tweet_t.tweet_id inner join user_t on user_t.user_id=tweet_t.user_id WHERE hashtag_tweet_rel.hashtag_t_id=" + "'" + h_id + "'";
String followers_q = "SELECT user_t.username, user_t.fullname from user_t inner join follow_rel on follow_rel.user_t_user_id_follower=user_t.user_id WHERE user_t_user_id_followee=" + "'"+ u_id + "'";
//open sql:
Class.forName("com.mysql.jdbc.Driver").newInstance();
url = "jdbc:mysql://localhost:3306/smeeks";
con = DriverManager.getConnection(url, "smeeks", "dalton123");
java.sql.Statement stmt = con.createStatement();
java.sql.Statement stmt1 = con.createStatement();
java.sql.Statement stmt2 = con.createStatement();
java.sql.Statement stmt3 = con.createStatement();
java.sql.Statement stmt6 = con.createStatement();
java.sql.Statement stmt7 = con.createStatement();
//executes the query:
java.sql.ResultSet rs_tweets_count = stmt.executeQuery(total_tweets);
java.sql.ResultSet rs_followers = stmt1.executeQuery(total_followers);
java.sql.ResultSet rs_following = stmt2.executeQuery(total_followees);
java.sql.ResultSet rs_username = stmt3.executeQuery(user1);
java.sql.ResultSet rs_fullname = stmt6.executeQuery(fullname_q);
if(rs_tweets_count.next())
{
//success
tweets_count= Integer.parseInt(rs_tweets_count.getString(1));
}
if(rs_followers.next())
{
//success
followers_count= Integer.parseInt(rs_followers.getString(1));
}
if(rs_following.next())
{
//success
following_count= Integer.parseInt(rs_following.getString(1));
}
if(rs_username.next())
{
username= rs_username.getString(1);
}
if(rs_fullname.next())
{
fullname= rs_fullname.getString(1);
first_name = fullname.split(" ")[0];
last_name = fullname.split(" ")[1];
}
%>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<link rel="stylesheet" href="css/gordy_bootstrap.min.css">
</head>
<body class="user-style-theme1">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<i class="nav-home"></i> <a href="#" class="brand">!Twitter</a>
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">Logged in as <a href="#" class="navbar-link"><%=fullname%></a>
</p>
<ul class="nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="queries.html">Test Queries</a></li>
<li><a href="twitter-signin.html">Main sign-in</a></li>
</ul>
</div><!--/ .nav-collapse -->
</div>
</div>
</div>
<div class="container wrap">
<div class="row">
<!-- left column -->
<div class="span4" id="secondary">
<div class="module mini-profile">
<div class="content">
<div class="account-group">
<a href="#">
<img class="avatar size32" src="images/pirate_normal.jpg" alt="Gordy">
<b class="fullname">Gordy</b>
<small class="metadata">View my profile page</small>
</a>
</div>
</div>
<div class="js-mini-profile-stats-container">
<ul class="stats">
<li><a href="#"><strong>739</strong>Tweets</a></li>
<li><a href="#"><strong>115</strong>Following</a></li>
<li><a href="#"><strong>97</strong>Followers</a></li>
</ul>
</div>
<form>
<textarea class="tweet-box" placeholder="Compose new Tweet..." id="tweet-box-mini-home-profile"></textarea>
</form>
</div>
<div class="module other-side-content">
<div class="content"
<p>Some other content here</p>
</div>
</div>
</div>
<!-- right column -->
<div class="span8 content-main">
<div class="module">
<div class="content">
<div class="profile-header-inner" data-background-image="url('images/grey-header-web.png')">
<a href="#" class="profile-picture media-thumbnail">
<img src="images/profileThumb.jpeg" alt="Barack Obama" class="avatar size73">
</a>
<div class="profile-card-inner">
<h1 class="fullname">Barack Obama</h1>
<h2 class="username">@barakobama</h2>
<div class="bio-container">
<p class="bio profile-field">This account is run by Organizing for Action staff. Tweets from the President are signed -bo.
Washington, DC · http://www.barackobama.com</p>
</div>
</div>
</div>
<div class="flex-module profile-banner-footer clearfix">
<div class="default-footer">
<ul class="stats js-mini-profile-stats" style="float:left">
<li>
<a class="js-nav" href="#">
<strong>8,716</strong>
Tweets
</a>
</li>
<li>
<a class="js-nav" href="#">
<strong>665,052</strong>
Following
</a>
</li>
<li>
<a class="js-nav" href="#">
<strong>27,899,207</strong>
Followers
</a>
</li>
</ul>
<a href="#dm" class="btn dm-button pull-right" type="button" title"Direct Messages" data-toggle="modal">
<i class="icon-envelope"></i>
</a>
<div id="dm" class="modal hide fade">
<div class="modal-header twttr-dialog-header">
<div class="twttr-dialog-close" data-dismiss="modal" aria-hidden="true"> </div>
<h3>Direct Messages</h3>
</div>
<div class="modal-body">
<!-- direct messages start -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="content">
<div class="stream-item-header">
<small class="time">
<a href="#" class="tweet-timestamp" title="10:15am - 16 Nov 12">
<span class="_timestamp">6m</span>
</a>
</small>
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
</a>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div>
<!-- end tweet -->
<!-- direct messages end -->
</div>
<div class="twttr-dialog-footer">
Tip: you can send a message to anyone who follows you. <a href="#" target="_blank" class="learn-more">Learn more</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="module">
<div class="content-header">
<div class="header-inner">
<h2 class="js-timeline-title">Tweets</h2>
</div>
</div>
<!-- new tweets alert -->
<div class="stream-item hidden">
<div class="new-tweets-bar js-new-tweets-bar well">
2 new Tweets
</div>
</div>
<!-- all tweets -->
<div class="stream following-stream">
<%
java.sql.Statement stmt4 = con.createStatement();
java.sql.ResultSet rs_tweets = stmt4.executeQuery(session_tweets);
//java.sql.ResultSet rs_followee_tweets = stmt5.executeQuery(tweets_user_follows);
while(rs_tweets.next())
{ //open
tweets= rs_tweets.getString("tweet");
username = rs_tweets.getString("username");
fullname = rs_tweets.getString("fullname");
%>
<!-- start tweet -->
<div class="js-stream-item stream-item expanding-string-item">
<div class="tweet original-tweet">
<div class="user-actions">
<a class="btn">btn</a>
<a class="btn follow-btn">
<span class-="button-text follow-text">
<i class="follow"></i>
Follow
</span>
</a>
</div>
<div class="content">
<div class="stream-item-header">
<a class="account-group">
<img class="avatar" src="images/obama.png" alt="Barak Obama">
<strong class="fullname">Barak Obama</strong>
<span>‏</span>
<span class="username">
<s>@</s>
<b>barakobama</b>
</span>
</a>
</div>
<p class="js-tweet-text">
"I've got a mandate to help middle-class families." -President Obama at his news conference yesterday: "
<a href="http://t.co/xOqdhPgH" class="twitter-timeline-link" target="_blank" title="http://OFA.BO/xRSG9n" dir="ltr">
<span class="invisible">http://</span>
<span class="js-display-url">OFA.BO/xRSG9n</span>
<span class="invisible"></span>
<span class="tco-ellipsis">
<span class="invisible"> </span>
</span>
</a>
</p>
</div>
<div class="expanded-content js-tweet-details-dropdown"></div>
</div>
</div><!-- end tweet -->
<%
}//while
%>
</div>
<div class="stream-footer"></div>
<div class="hidden-replies-container"></div>
<div class="stream-autoplay-marker"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="js/main-ck.js"></script>
</body>
</html>
<%
}
} //try
catch(Exception e){
out.println(e);
}
</html>