User Profile

Collapse

Profile Sidebar

Collapse
KusoYumi
KusoYumi
Last Activity: Dec 29 '09, 01:28 AM
Joined: Mar 18 '08
Location: Luala Lumpur
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • KusoYumi
    replied to Control Page Number in Display Table
    in Java
    Yeah, thanks for comment :D You are correct, it is required to set the page parameter(eg: d-xxxxx-p) for the URL-parameter. Previously I just set the current page no, without page parameter, that's why not works!
    Thank you very much.
    See more | Go to post

    Leave a comment:


  • KusoYumi
    started a topic Control Page Number in Display Table
    in Java

    Control Page Number in Display Table

    Hi everyone,

    I have met a problem here regarding the display table. Let me explain my problem 1st.
    Assume that I want to display a list of data in a table, each page contains 10 records. So when I clicked on page no.2, it will showing records from 11 to 20. At this moment, I have click submit button to save the changes I did in page 2. So now my question is, after saved, it should be remain the page 2, but now it show "[First/Prev]1,...
    See more | Go to post

  • KusoYumi
    replied to Date and Time problem
    in Java
    Firstly im thank that you provide an example for me, i have tried, but it show Date, which not Time, any way, i appreciated u guys willing help :) further explaination on my problem, i have replied radhikams..
    From the output, i can know that tm is month, te is day and tY is year, but may i know is it use tY, tm and te as default? can use other naming?and why need %1?
    im newbie in java, pls forgive if i have ask stupid question.Thanks...
    See more | Go to post

    Leave a comment:


  • KusoYumi
    replied to Date and Time problem
    in Java
    Im using java.util.Date, i convert the Time from String(HH:mm:SS format, value is 17:12:19) to Date, then it become "1970-01-01 17:12:00". Can i know why it become 1970-01-01?...
    See more | Go to post

    Leave a comment:


  • KusoYumi
    started a topic Date and Time problem
    in Java

    Date and Time problem

    Hello, im facing date and time problem. I want get a time in Date Type, with this format HH:mm:SS
    i try to get new Date(), then format it as String. Then i use substring to get the time. Then i parse it as Date Type, and want to save it in database(databa se has a field called start_time, which is Date Type)
    After i do this transaction and check with database, database show "1970-01-01 17:12:00".....C an anyone help me on that?Thanks...
    See more | Go to post

  • KusoYumi
    replied to Problem with String and String []
    in Java
    I have make it already, anyway, thank you very much on reply!
    Below is the solution, if anybody has same problem with me, can have look! :)
    Backend code still remain, but change setValueArr( ) to setValue( ), which is set value as string, not string[] anymore.

    But there is changes at jsp:
    <c:set var="index" value ="0"/>
    <c:set var="valueIndex " value="0"/>...
    See more | Go to post

    Leave a comment:


  • KusoYumi
    replied to Problem with String and String []
    in Java
    Ya, i can get the value(i called it stall's id) from page A to page B. Then i need to place stallId in text box which in display table.

    at jsp:

    [CODE=html] <display:tabl e name="paramsArr " cellspacing="0" cellpadding="0" requestURI="" id="paramsArr" pagesize="40" class="table">
    <display:colu mn property="name" escapeXml="true "...
    See more | Go to post

    Leave a comment:


  • KusoYumi
    started a topic Problem with String and String []
    in Java

    Problem with String and String []

    Hello, im facing a problem on String and String[]. I pass a value from another jsp , and i get the value at backend. Then i need to set this value into String[] which index 11 and pass back to jsp and show it . Anyone can give me hints or solution on that?Thanks in advanced, and hope to get your replies soon....:)
    See more | Go to post

  • KusoYumi
    started a topic How to order with few criteria?

    How to order with few criteria?

    Hello everybody, im newbie on mysql.
    Now i want order by few criteria, that is stallName, date and productName.
    I code with "select * from item order by stallName, date, productName", it generates result like this :
    Chicken King
    Sales on 13/03/2008
    ITEM QTY TOTAL AMOUNT (RM)
    chicken sweetie 1 2.49
    Aloha Chicken ...
    See more | Go to post
    Last edited by KusoYumi; Mar 21 '08, 02:36 AM. Reason: Further explain on date

  • KusoYumi
    replied to How to keep the ordering?
    in Java
    Erm, maybe some will confusing on stallFk and orderFk. stallFk actually is stall's id which is primary key; and orderFk is order's id , which also a primary key. About stallName, since Order database consists stallFk, then it can get stallName by stallFk. I hope this reply will make all more understand the flow and hope to get you'll reply soon.
    Thanks....
    See more | Go to post

    Leave a comment:


  • KusoYumi
    started a topic How to keep the ordering?
    in Java

    How to keep the ordering?

    Hello, i have met a order problems now, that's happen between Order and Items.
    My Order database consists fields: id, transId, totalAmount, orderType, stallFk and dateOrder.
    Then Item database consists fields: id, qty, amount, unitPrice, productName, and orderFk.

    I have get a list of orders which filter those sales-cancel transaction(whi ch customer may make sales, but he/she wanna to cancel the sales), order by stallName...
    See more | Go to post
No activity results to display
Show More
Working...