Raghu Kumar

Greenhorn
+ Follow
since Jan 08, 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 Raghu Kumar

Originally posted by vithal kambhammettu:
can you be a little more specific about what your servlet intended to do and the trace that was produced, so that it might be little easier to get to the root of the problem


This actually produces around 3-4 pages of trace. Actually this error comes when the servlet is being initialised. The trace includes both java exceptions and the IBM messages as well. In the middle it throws Illegalstate exception.
19 years ago
Hai,
I am using IBM websphere. When I try to load my servlet I am getting the following error. Can any one suggest me please...
Instantiate: TestServlet
20679.291 1891bc ServletInstan A Loading.servlet:."TestServlet"
20679.416 1891bc WebGroup A [Servlet.LOG]:."TestServlet"
20679.416 1891bc ServletInstan A Servlet.available.for.service:."TestServlet"
20705.025 1891bc WebGroup X Servlet ERROR: {0}
<null>
com.ibm.servlet.engine.webapp.WebAppErrorReport
at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:431)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:1012)
This error comes and it produces pages of trace.
Thanks in advance
19 years ago
Actually the html file is generated by a xml file using some xsl. so the html is produced in such a way that the attribute NAME is not present. I am not aware of xml. o i can't tell any details about xml. so that's my requirement

Originally posted by Tony Alicea:
You give the <INPUT> a NAME="..." attribute and value. What's preventing you from doing it that way? Then use request.getParameter(...) to retrieve the String value of the INPUT element.
You can try the [b]java.util.Enumeration getParameterNames()
of the ServletRequest interface and see what is returned from a no-name INPUT... Probably nothing. [/B]


19 years ago
Hi,
Is it possible to get the value in the servlet of a text field in HTML which doesn't have a name.
<input type="text" size="30" maxchars="30">
If i give the above in html a textfield is appearing. But if i want to retrieve the value entered using servlet how do i do that??

Thanks,
Raghu
19 years ago
I have an servlet application which takes text from a text area and sends to an java application which sends an e-mail to mainframes theu mqseries and unix servers. But since the text is sent as a single field and since the field length on the mainframes is restricted up to 75 chars the text which is sent is getting truncated at 75 character. Can somebody help me out how to resolve this??
Regards,
Raghu
19 years ago
can some one give the url for a good material on threads to understand the concepts well??
Hi,
For some websites you don't need to type the 'www' infront of the url but some websites needs the 'www' infront of the url to proceed. Can some one tell what's the difference between the two and the reason?? Is it related with the registration of the website or some thing else??
Cheers,
Raghu
19 years ago
Thanks for the reply Frank. I am not using the same servlet for all the three pages. i am using three servlets for each three html pages. so i mean to say that in this case can i access the object's of one servlet in another servlet?

Originally posted by Frank Carver:
This sort of problem is precisely why the concept of "sessions" was invented. Look up HttpSession in your servlet books/websites, and you should find lots of examples of gathering or chacking information in one servlet and using it in another.
Even if your pages are generated by a single servlet (not usually a good idea, unless you delegate to other classes or templates), you should still store your information in the session to make sure that your system still works when more than one person tries to access it at once.


19 years ago
Hi All,
i have a small doubt regarding JDBC with servlets.
suppose assume that i have 3 html's( called using servlets). main page which takes care of logging in, second page is to retrieve and display data from database and third page is to enter data. So if i create a connection object,statement object if the user is valid in the first page can i use the same objects in the second and third html pages(servlets)? If so what should i do? Do i need to declare these objects to be static or is there any other way to handle this? Hope my question is clear?
Cheer's,
Raghu
19 years ago