User Profile

Collapse

Profile Sidebar

Collapse
abehl
abehl
Last Activity: Oct 16 '08, 11:50 AM
Joined: Sep 3 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • abehl
    started a topic Setting Select box using struts2 tag
    in Java

    Setting Select box using struts2 tag

    Hi I have 2 combo boxes in a form.

    When the one combo box say COMBO1 is changed, onchange event runs with the option selected being appended to the url and the action associated with that action called (refreshing the page).
    Based on the URL, COMBO2 is set.

    Now my problem is when page refreshes, COMBO1 is getting the same value as before ie Option1 remains selected.

    I should mention at this time...
    See more | Go to post

  • abehl
    started a topic Struts2 autofill of combo box
    in Java

    Struts2 autofill of combo box

    Hi,

    I have a form, which has a combo box called employee list. By default this list should have all the employees in the database.

    I have another combo box called shift details, which is fixed.

    I have the project in struts2.

    Now when in this form I select the shift, some logic has to run and employee list in the employee combo box needs to be reduced to all the employees working in that...
    See more | Go to post

  • abehl
    started a topic IBatis DB2
    in DB2

    IBatis DB2

    Hi I am using DB2 with IBatis and I need to have a where clause which looks like

    Code:
    WHERE UCASE(ps.DIAN_DESC) like UCASE(#prodCodeorName#)
    But UCASE(#prodCode orName#) is giving an error.

    Can anyone tell me how do I use DB2 functions with Ibatis inline parameters.

    Thank you.
    See more | Go to post

  • abehl
    replied to DB2 Dates and Ibatis
    in Java
    The date object I talked about is a java date object.

    I dont know where else the question would suit coz its not purely a database related question as well.
    See more | Go to post

    Leave a comment:


  • abehl
    started a topic DB2 Dates and Ibatis
    in Java

    DB2 Dates and Ibatis

    Hi I had a question about DB2 dates.

    I am trying to understand how the flow works in a system.

    Firstly date is stored in the database as a 21 character format an example is
    "20080808145325 00+0000" it seems to be of the form "yyyyddMMhhmm.. ..".

    The dates are stored with
    Code:
    INSERT INTO TABLE1(
    DATE_TO)
    VALUES(
    #dateTo:CHAR#)
    ...
    See more | Go to post

  • abehl
    replied to Struts2 - iterator tag
    in Java
    Ok am really struck here

    Code:
    	private void dataReady(){
    		for (int itr = 0; itr < this.HOURS; itr++) {
    			tempList = new ArrayList();
    			// Add all the till related data
    			for(int tillItr = 0; tillItr < this.terminalList.size(); tillItr++){				
    				tempList.add(this.transactions[itr][tillItr]);
    				tempList.add(this.unitsSold[itr][tillItr]);				
    			}
    			// add all overall
    ...
    See more | Go to post

    Leave a comment:


  • abehl
    replied to Struts2 - iterator tag
    in Java
    But I need to use struts2 iterator tag.

    [code]
    <s:iterator ....>
    ---
    ---
    </s:iterator>
    [,/code]
    See more | Go to post

    Leave a comment:


  • abehl
    started a topic Struts2 - iterator tag
    in Java

    Struts2 - iterator tag

    Hi I had a question about struts2 iterator tag.

    Suppose I had an array of the form

    Code:
    private int [][]transactions = new int[11][this.size()];
    and had getters and setters for this.

    Now using iterator tag I need to display this

    Code:
    Hour     Mac1 Xact     Mac2 Xact .... MacX Xact  
    00:00        5             3     ....     2
    01:00        6
    ...
    See more | Go to post
    Last edited by Nepomuk; Sep 10 '08, 09:45 AM. Reason: Table wasn't being shown properly

  • abehl
    started a topic Javascript call from java
    in Java

    Javascript call from java

    Hi,

    Is it possible to call javascript function from within java?

    I am using Java not applet.

    Thanks in advance.
    See more | Go to post
No activity results to display
Show More
Working...