sun ram

Ranch Hand
+ Follow
since Dec 18, 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 sun ram

Do use script let in JSP 2.0
17 years ago
JSP
For easy user Administation. Basically you store all user information like userid, password, Name in LDAP. we can configuraion other applcation to authentication agianst LDAP.

check out openldap website for more information.
18 years ago
I don't thing you can get this information using lsof command. lsof command will give currently openned files list. It will not give file access history information.

Also I don't know any commands for this.

-SR
18 years ago
Hi,

We have used Redhat 7/8/9 and Enterprise Linux with IBM & JDK for different application, we didn't have much problem with it.

Also for some application I Am using SuSE 9.0/9.1.

-SR
18 years ago
Hi,
I have following JSP file, basically I want to create an array collection and assing some values. But is not working, giving me error message.
What I am doing worng here?
-SR
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>Array Collection</title>
</head>
<body>
<br>
<jsp:useBean id="item" class="java.util.ArrayList"/>
<c:set target="${item[0]}" value="hello"/>
<c ut value="${item[0]}"/>

</body>
</html>
Error message
2004-04-19 15:03:11 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspTagException
at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:202)
at org.apache.jsp.arr_jsp._jspx_meth_c_set_0(arr_jsp.java:108)
at org.apache.jsp.arr_jsp._jspService(arr_jsp.java:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
at java.lang.Thread.run(Thread.java:534)
Hi,
Even I would suggest to take the newer version. JSP 2.0 has lot of new features. reduce lot of development work.
-SR
HI
First start to learn about JSP. Use Tomcat 5 for jsp 2.0.
This will give you some idea about JSP.
I don't know much about velocity.
SR
18 years ago
JSP
Use JSP 2.0 you can reduce lot of coding. also look at this
http://www.common-controls.com/en/products/
product, this will give you some idea.
SR
18 years ago
JSP
Hi,
I want to print the hastable name value, but its not working.
Here is the code, I want to print name key value.
===========
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.util.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
<title>c:set test</title>
</head>
<body>
C:Set Test
<br>
<jsp:useBean id="n" class="java.util.Hashtable" />
<c:set value="name" target="${n}" property="Hello World"/>
name values is:
<c ut value="${n.name}"/>

</body>
</html>
============
I except the out Hello World, But its not printing.
Any help?
SR
Looks like now they changed to schema file.
http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd
SR
some more info:
after adding servlet mapping like this in web.xml file able to access the servlet.
web.xml file:
<servlet>
<servlet-name>TestingServlet</servlet-name>
<servlet-class>TestingServlet</servlet-class>
</servlet>


<servlet-mapping>
<servlet-name>TestingServlet</servlet-name>
<url-pattern>/servlet/TestingServlet</url-pattern>
</servlet-mapping>
URL to access:
http://localhost:8080/scwd/servlet/TestingServlet
SR
Hi,
Do I need to create servlet definition in web.xml file. My understating is optional,
With tomcat 5 I was not able to access the sample servlet.
I have sample servlet in webapps/scwd/WEB-INF/class directory (No package name used)
I am using the following URL, its giving me the error message.
http://localhost:8080/scwd/servlet/TestingServlet

reference URL:
http://www.informit.com/isapi/product_id~%7BEFDC83A5-06F4-4823-9A80-3248B6CF0DDD%7D/element_id~%7BBB84D3D2-26A7-4F94-B468-CCB0F2389A42%7D/st~%7B94C03A97-1188-4875-8A06-17743BA224B7%7D/content/articlex.asp
Is any thing changed in new specification?
SR
Hi,
What is the latest DTD file for java web application. I am using this URL is this correct one?
http://java.sun.com/dtd/web-app_2_3.dtd
SR
Using BigDecimal I was able to print the value, how will I store this in float varible.
Code:
String val = "149368.87";

java.math.BigDecimal b = new java.math.BigDecimal(val);

System.out.println(NumberFormat.getInstance().format(b));
output:
149,368.87
SR