Andrew Baba

Greenhorn
+ Follow
since Nov 23, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Andrew Baba

Hi All,

I am starting my adventure with spring roo. I met problem with database connection. My understanding of errors: there is problem somewhere with connection to database:
I tried to google solution and I'm still stuck at the same point. After about 4 hours I give up.

What I have tried but didn't help:

-change localhost to 127.0.01 in database.properties. I mean jdbc:mysql://localhost:3306/myJavaVideosDotComdb to jdbc:mysql://127.0.0.1:3306/myJavaVideosDotComdb
-change server version
-switch off firewall
-tried to set up project from beginning - still the same error

Here is my console output


Here is my database.properties




Do you guys have any other ideas ?

Thanks a lot for any help or suggestions



10 years ago

Wendy Gibbons wrote:do you know about forms, and submitting in HTML? As that is what you should be learning and writing.
Then the java should be in the servlet that gets called when the form submits, and the servlet then sets the next page.

I do not know how that fits in with all the framwork code you have to work around.

I would recommend getting a good book, the head first jsp book is good
http://shop.oreilly.com/product/9780596516680.do



I know basics in forms. I use forms through xsl stylesheet if I need it. Thanks for a book recommendation. I have just ordered from amazon. I was lucky I started this internship. I sold myself well on interview. I know that technologies are too deep for me. Right now I have to learn it anyway- it is motivates me. I have only finished introduction to Java so far (college) and started internship with EJB related technologies BOOM ! That's way I created this topic to ask advanced users about help. In the future I will help someone else. This is how it works, isn't ?

Back to the topic. I have created if statement. But If statement is not effiecient because I don't want add each time extra language to the controller.jsp Can somebody show me how to create loop instead?

Code is mine. I created all of that on my internship. I have already made some changes and saveLocalizationData page is being already updated. Code from controller.jsp is not complete. There are more pages which I havent showed here.
I coded this


Right now the question I have is how to attach saved changes to the correct language in the database. When I display website lets say for a different language it still only making changes for Polish. How do you think ? Im thinking about if statement
Hi
Im pretty new with JSP. I tried to solve the problem through search option but couldn't find it.
I am currently doing internship and I am having problem with updating data in the database.They work here on jboss. They use JSP, EJB, XSP,XSL and mysql.
I have a table and I would like to send updated data back to database by clicking SUBMIT button. Picture below


I should code this by finding correct id ,using LocalizationDataModel,storing model in the session. Should find correct ID in the database and next update it.
Here how it looks that in mysql



I have already got method savaLocalizationData in EJB, which I am sure is correct



They told me I should work right now with controller.jsp
Here is code and advices in comments for a save localization data, I also added a sample how they display pages in listLoclizationData page



Here is a XSP page for that


Here stylesheet in XSL form




CAN ANYBODY HELP ME WITH THAT ? I am not sure how should start with that in controller.jsp. Any help very appreciate

Thank you very much. That's working now.
12 years ago
Hi,

I have changed Java environment variables good few times recently and I have never had problem like today. I have set up new Win 7 Proffesional 64-bit. I have installed JDK and I am stuck with variables.
Please have a look on pics. I also checked official oracle documentation for win7 and looks like I am doing everything OK.

1. Pic1 displays path on my hdd to my JDK


c:\program files\java\jdk1.7.0_03


2. Pic2 displays what I am going to edit


3. As a result still getting the same answer that javac is not recognised as an internal or external command.

Any ideas what am I doing wrong ?

I also tried to change name path using " ~ "sign to avoid empty spaces like C:\progra~1\... but this is not working either.
I tried close terminal, restart win, after each step.
I tried to change path to c:\program files\java\jdk1.7.0_03\bin

Is there any way to set this up through command line ?
12 years ago
@Joanne

Please have a look on the picture

command line screen shot


I am not it is all what you asked for.
I used -cp and -classpath
12 years ago
No. I am trying right now to set up classpath with http://docs.oracle.com/javase/1.3/docs/tooldocs/win32/classpath.html. I have no other ideas so far
12 years ago
@Joanne

Any ideas how to solve it Joanne ?
12 years ago

Riaan Nel wrote:

Andrew Baba wrote:Yes, so I thought I may use different program to generate class file.


I don't think that's a very good problem-solving approach, no?


If your car breaks, would you rather find out why it's broken and fix it properly, or would you fill it up with water instead of gas and hope it works? That's precisely why you shouldn't use an IDE when you start out programming - it hides a whole bunch of things that you should know about. You learn more through trial and error than using an IDE that does everything for you.

I know what are you talking about. I want to focus on EJB currently, that is way I want to find shortcut. You guys are right, but I am still in the same point before I posted this topic...
12 years ago
I tried to set up few JAVA_HOME classpaths. Everywhere when I might have correct files

C:\Program Files\Java\jdk1.7.0_01\bin
C:\Program Files\Java\jdk1.6.0_29\bin
C:\Program Files\JDK\bin

2 errors again in advice.java. I asked friend of mine who is advanced programmer and sitting just beside me, he couldn't help me either. He told everything looks ok.

Just to clarify:

I am changing JAVA_HOME variable, is it ? If yes it didn't work out.
12 years ago

Karthikeyan Nadanasabapathy wrote:So download JDK with EE bundle and set the path



How do I set the path ?
12 years ago

Karthikeyan Nadanasabapathy wrote:You are missing neccessary Java EE bundle which contains "import javax.ejb.*;", " java.rmi.RemoteException" and other EE components(or jars). So download JDK with EE bundle and set the path and then compile with Javac. Search with the keyword "java ee sdk" and the first link will give you the download page. Hope it will help you.



I installed JDK with SDK yesterday. Here is a screen shot.
http://flic.kr/p/aUNbhr
12 years ago
third file AdviceBean.java

javac errors:

Flickr





Like I said. The code is copied from the book.

I just need CTRL+C and paste generated class files into deployment tool, but I can't do it through javac command.
I thought to find path where Eclipse keeps class files generated from java files and simple copy it :/

12 years ago