Hari Dhanakoti

Greenhorn
+ Follow
since Jan 04, 2007
Merit badge: grant badges
For More
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 Hari Dhanakoti

Hi Friends,

I trying to have a Java program which runs based on the Socket programming.

In an Java program which acts as a server and a java program communicates with the server for information exchanges.

Now i have a query of handling and running a web service module program to communicate with the existing java programs which is running......

Is there is any way to communicate with the ordinary console application with the web services....
16 years ago
Can we set the form values in request attribute from servlet and display the values of the form bean in JSP?

If setting as attribute can we have any other methods to print the value of the form bean in JSP

Thanks in Advance
16 years ago
I am new to Struts and want to pass an attribute from Action servlet to JSP

I had been trying to get the values which is sent as an attribute from the Action servlet to JSP.

Action Servlet

userRegistrationForm.setUserName(userName);
userRegistrationForm.setComments(comments);
userRegistrationForm.setEmail(email);
userRegistrationForm.setPassword(password);

request.setAttribute(mapping.getName(),userRegistrationForm);

return mapping.findForward("result");

In JSP i try to read as such it displays the attribute value as null.

<html:form action="/userRegistration" >
<bean:struts id="myFormBean" formBean="userRegistrationForm"/>
<bean:write name="myFormBean" property="userName"/>
<bean:write name="myFormBean" property="comments"/>
<bean:write name="myFormBean" property="email"/>
<bean:write name="myFormBean" property="password"/>
</html:form>

Please suggest me how to get back the values from the servlet to the JSP page...

Thanks in Advance
16 years ago
Thanks
Joanne Neal,

For Your Valuable reply. I am now clear explanation with the doubt i had raised.
16 years ago
Here is the piece of code which runs without a main function.
Help me in this problem

class EndNow
{
public void p()
{
System.out.println("It also........");
}

}

class MainLess
{
static
{
System.out.println("hi it worked ");
EndNow e = new EndNow();
e.p();
System.exit(0);
}
}
16 years ago
Here is the piece of code which runs without a main function.
Help me in this problem

class EndNow
{
public void p()
{
System.out.println("It also........");
}

}

class MainLess
{
static
{
System.out.println("hi it worked ");
EndNow e = new EndNow();
e.p();
System.exit(0);
}
}
16 years ago