Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

george justin

Greenhorn
+ Follow
since Jul 31, 2001
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 george justin

got the solution...mistake in my setter/getter methods
thanx anyways.
justin.
18 years ago
yes it has the logic library included..
The page is loading fine and displaying the values.
Its only when I have to save that the problem arises....
please I am running out of time............
18 years ago
Hi,
I have a jsp which has three levels of nested logic:iterate tags. The values all set properly...however when I submit the form the action form is not populated.
The action form has a collection of formA's.
The formA's have a collection of formB's.
The formB's have a collection of formC's.
The parameters are being submitted...
the request parameters are available on the Action class...
formA[0].formB[0].formC[0].attribute1 etc
There are appropriate getter and setters methods which ensures that the indexed object exists prior to setting the form values.
am i missing something.......
any hints would be appreciated.
thanx,
george.
18 years ago
thanx jess and shane, I think both your answers should work.
and dave ..I have changed my name ..jus the way u want it.
cheeeers,
george.
19 years ago
JSP
Hi
For saving some data entered in initial.jsp I call save.jsp which does the necessary save and returns to the initial page through a forward to initial.jsp.
However the url still stays at save.jsp and a click on refresh button of browser resends the info and creates duplicate records in DB.
I dont want to use send redirect and I dont want to use javascript to disable refresh button.
I wqant the url to reflect initial.jsp after the save so that refresh does nothing....
can somebody help me out.....
thanx,
fred.
19 years ago
JSP
Could somebody help me out here....with some sample code...
thanx.
fred.
19 years ago
can anybody tell me how to change the default applet session timeout value. The applet we are using seems to be killed by netscape after about half an hour of activity...
thanx.
george j
19 years ago
could some one help me by telling me the max char size of the query string that can accompany a get request.
I am currently able to send close to 650 chars as part of the query string when an applet calls upon a servlet.is this OK?
a speedy reply would be appreciated.
thanx.
george.
19 years ago
how to disable pruning of aplets in netscape
20 years ago

Originally posted by Vinod Venugopal:
Hi,
I have a JTable with model extended from DefaultTableModel. The table is in a frame with a Save button. If a cell is edited & when I click on Save , the new cell values should be obtained.Im not able to get the updated values on Save. Im storing the selected row in a vector. Any suggestions pls.
Vinod


Hi Vinod
in the action performed method of the button, u can write
.
.
table.getCellEditor().stopCellEditing();
.
.
this works well..
i hope u have Overridden
setValueAt(..)

method from AbstractTableModel or DefaultTableModel class.
getCellEditor returns and instance of DefaultCellEditor if u have not subclassed any CellEditor, if so cast it to the corresponding CellEditor..
Try out if not mail me i will mail u the code.
Good Luck
George Justin




20 years ago
Hi Kumar
I think FontMetrics Object gets updates automatically for that particular component, u can get the instance of FontMetrics from
Font f = new Font("","","");
getFontMetrics(f); at any point of time
method of the component class, no need to get instance from the graphics class
Cheers
George Justin

20 years ago
Hi
I think, setting the property of JFrame, setResizable(false); should do it

JFrame f = new JFrame();
f.setResizable(false);
Cheers
George Justin
20 years ago
Hi Sidhu
are u building u'r table from any model(Defaulttablemodel or abstracttable model) scroll bars automatically show up. If u r not getting the scrollbars then try to set.
setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
property of Jtable as JTable tend to resize itself
Cheers
George Justin
20 years ago
Hi
You can try this out
String[] param = {"c:\\program files\\plus!\\microsoftinternet\\iexplore.exe","www.javaranch.com"};
Runtime r = Runtime.getRuntime();
Process p = null;
try
{
p = r.exec(param);
}
catch(Exception e)
{
System.out.println("Error executing " + e);
}
Bye
George Justin
20 years ago
Hi
can anybody help me out in mapping keyevents to scrollbars, the UP,DOWN,LEFT,RIGHT keys as i am not suppose to use mouse on TV applications......
20 years ago