Ajharul Abedeen

Greenhorn
+ Follow
since May 16, 2016
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ajharul Abedeen

I am trying to encode my password with BCryptPasswordEncoder or Md5PasswordEncoder. But any one is not working. Only plain password are working. Below i have given my code. I have tried both of them. Am i done anything wrong?
For Md5PasswordEncoder, i have used this link
 MD5 Hash Generetor to generate MD5 and then saved it database.  

       @Autowired
       public void configAuthentication(AuthenticationManagerBuilder auth) throws Exception
         {
             System.out.println("\n\n inside DataBase User Name Check..... \n\n");
           auth
                   .jdbcAuthentication()
                   .dataSource(dataSource)
                   .usersByUsernameQuery(" select name, pass, enable from usr where name = ?");
   //                .passwordEncoder(new Md5PasswordEncoder());
   //                .passwordEncoder(new BCryptPasswordEncoder());
   //                .authoritiesByUsernameQuery("select username, role from user_roles where username=?");
         }


1 year ago
I am near to mad. I have to launch a project very soon. For the last few days i am searching and searching but unable to reach a conclusion. I am using AngualrJs, SpringBoot.
My requirement is that user will enter there user name and password, the user name and password will be authenticated against the data base and the user will be logged in. The password will be encrypted by some algorithms like "bcrypt" encryption.
It is a from type site.  For this moment it is enough just authenticating. I found some examples, most of them are in XML configuration and inMemoryAuthentication.
Would any one provide me  an example where a REST request coming from AngularJS will be authenticated against Database and after authentication a success message will be returned and also the log out facility will be there. I use maven.
OR is there any way that the XML security configuration can be loaded in to SpringBoot Application.  
 
1 year ago
I want that if table not exist then it will create table and the insert can be done.
I have written the following code.


But is showing error


Here my problem is that these command is not working same time. I am first creating a table and then doing inserting and i have to change the xml file after creating the table. I want that customer will not have to worry that is there table exist or not.

Now my question that is there any way that i could will able to create table if there table not exist and able to do insert operation same time in same xml file.
2 years ago
I am trying to do AJAX enable jsp page in SpringMVC, i know only xml configuration. I searched in the internet for example, but i have not found any example so far that shows AJAX work with XML configuration. All of  the examples i found that are done by annotation based configuration. Now i want to know that is it not possible to do ajax enable jsp page by XML conflagration. My intention is that  i will save  data into the database and when i will press the save button, all the records of the database will be shown below.

Now, my question is that is it not possible use AJAX in XML based configuration ?
If yes, would any one provide an example.
2 years ago
welcomeWebPage.html


controlller.jsp


controlller1.jsp



web.xml



dispatcher-servlet.xml


controlllerResult.jsp


controlllerResult1.jsp


HelloController.java



HelloController1.java


Server Log



I have given a program's whole code. This a simple Spring MVC program. I have also given the server log. The programs one link is working but another is not working. Showing 404 error.
Then in the server log i have found the message that i have given. But i am not understanding why it is showing that no mapping  found for [/SpringMVC_1/h.ds].
Would you please tell where i have made the wrong.
i have a task that i have to search within a particular web  page  and after searching the result page will be shown have to save them for further analyze at off line. I have many words to  search for a particular webpage.  
I want to develop such a program that will automatically send search request in the site  and the result page will be saved in folder for further analysis in offline. i know only java. And familiar with javaScript.

Please give a outline how i can do that? i am in a urgent need.

I have seen some software in the internet but so far seen, not match with me. But don't forget to suggest such free software .
The following code is custom Annotation code, test but when i am running the code showing error. Please tell me where i have done the error.



It is printing some value but when i am printing the annotation values then it is showing Error. The error has given below.
I am not able to Edit post here, for that i am giving same post wit editing.

I am trying to do a Spring helloWorld example by watching by this link HelloWorldExample.
The source code has given below. Here problem is when i am running this i getting error. I have also given the stack trace.

web.xml


HelloWeb-servlet.xml


hello.jsp


HelloController.java


Image of jar file added
Image of Folder Structure

StackTrace


Please tell where i have made the mistake
2 years ago
I am not able to Edit post here, for that i am giving same post wit editing.

I am trying to do a Spring helloWorld example by watching by this link HelloWorldExample.
The source code has given below. Here problem is when i am running this i getting error. I have also given the stack trace.

web.xml


HelloWeb-servlet.xml


hello.jsp


HelloController.java




Image Jar File Added

FolderStructure Image



StackTrace


Please tell where i have made the mistake

Ajharul Abedeen wrote:I have done one spring MVC hello world project by reading Hello World Example.
But it is not working. the project is here project
Please any one tell me where i have done the mistake.



type Status report

message

description The requested resource is not available.


--------------------------------------------------------------------------------

Apache Tomcat/7.0.56
I have done one spring MVC hello world project by reading Hello World Example.
But it is not working. the project is here project
Please any one tell me where i have done the mistake.
I am learning spring. I have learned all modules the basics. Now i wanna go deep with it. I am learning spring basically to develop J2EE application. To do a final semester project i have to learn it. But i am confused that am need to learn struts for controller part or is it enough to learn spring mvc. Veterans  please give me some advice, i have sort amount of time in my hand.
I posted the same problem but unable to edit that post, for that uploaded again.
Servlet Code Example

I am very upset cause  i am unable to run servlet code. I have downloaded tomacat server and extracted it into my D drive and then copy and the past the my servlet code folder into the web apps folder. The Servelt code i have shared by google drive and the link has given above.
Form command prompt i have started the server by typing the following command
D:\apache-tomcat-7.0.70-windows-x64\apache-tomcat-7.0.70\bin>startup.bat
And confirmed that browser started successfully by typing localhost:8080 in the browser. and also the console with message that server start up in 1920ms come.
Then i typed the following url in my browser but it showing nothing in the server console..
http://localhost:8080/lifecycle/life
Please tell me what the wrong i have made.
It showing the following error..

HTTP Status 404 - /lifecycle/life

type Status report

message /lifecycle/life

description The requested resource is not available.

Apache Tomcat/7.0.70