Skip to main content

login page application with jmaki

4 replies [Last post]
segfault2007
Offline
Joined: 2007-11-27

Hello,
I am fairly new to web programming. How would I construct a page that takes login and password from user and authenticates the user to establish a session? I do know the general architecture how to do this with plain servlet/jsp/cookie, however what would be a good way to do this with jmaki/ajax? perhaps by using a restful service so the user could authenticate without issuing a POST.

again I am a newbie, so correct me if I am wrong.

any ideas/reccomendations/help greatly appreciated.

-Best Regards,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sloanb
Offline
Joined: 2003-09-14

Just checking back in with you to see if you still needed help? I never received a response back from my other questions about your environment. Let me know and I will be happy to help.

Regards,
--SB

sloanb
Offline
Joined: 2003-09-14

What would using jMaki on the logon allow you to gain? For example what widgets were you planning on using for the login? Typically you wouldn't want any type of autocomplete on a form in a logon because this would allow an attacker to easily pick out any username. Let me know what you are looking to do and I will be happy to help you out.

segfault2007
Offline
Joined: 2007-11-27

hello,

well I am new to web programming in general. I have tried spring/struts a little bit, and also JSF - but I have not found them appealing.

How can I start developing web apps (java based of course) using jmaki as a frontend, in a fast quick and ajax way without having to learn spring/struts nor jsf?

best.

sloanb
Offline
Joined: 2003-09-14

Honestly you should learn one of the other technologies as well to handle your application framework as jMaki is a UI wrapper more or less. While jMaki is designed as a MVC (Model View Controller) placing all of your business logic in JavaScript can be pretty messy. What I mean by all of this is you will still need the majority of the business logic to be written on the backend but you can get away with simply making jMaki (HTML/CSS/Javascript) your UI front end and writing Servlets as your service calls which don't require JSF or struts. What all are you wanting to do with your application? Do you make a lot of database calls? Give me a little background on your application and I will get in more detail about some of your options.