vin Hari

Ranch Hand
+ Follow
since Nov 16, 2006
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vin Hari

Hi Folks,

can some one please help me how to resolve this issue, i have one application Myweb which i deployed in RAD 9, which has WAS 8.5 which created a default profile which is working fine,
now we have some changes in the Myweb app which  needs to be deployed in the eclipse oxeyzen using IBM WAS 8.5 server,

so i created a new profile using the command



which does creates a new profile and i configured the classpath with my new application in new path, but when i try to run the application it is still pointing to the old application path ,i believe it is referring to the old profile some can some one please help me how to resolve this issue, thanks in advance.
1 year ago
Hi Ranchers,

i am learning spring boot, i have a jsp page where i have a button on click i have modal form i need to insert the data into the database MySql, but i am failing with the error(object,object)
can some one please help me here are my piece of code



the jsp has the following code:



i have copied the jquery into the js folder.


in controller i have :



details.java

has the  getters and setters for experience and course.

when i am running this code it is not forwarding to the URL and getting error(object,object) in alert
not sure if something needs to be added in POM.xml or anything needs to be removed from these files, thanks.
2 years ago
Thank you Sergej  for your reply, i solved that issue by granting all privileges to the user in mysql that solved the problem, thanks again for your reply.
2 years ago
Hi Ranchers,

I am learning Spring boot, can some please let me know this property

spring.jpa.show-sql=true



i ave simple database connection with MYSQL using JDBC template, where data is getting inserted, but i want to see the query on console
so i have included the above statement but still nothing is visible on console.

Note: i am  not using Hibernate as of now.

also i noticed

spring.datasource.url=jdbc:mysql://localhost:3306/springbootdb
spring.datasource.username=root
spring.datasource.password=
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=create-drop



among the above entries in application.properties file it is not taking username as root, so i got a error stating

"access to user ' '@localhost is denied for database 'springbootdb'


then in mysql i grant all privilege to all users then the error went and started inserting the data,
also i have used create-drop but the table is not getting dropped it is just updating.

please let me know is there anything is wrong. thanks.
2 years ago
Hi Ranchers,

i am learning Spring boot i am trying to connect with the the JDBC but not able to do, can some one please i followed this link https://www.javatpoint.com/spring-boot-jdbc

i did each and every step mentioned there but getting:


Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri May 19 23:25:53 IST 2017
There was an unexpected error (type=Internal Server Error, status=500).
Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Incorrect database name 'springbootdb '



my application.properties file  looks



and java files are :



and controller looks like:



the URL used is : http://localhost:8080/insert
but it is giving the error as above:

and the pom.xml looks:
2 years ago
Hi Ranchers,

Can some one please let me know how to use the <form:error> tag i a m new to spring , how to use this tag for validations, i have this piece of information:



i have commandname with "employee" my question is how to write the controller and do custom validations, any references will be great thank you.
2 years ago
Thank you Tim for your reply, yes i tried that long time back that option is not visible at all with STS 3.0,

may be i need to upgrade it to the latest version.
2 years ago
Hello Ranchers,

i am learning Spring Boot, i want to know how to install it , i have a STS 3.0 version, will that version supports Spring Boot,

as i see other tutorials pointing to click new->spring starter project,  this option is not visible in my existing STS, few tutorials are really confusing,

can you please help in understanding of how to install a spring boot from existing STS 3.0, o i need other tool as well , thank you.
2 years ago
Thank you for your replies paul and carey, but i found another way reading the filenames into the database and check them if the file already exists do not read that file.
but still my problem 2 exists.

i want to read the input file

Hello, how are you? this is Sunday !!
         are you going for shopping.



i need output to be :

Hello/a ,/, how/b are/t you/g ?/? this/s is/v Sunday/r !!/b ......like this


         
2 years ago
also for problem 1: is there any way to make the files reading only once(all text files) in a directory need to be read only once.
so that reapeately executing the same program for testing should not make them to read again and again, thank you.
2 years ago
the file format is .txt only in both the cases.
for the problem 2:
the file will have for ex:

Hello, how are you? this is Sunday !!
         are you going for shopping.



i need output to be :

Hello/a ,/, how/b are/t you/g ?/? this/s is/v Sunday/r !!/b ......like this
         



i know how to tag them but my question is how to write them back into a file in the same format even(, . ? !!) need to be considered as a word. thank you.
2 years ago
Hello Ranchers,
can some one please suggest me what is the best way to achieve the solution for the following problems:



can some one please suggest me the best way to solve these two problems, thanks.
2 years ago
Thank you Campbell for your reply, ranchers any other suggestion, how abt reading the file to database and screen the entire line and divide them on space and attach the tag.

please let me know if there are any suggestions thanks.
2 years ago

vin Hari wrote:Hi Ranchers,

i need a experts to suggest me with the solutions to this problem.

problem:
i have few  text files with nouns,pronounce,verbs etc...
i need to read(around 8 files) into the memory only once .
The process should be able to tag multiple sentences from the input text simultaneously.
The output should return the tagged text in the format word/tag in the order of the original text.


example: if i have sentence in a file:
My aunt’s can opener can open a drum

i should be able to read the file and convert the sentences or paragraph from the file to the output file in the following format
the output should be :
My/PRP$ aunt/NN ’s/POS can/NN opener/NN can/MD open/VB a/DT drum/NN

can some one help me how to achieve this. thanks.

2 years ago
Hi Ranchers,

i need a experts to suggest me with the solutions to this problem.

problem:
i have few  text files with nouns,pronounce,verbs etc...
i need to read(around 8 files) into the memory only once .
The process should be able to tag multiple sentences from the input text simultaneously.
The output should return the tagged text in the format word/tag in the order of the original text.

example: if i have sentence in a file:
My aunt’s can opener can open a drum

i should be able to read the file and convert the sentences or paragraph from the file to the output file in the following format
the output should be :
My/PRP$ aunt/NN ’s/POS can/NN opener/NN can/MD open/VB a/DT drum/NN

can some one help me how to achieve this. thanks.
2 years ago