untuk modul mata pelajaran : Membuat halaman web dinamis tingkat dasar SMK N 1 Banyuwangi, [donwload]
God is around, you know. He hears the prayers, wishes and hope and then then he will give us what we need. I am a girl who believe that God never leave me no matter what. That He, with His power to control everything in this universe, so does my life, will give me the best things in the world in the end. and I believe that miracle happens. One of the miracle He gave me is ‘A’.
He is a friend to tell your story to, a friend to run into when I had a fight with my boy friend, the only man I would call in the middle of war (hahahahaaa),a brother who protect me when I feel so alone and unprotected, a friend with thousand of motivation spirit to lift me up when I was so down, remind me of my parents said that I have to get up on my feet because my parents trust me, and once in a while he will mad at me because I let my guard down and fell for a boy I shouldn’t.
or,when he Continue reading
I am working on this bag. I made bunch of granny squares to make quite big sling bag. you know, I really like to take my notes, pen, and book everywhere I go. Sometimes small bag just confused me when I want to take those lovely things with me. Can’t wait to finish this bag….. Yay…yay…yay…. just some squares to go…. (some means 15 / more )
I like wall art, was trying to make one. hahahahaa its not even considered as a wall art, but I’m glad I make it and hanging this thing in my wall. It’s cute…. I made this from the pieces I used for stop motion. recycling is a great things to do you know… you never know what they can be once you start to stick with it.. 😀
The basic structure of Decision-Making in PHP programming Language and JSP Programming language is exactly the same. ‘Decision-Making in JSP also use IF…ELSE and SWITCH…CASE statements.
IF … ELSE statement
Most of decision-making structure refer to this statement. This statement is suitable for small case (one/two condition(s)) of decision making until big case decision-making (nested if/more than 2 conditions).
Structure : Continue reading
I miss this blog so much, another work loads. some applications to make, teaching schedule, and family’s event. And in this post I’ll show you how to process your data from form you made.
Before read the following tutorial, you should have basic knowledge about HTML, and Basic JSP.(about what to do with your computer before start to code in JSP)
At some point it feels familiar, and it will get more like family now. so come on.
- Insert and view data
To access data that has been inserted into form basically you just need request.getParameter(“variable_name”) for example :
<input name=address id=address type=text /> //text box in HTML
String addr; //declare variable addr as String
addr = request.getParameter("address"); // assign the form variable address into variable addr
out.println(addr); //print the value of variable addr
the syntax above will take data that has been inserted into address text box and print it into your page. All data that inserted into form is in String form. so when you want to insert an integer value you need to convert the value unto integer. For example :
<input name=frprice id=frprice type=text />
int price = Integer.parseInt(request.getParameter("frprice")); //define price variable as integer and convert the value of form variable frprice from string into integer.
count = price - (price * 5%);
syntax above will convert string data from form variable named frprice into Integer and assign it into variable named price.
Integer.parseInt(variable_name)in charge of converting string variable into integer.