• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

suggestions on creating a admin page in java mvc

 
Hamzah Mubaslat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I’m working on a website that users login and predict football matches with mysql database to count points if the predict right or wrong , the problem is that i enter the final score manually , what i am trying to do is to create an admin page to enter the result direct from the same users jsp page

Is there a way I can achieve this ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, of course. What's holding you back?
 
Hamzah Mubaslat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well i am trying to enter the last result as an admin not manually from the code
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, understood. What's the problem? Create a page with a form for entering the value. Assuredly, you'd want to put it behind some security.

Please read this article for information on properly structuring Java web applications.
 
Hamzah Mubaslat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i may post my code


my servlet code


pointcount method just add points to user if there prediction is right .

what i want to do is to make an admin user enter into the jsp page and put the final result
iam running out of ideas to do so
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you put it on the same page that the user sees rather than create a separate admin page?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic