Featured Post

Field Marshal Sam Manekshaw on leadership

Field Marshal Sam Manekshaw on leadership I had a chance to read this article recently and just loved the way he describes leadership...

Thursday, February 28, 2008

Using terminal services

When i was working on my new project i had a very good onsite coordinator who was teaching us each and every parts of the project very well and in details. It was little funny at the start when we had him explaining each and every part very carefully and in details just like spoon feeding a small child.

But it was very useful session that we had. He taught us how to use terminal services. At first when we heard about terminal services we did not understand what it was. We were using windows XP. So when someone says terminal services we were shocked.
Hold on before i go further you must be wondering whom am i saying we we we... Well its just a small team from India with Pradeep and myself. Pradeep is a good expert in technology.When i say technology its not specific technology. Any new technology to be learned he learns very fast not only that he can learns he does lots of R&D in the new stuffs.

Okay now about terminal services:
When we heard about terminal services we thought that it was something great and tough. But the way our onsite coordinator took the class we were just amazed. The onsite coordinator(Jon Aquilio) one of the best person to teach freshers about any technology. He taught the usage of terminal service very perfectly.

Terminal services is nothing but using Remote desktop in windows XP. To open the remote desktop dialog click on start > programs > accessories > communications > Remote Desktop Connection. In the dialog enter the IP address or system name of the system that you would like to connect. Remember that you can connect to systems that have windows flavour. You will not be able to connect to a Unix/Linux box.
After you enter the IP address/system name click on connect button. This will take you to a screen that will ask for username and password. The username and password of the system you would like to connect. After logging you will be able to see the desktop of the machine you are connecting. You will be able to work on that system very similar to the way you work in you desktop. The only difference is that the other system is little slowers that your normal desktop.
Once you have used the other system dont just close the window. You will be have to logoff from that system. To log off click on the start button and select log off user. This will log off you from that machine and someone else will be able to connect to that system.
Thats it. Now you know how to use terminal services. :-)
yahooooooooooooooooo!!! and i have a satisfaction that i taught someone. If you find any information on this article not correct please let me know so that i can change those and let others who read be updated with the right knowledge.
- Cheers be happy and live happy. :-)

Wednesday, June 28, 2006

input type="image" submit's the form

When we have a input type="image" inside a form then that image link can be used to submit the form. No need to write seperate onclick function to submit the form.

This can happen only for input type="image". It does not apply to img src="".....
Need to take extra care when using input type="image". Or else form will be submitted.

Monday, May 22, 2006

Dynamically adding text box in JSP

You can dynamically add text box on runtime when you click on add Button.
Assume you need to create a text box and on run time when you click on add button.
Create a for loop around the text box and on click of the add button increment the for loop condition variable.
for Example.

for(int i=0;i<=count;i++){
text box code.....
}

Add Button.(onClick="javascript:reloadPage();");

when the add button is clicked in the javascript code resubmit to the page.
On top of the page in scriptlet have a variable called count initialise to 1.
for Example: int count = 1;
When the page reloads increment the count with 1. like count++;
Now the count will be 2 and in forloop 2 text box will be created.
If u need the value of the 1st text box to retain. Take that value in request and reassign to the text box.
For text box have the variable as textbox<%=i%>
So each time the loop comes it will create dynamic text box.

Tuesday, March 21, 2006

System.out.println OR out.println

When u get any error in JSP this first step to find the problem is to give System.out.println(If you want to see the output in console) OR you can use out.println(If you want to see the output in the screen itself). Try to give as much as possible.
Right click on the jsp you might get a null pointer exception in the view source.

Sunday, March 12, 2006

Shortcut debug technique for developers in JSP/JAVA

I have intended to start this blog as a first step to get my thought on the web. There are many ways to debug an application. Many of them have their own style. I intend to put some of my ways of debugging. I am not sure if this will help you to solve your problem. But just give it a try may be its saves your time.:-)

Google Custom search

Custom Search