Well, for some reason I wanted change the property assigned to a checkbox element in my jsp page dynamically from an object in an array from my formbean
Here is how I did it:
{logic:iterate id="myList" name="someForm" property="arSomeList"}
{bean:define id="theVariableINeed" name="myList" property="theValueInArray"} {/bean:define}
{% String property=""; %}
{html:checkbox property=" '{%="property+theVariableINeed"%}' value=""}
{/html:checkbox}
Wow, looks so easy now, thought I spent hours trying to work it out :(
Note: { = < it was causing errors on blogger :)
Tuesday, 21 October 2008
Monday, 20 October 2008
Saturday, 18 October 2008
Saturday, 11 October 2008
Ubuntu.. Reset root password
When I realized that I forgot the root password, I was worried that it might be difficult to reset it, especially for a linux newbie like me, but little googling relife my fears .
Reseting the root password is simply as follows:
~$ sudo passwd root
[sudo] password for user: ( type your password)
Enter new UNIX password: (type the new root password)
Retype new UNIX password: ( re Enter it)
passwd: password updated successfully ( congrats you changed the root password)
So easy !!!!!!!!
That makes me wonder , is changing root password that easy on other Distributions ?!!!
Will never know unless I try .
Reseting the root password is simply as follows:
~$ sudo passwd root
[sudo] password for user: ( type your password)
Enter new UNIX password: (type the new root password)
Retype new UNIX password: ( re Enter it)
passwd: password updated successfully ( congrats you changed the root password)
So easy !!!!!!!!
That makes me wonder , is changing root password that easy on other Distributions ?!!!
Will never know unless I try .
Subscribe to:
Posts (Atom)