Lalit Bansal

Ranch Hand
+ Follow
since Jan 29, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Lalit Bansal

top...

Can anyone please respond to the above query asap.

Thanks in advance.

regards,
16 years ago
Can anyone provide me pointers to tutorial (except the API) on using tags of struts-nested taglib.

More specifically, I'm looking for what <nested:root> tag does ?

Can anyone help me out in understanding this jsp code on following points:
1) In the <nested:root> tag what does the attribute "name=message" refer to ?

2) Is "message" some logical name to any other bean class ? If yes, how can I find that class ?

3) Also, what do the attributes in other nested tage mean ?

16 years ago
Hi Dharmendra,

Thanks very much. It does work with your solution.

Any reason(s) for such behavior ?
17 years ago
Ulf,

There are no differences in the code except the method names.

When my html request is GET type, I get the values of input fields.
But when request is POST type, I get null values.

Amit : Form uses GET method when call in servlet is to doGet Method
Form uses POST method when call in servlet is to doPost Method

Is this issue anything related with server I'm using?
17 years ago
Pls excuse me for a long post. As becuase there was a bit of confusion in the forum because I'd posted incorrect code earlier, I'm posting both the code - which does not work(i.e., code using POST method) and which works (i.e., code using GET method)

CODE THAT

DOES NOT

WORK






CODE THAT WORKS



[ UD: Removed the HTML from both examples, because -being unformatted in a single line- it screwed up the layout. Please be careful to post formatted code only, and check the layout after posting. ]
[ April 29, 2008: Message edited by: Ulf Dittmer ]
17 years ago
I'm using Eclipse 3.3.2 IDE.

The servlet stub code was generated automatically from it. I've just implemented my logic in the doPOST method.
17 years ago
I've tried with request.getParameter() also. But still the POST method gives null values.
17 years ago
Pls excuse me for putting incorrect servlet code.
The code is as follows:
17 years ago
I've written the login (of retrieving parameters) in doPost method.
In doGet I'm calling the doPost method by passing request and response objects.





17 years ago
Hi,

I'm implementing a simple web application.
I've a jsp page. In the FORM tag I've defined action of my servlet class and method as POST.
The form contains two text fields and a submit button.

In my servlet, I'm doing request.getParameter(<<text field name>> .

If I'm using GET method, I get the values entered in the text fields.
However, if I'm using POST method, I get null values.

Can anyone pls help me out with a solution for same.

Thanks in advance.

I'm using Tomcat5 webserver.

regards,
Lalit
17 years ago
Hi Paul,

Thaks for the information.

I shall be highly obliged if your could help me further in my requirement. I want this variable to be converted to a string. The purpose is that I want the entire code portion between <xmlInput> tags as a String.

Thanks in advance.

regards,
Hi Paul,

That is exactly what I want. I want to know how to put the code between <lif:xmlInput> and </lif:xmlInput> tags in a variable.

Thanks in advance.

regards,
Hi,

I've the following XSL:



On applying this XSL on the concerned XML, I get properly required transformed XML.
Now, I want a portion of this transformed XML into an XSL variable. This variable should have exact copy of the portion of XML that I require; which means it should include all the tags, values, etc.
The portion that I require to copy in the variable is between the <lif:xmlInput> and </lif:xmlInput> tags.

Pls help me out with the soultion for same. Any pointers shall be highly appreciated.

Thnx in advance.

regards,
[ December 14, 2007: Message edited by: Ulf Dittmer ]
Hi Chandra,

It works with writeObject() and readObject() methods.

Thanks.

regards,
During serialization, if I'm implementing my own writeObject & readObject methods then which method should I use to read a String.

Please view the following code:



Here I've written a String using writeChars() methods while serializaing object. But there is no similar method while reading object during de-serialization.

Can anyone help me out in same.

NOTE - I know that we can do same using defaultWriteObject()/defaultReadObject() methods. But I intentionaly want to go this way. Please provide a solution in the same context.