sihani rani

Ranch Hand
+ Follow
since Jun 22, 2010
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 sihani rani

i am passing the table data from servlet by adding request attribute..but while printing through EL,it is not printing the table..please find the below

Servelet
=========

request.setAttribute("tableDatas","<table><tr><td>JAVA RANCH</td></tr></table>");


IN jsp
======

<c:out value="${tableDatas}"/> ----> it is printing "<table><tr><td>JAVA RANCH</td></tr></table>".............i need that it ll print table..kindly help on this.




9 years ago
JSP
again thank you verymuch Jesper de Jong

now i understand the picture.

is each jvm instace sharing base JVM memory which we have configured initially?
can i add multiple JVM to Application Server?
If Yes,i have multiple application installed in App server.can i configure each application should run under some specific JVM??


Thanks in advance.
9 years ago

Jesper de Jong wrote:There are not two different things named "JVM" and "JVM instance". This is only an understanding of language problem. Your questions 1 and 2 are therefore not really meaningful.

When you start multiple Java programs on your computer, each of those programs will run in a separate process, with a separate JVM (instance).

Question 3: Only when you run your program from Eclipse, a new process, with a new JVM, will be started, in which your program is run. Just because you've opened a project in Eclipse to work on the code doesn't mean that there's a JVM running for that project.



Thanks for your reply Jesper de Jong,

In each operating system having one JVM.but in windows task manager i can see more than one java.exe.
In here my question is
1)each java.exe process is different JVM or it is pointing to same JVM?
2)all JVM instance are having separate memory and heap and method area?..if its having different memmory and heap then it is different JVM,right?

Kindly give a solution on this.


9 years ago

I have lots of sonfusion about JVM and JVM instance.i ggogle it but could found related topics.my question is,

1)what is JVM instance?is there any different between JVM instanse and JVm(Means all JVM instance is difernet JVM)?
2)does application runs on diferent JVM or different JVM instance?
3)In eclipse i have configured one JVM in eclipse.ini file.where as i have mutiple projects in eclipse.all are useing one JVM?

Kindly help me.
Thanks in advance.
9 years ago
I am using log4j to my project for logging datas.

the following code is used to create Logger instance.



My question is why should we declare Logger as static?


thakns in advance.
10 years ago
I am using log4j to my project for logging datas.

the following code is used to create Logger instance.



My question is why should we declare Logger as static?


thakns in advance.
10 years ago
The below code is my jsp file

The below code is my java file.its in "kad" package

The below code is my .tld file


When i run jsp file in tomcat server,i got the bellow Exception


An error occurred at line: 42 in the jsp file: /sample.jsp
The type kad.FirstTag is not visible
04:
05: <body>
06: <hr>
07: <gh:kader></gh:kader>
08:


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:307)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)




solution need urgently,
Thanks in advance.
10 years ago
JSP
Hi all.

This is XMLfile and DTD file for that xml file

XML File




DTD file

<!ELEMENT message ( operation ) >

<!ELEMENT operation ( #PCDATA ) >
<!ATTLIST operation action NMTOKEN #REQUIRED >
<!ATTLIST operation key NMTOKEN #REQUIRED >
<!ATTLIST operation type NMTOKEN #REQUIRED >

My question is

1)How can i get Operation element type value,action value and key value by java coding???
2)how can i retrive value ie "firstdocument " by using the key ie DocumentName in java?







please reply
thanks in advance.
Hi all,


I am new to XML.How can i create new DTD file in XML?


Rob Spoor wrote:Do you mean an applet? Or how are JavaScript and Java otherwise combined in your application?




not in applet.its in server.
11 years ago
hi


how can i get javascript popup window name in java?


thanks in advance for your reply
11 years ago
hi


What is the difference between List obj=new ArrayList() and ArryList obj=new ArrayList();


11 years ago

hi all,

how can i send sms to mobile in java and jsp via tomcat server???


please reply me......

thanks in advance...









11 years ago
please reply me...



thanks in advance...
11 years ago
hey

you declare "opt,errmsg,ename" are all in string format...
when you get value ,you use "int" format..so only error occured..
so change 'int' to 'string' type..

11 years ago