Prashanth reddy

Greenhorn
+ Follow
since Aug 17, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Prashanth reddy

Hi,
I written a jsp with few rows of data.i need to send exact row data to the next page.Here is my code
<FORM name="myform" method="get" action="senddata.jsp">
<TABLE width="75%" border="0">
& lt;TBODY>
<%for(int i=0;i<4;i++){
%>
< TR>
< TD width="79"><INPUT type="submit" name="delete" value="Delete" onKlick='callDelete();return false'></TD>
< TD align="center" width="148" ><INPUT type="text" name="bankCd" id="bankCd"
value="111" >& lt;/TD>
< TD align="center" width="185">& lt;INPUT type="text" name="augProdCd" id="augProdCd"
value="001" size="11" /></TD>
< TD align="center" width="183">
< SELECT name="subProdCd" id="subProdCd">
< OPTION value=001 >001</OPTION>
< OPTION value=001 >002</OPTION>
< OPTION value=003 >003</OPTION>
</SELECT></TD>
</TR>
<%} %>
</TBODY>
</TABLE>
</FORM>


Problem : If i click Delete button on any row is sending all form values to the next page.but i need to send only the values corresponding to that delete button

Please anybody can help this ???(any thing I can write in javascript function callDelete()....I am new to javascript..i donno all the functions or methods)
Please send me the sample code how to procede further...
Thank You
Hi,
can anybody help me to write the code for finding the status of webservice.
my task is to write a java server page that displays the present status of webservice(stopped or running),Queuecheck etc.
If anybody knows anything please help me out...

Thanks
17 years ago
Am really sorry...there is no J2EE 1.4 in WSAD 5.0....(only 1.2 and 1.3)
May be it wont support....
18 years ago
JSP
Yes It is....if u use J2EE 1.4 level.
18 years ago
JSP
am using WSAD 5.0
18 years ago
JSP
Hi man...
here is my web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp">
<display-name>Sample</display-name>
<context-param>
<param-name>company</param-name>
<param-value>NetXert Inc</param-value>
</context-param>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/application-1.0</taglib-uri>;
<taglib-location>/WEB-INF/lib/taglibs-application.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/page-1.0</taglib-uri>;
<taglib-location>/WEB-INF/lib/taglibs-page.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/request-1.0</taglib-uri>;
<taglib-location>/WEB-INF/lib/taglibs-request.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/response-1.0</taglib-uri>;
<taglib-location>/WEB-INF/lib/taglibs-response.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/session-1.0</taglib-uri>;
<taglib-location>/WEB-INF/lib/taglibs-session.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>jspsql</taglib-uri>
<taglib-location>/WEB-INF/lib/jspsql.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/i18n-1.0</taglib-uri>;
<taglib-location>/WEB-INF/lib/i18n.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/datetime-1.0</taglib-uri>;
<taglib-location>/WEB-INF/lib/taglibs-datetime.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/string-1.0.1</taglib-uri>;
<taglib-location>/WEB-INF/lib/taglibs-string.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/utility</taglib-uri>;
<taglib-location>/WEB-INF/lib/utility.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/mailer-1.1</taglib-uri>;
<taglib-location>/WEB-INF/lib/taglibs-mailer.jar</taglib-location>
</taglib>
</web-app>


am using J2EE level 1.3.
18 years ago
JSP
Hi,
Thanks for ur response.
yes,EL expressions are not working....
Can You tell me how to setup to work it properly..
18 years ago
JSP
HI,
I have two jsp pages.
index.jsp,errorpage.jsp.
In index.jsp am calling <jsp:include page="errorpage.jsp"/> meantime i am passing a parameter to display on errorpage.jsp.

Here is the sample code for
index.jsp:
----------
<BODY>
<P>
<jsp:include page="errorpage.jsp">
<jsp:param name="subtitle" value="Page Not Found........."/>
</jsp:include>
</P>
</BODY>

errorpage.jsp:
---------------
<BODY>
<P>Error Message:</P>
<EM><STRONG>${param.subtitle}</STRONG></EM>
</BODY>

Expected output is:
-------------------
Error Message:Page Not Found.........

output am getting is:
---------------------
Error Message:${param.subtitle}


Please help me to get the expected output...
Is there any mistake ??/
18 years ago
JSP
hi,

It is simply SUPERB....u r the man....
Thanks alot

Pramod Reddy
18 years ago
Hi I have a SOAP file.... i converted into string.
i would like to search the value of a perticular node.

The soap String is:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><GetQuoteRequest xmlns="http://schemas.vanguard.com/StockQuote"><symbol xmlns="">wqw</symbol><company xmlns="">qwq</company></GetQuoteRequest></soapenv:Body></soapenv:Envelope>

the program to look for perticular node is
public XPathNavigator(String xmlSource) throws TransformerException{
if ( xmlSource!=null) {
Debug.println("XPath xml=" + xmlSource);
String xpath = "/Envelope/Body/GetQuoteRequest/symbol";
InputSource inputSource = new InputSource(new ByteArrayInputStream(xmlSource.getBytes()));
DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
try {
root = dfactory.newDocumentBuilder().parse(inputSource);
NodeIterator nodeIterator = XPathAPI.selectNodeIterator(root, xpath);
Node node = nodeIterator.nextNode();
System.out.println("the node u r searching is : " + node.getNodeName());
System.out.println("value of the node : " + node.getNodeValue());

}
catch (ParserConfigurationException pce) {
throw new TransformerException(pce.getMessage());
}
catch (IOException ioe) {
throw new TransformerException(ioe.getMessage());
}
catch (SAXException se){
throw new TransformerException(se.getMessage());
}


}

I am getting the node.But the value of the node am getting is null


PLZ help me ....
18 years ago
Hi,
i want to prepare for SCDJWS..
Any Head First meterial(or book) for this certification?
Hey I am using RAD 6.0.
I am sending Bytesmessage to a queue.
I am finding all the remaining methods except getBodyLength().
what is the problem. i need this method to dynamically allocate the byte array.
plz help me
Thank You
yah there is only one jar file, and it is in EAR .
And in MANIFEST.MF class path directs to this jar file.
but still am getting this problem
18 years ago
JSF
Hi,
[I]I created a project with name "tech" n Enterprise application project name "techEAR".I am using RAD.
i placed JSF related jars in tech/WebContent/ WEB-INF/lib folder.and placed my application related jars in techEAR.

And i selected all my application jar files from tech->properties->java JAR Dependencies.And selected these jars from

tech->properties->java buildpath->Order and Export.

when i run my application sample JSF page it is looking for one of my application jar file in WEB-INF/lib but it is already

in techEAR.i am getting problem with that jar file only, there is no problem with other jar files.i dont know why i am

getting this problem.
If i placed that jar file in WEB-INF/lib, the application works fine.But as my project developement, i should place that jar

in techEAR only.please help me.
[/I]

the error its displaying is:

com.navtech.util.rsa.jsf.tag.CommandButtonTag This is often caused by having the class at a higher point in the classloader

hierarchy Dumping the current context classloader hierarchy: ==> indicates defining classloader *** indicates classloader

where the missing class could have been found ***[0]
com.ibm.ws.classloader.CompoundClassLoader@628e451c Local ClassPath:


C:\projects\Apps\tech\WebContent\WEB-INF\classes;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-beanutils.jar;C:\projec

ts\Apps\tech\WebContent\WEB-INF\lib\commons-collections.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-digester.jar

;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-fileupload.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-lan

g.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-logging.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-v

alidator.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jakarta-oro.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jaxen-

full.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jsf-api.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jsf-ibm.jar;C:

\projects\Apps\tech\WebContent\WEB-INF\lib\jsf-techpl.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jstl.jar;C:\projects\A

pps\tech\WebContent\WEB-INF\lib\jstl_el.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\saxpath.jar;C:\projects\Apps\tech\We

bContent\WEB-INF\lib\standard.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\struts.jar;C:\projects\Apps\tech\WebContent\WE

B-INF\lib\taglibs-datetteche.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\taglibs-mailer.jar;C:\projects\Apps\tech\WebCon

tent\WEB-INF\lib\taglibs-string.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\utility.jar;C:\projects\Apps\tech\WebContent

\WEB-INF\lib\webarch.jar;C:\projects\Apps\tech\WebContent; Delegation Mode: PARENT_FIRST ==>[1]

com.ibm.ws.classloader.JarClassLoader@1659208988 Local Classpath:

C:\projects\Apps\techEAR\DisMidTier.jar;C:\projects\Apps\techEAR\TEB.jar;C:\projects\Apps\techEAR\pls.jar Delegation mode:

PARENT_FIRST [2] com.ibm.ws.classloader.ExtJarClassLoader@1582138652 Local ClassPath: C:\Program Files\Rational

Software\RAD6.0\runtteches\base_v51\lib\app; Delegation Mode: PARENT_LAST [3]

com.ibm.ws.classloader.ProtectionClassLoader@599a051c [4] com.ibm.ws.bootstrap.ExtClassLoader@3097451d [5]

sun.misc.Launcher$AppClassLoader@308d051d [6] sun.misc.Launcher$ExtClassLoader@30f1051d ---Original exception---

java.lang.NoClassDefFoundError: com/sun/faces/taglib/html_basic/CommandButtonTag at java.lang.ClassLoader.defineClass0(Native

Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at

java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at

com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:446) at

com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at

com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:300) at

java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at

com.ibm.ws.classloader.ReloadableClassLoader.loadClass(ReloadableClassLoader.java:83) at

com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:294) at

java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at

com.ibm.ws.webcontainer.jsp.compiler.BasicTagBeginGenerator.init(BasicTagBeginGenerator.java:77) at

org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:1015) at

org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:185) at

org.apache.jasper.compiler.ConfigurableParseEventListener.handleTagBegin(ConfigurableParseEventListener.java:739) at

org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:221) at

org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:216) at

org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:862) at org.apache.jasper.compiler.Parser.parse(Parser.java:1155) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1113) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:902) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1155) at org.apache.jasper.compiler.Parser.parse(Parser.java:1113) at

org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:902) at org.apache.jasper.compiler.Parser.parse(Parser.java:1155) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1113) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:902) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1155) at org.apache.jasper.compiler.Parser.parse(Parser.java:1113) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1109) at

org.apache.jasper.compiler.ParserController.parse(ParserController.java:344) at

org.apache.jasper.compiler.Compiler.compile(Compiler.java:225) at

org.apache.jasper.compiler.Compiler.compile(Compiler.java:129) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet.loadJSP(JspServlet.java:956) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:285) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:317) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781) at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at

com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at

com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at

com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at

com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at

com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at

com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at

com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1019) at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:592) at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:204) at

com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125) at

com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286) at

com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at

com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182) at

com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at

com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at

com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615) at

com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912) ---

end Original exception----
18 years ago
JSF
yah i did that
i am also selected the jar from the project/properties/java buildpath....
but the same problem...
any other setting???
18 years ago
JSF