chinna kumar

Greenhorn
+ Follow
since Sep 29, 2004
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 chinna kumar

am getting this exception and displaying message as "Cannot parse POST parameteres of the request.
12 years ago
hi,

i have 3 radio buttons and three text boxes. onload, one of the radio button is selected by default and for this corresponding values are displayed in the three text boxes. if i select other 2 options corresponding values must be displaye din the text boxes.

first one, i cud achive by hardcoding valued, to be sent to db for retrival.

how to do dynamic changes... on selecting corresponding radio values needs to be sent to class function as of now its hardcoded


thanx
Chinna
13 years ago
JSP
Hi,
i tried this but this does not work.

this is the modification i have done

ServletContext context;

now am trying access value using: context.getAttribute("Sim");

it says context needs to be initialized, for this is it possible to intialize without setter method as ServletContext context=getServletContext(); but this too does work..........

please help me out...
Chinna
13 years ago
This is my servlet:::::

ServletContext context=getServletContext();
context.setAttribute("Imsi",imsi);
context.setAttribute("Msisdn",msisdn);
context.setAttribute("Sim",sim);


now we need to access these variables from java class file raher than jsp file.
cud anyone help me out???


Chinna
13 years ago
hi,

i have 2 variables.

int i=10;
String st= new String();

how to assign i to String.

i tried in this way..
st=(String)i;
but it thows error.. itried with toString().. also.


any clue.. please...


Chinna
13 years ago
hi Praful Thakare,
it works!!!

Thanx A Lot

Chinna
13 years ago
Hi,
am trying to access servlet thru browser using using url: http://localhost:8080/venu/servlet/BasicServlet , it says not servlet not available.

this is my code

directory struture is....webapps/venu/WEB-INF/classess, under classes i have placed this servlet.

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class BasicServlet extends HttpServlet
{
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
doPost(req,res);
}
public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
ServletContext context=getServletContext();
String username=(String)context.getAttribute("username");
if(username==null)
{
// username=new String("kumar");
context.setAttribute("username",new String("kumar"));
}
res.setContentType("text/html");
PrintWriter out=res.getWriter();
out.println("<html>");
out.println("<head><title>BasicServlet</title></head>");
out.println("<body>");
out.println("The Current UserName Is:::::"+username);
}
public static void main(String[] args)
{
System.out.println("???/");
}
}



please help me out...


Regards
Chinna
13 years ago
Hi,
i just want to know, what exactly FrameWork is???... why do we go for struts.. Advantages of Struts...May be this is basic question.. but many interviews i cud not explain it properly.. cud anyone briefly give me the points.

Thanks& Regards
Anil
13 years ago
hi,
i came to know many answers across for the following question.



What is the difference between an Interface and an Abstract class?

cud anyone tell me exactly..when to use which..and why we go for these..

really.. i cud not get properly this...

Thanks &Regards
Chinna
13 years ago
Hi,
you can refer either of the following books.

1.Jakarta Struts-----ooriley

2.Complete Reference(Struts)

WISH U ALL THE BEST
13 years ago
hi,
i need to pass a variable to alert function,i tried many ways,but i cud not get the result.

this is my code..

<%
String MSISDN=(String) application.getAttribute("Msisdn");
String IMSI=(String) application.getAttribute("Imsi");
String SIM=(String) application.getAttribute("Sim");
%>

<script language="javascript">
function one()
{
alert("value of"+MSISDN+" is"+MSISDN);
}

please advise me on this
13 years ago
JSP
i am very new to weblogic server. where can i get more info regarding deployment of war files,database connection,EJB deployment.please advise me on this.

thnx in advance
13 years ago
Hi Friends,
i have been using Eclipse since 6 months. i never had any problem in the past. but now when i try to start it says " problem in startup check the log".
And the following is the error log from the .meta directory....
cud anyone help me out!!!

!SESSION ----------------------------------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 Dec 30, 2004 11:33:17.414
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ExceptionInInitializerError
at org.eclipse.core.internal.plugins.RegistryLoader.processManifestFile(RegistryLoader.java:89)
at org.eclipse.core.internal.plugins.RegistryLoader.processPluginPathFile(RegistryLoader.java:136)
at org.eclipse.core.internal.plugins.RegistryLoader.processPluginPathEntry(RegistryLoader.java:127)
at org.eclipse.core.internal.plugins.RegistryLoader.processManifestFiles(RegistryLoader.java:104)
at org.eclipse.core.internal.plugins.RegistryLoader.parseRegistry(RegistryLoader.java:63)
at org.eclipse.core.internal.plugins.RegistryLoader.parseRegistry(RegistryLoader.java:71)
at org.eclipse.core.internal.runtime.InternalPlatform.parsePlugins(InternalPlatform.java:779)
at org.eclipse.core.internal.runtime.InternalPlatform.loadRegistry(InternalPlatform.java:723)
at org.eclipse.core.internal.runtime.InternalPlatform.loaderStartup(InternalPlatform.java:574)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.internal.boot.InternalBootLoader.startup(InternalBootLoader.java:1011)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:838)
13 years ago
Hi everyone,
Thanks a lot, i cud perform ZoomIn and ZoomOut operations Successfully.

Kumar
13 years ago
Hi everyone,
I Am Doing a small application on images. I have Created menubar with menus in a frame, and I am displaying a image using Toolkit and MediaTracker using drawImage function.
Now how can i perform ZoomIn ZoomOut operations like to reduce and increase the height and width of the image.
I am passing only 4 parameters to drawImage Function, they are image,x,y,this.
cud u help me out to perform ZoomIn, ZoomOut operations.

Kumar

[ EJFH: Removed "URGENT" and many exclamation points from subject line.]
[ November 03, 2004: Message edited by: Ernest Friedman-Hill ]
13 years ago