Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!

Satya Komirisetti

Greenhorn
+ Follow
since Apr 23, 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 Satya Komirisetti

I really appreciate ur support !I have recently done SCWCD i have good knowledge of Servelts and Jsp,want to improve my programming skills so that when i enter the live envirnoment i wont freak out.Is there any possiblity of getting dummy or live project,so that i can seat at home and gain some experience.
what could be ur advice for new comes like me,who like to seek job in J2ee side,what should they know and what should be there expertise.
Thank you,Satya!
[ November 03, 2004: Message edited by: Satya Komirisetti ]
16 years ago
Hello !
Could any one help in finding the resources(sites and books) for programming on servlets and Jsp for improving the better programming skills and getting some idea on live envirnoment.
Thank You very Much,
Satya!
16 years ago
Hi Raj,I also started Custom Tags recently but stuck in tag Library mapping,
https://coderanch.com/t/285035/JSP/java/anybody-help-me-fix-jsp
I am curious to know ,what tool u are using.Does it require settings anywhere.
Thanks!
16 years ago
JSP
javax.servlet.http.HttpSession ses= request.getSession(true);
boolean viewPermission = true;
ses.setAttribute("VIEW",viewPermission+"");
/* boolean--> Sring[I]*/
String sobj=(String)ses.getAttribute("VIEW");
[I]/*obtain Session Atribute value in String Obj,then convert into Boolean Obj and extract the booelan value*/

Boolean bobj = new Boolean(false);
bobj= bobj.valueOf(sobj);
boolean b2 =bobj.booleanValue();
[ May 24, 2004: Message edited by: Satya Komirisetti ]
16 years ago
JSP
I moved .tld file to WEB-INF, then also i am getting the same error
Error Message: JSPG0135E: No such tag example in the tag library imported with prefix etag
Error Code: 500
Target Servlet: null
Error Stack:
org.apache.jasper.JasperException: JSPG0135E: No such tag example in the tag library imported with prefix etag
at org.apache.jasper.compiler.TagLibraries.isUserDefinedTag(TagLibraries.java:94)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:781)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1089)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1040)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1036)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:236)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:677)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:230)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:247)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:123)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

Thanks
[ May 24, 2004: Message edited by: Satya Komirisetti ]
16 years ago
JSP
I am being new to Jsp tag library,notunderstanding where i am making mistake.Working in WSAD 4.0.1.No compile-time error & runtime error is :JSPG0135E: No such tag example in the tag library imported with prefix etag
Tag Handler class
/* location: webApplication/WEB-INF/classes/tag/ExampleTag.class */


import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
public class ExampleTag extends TagSupport
{
public int doStartTag()
{ try{
JspWriter out = pageContext.getOut();
out.println("Hello u'r in tag example");
} catch(java.io.IOException ioe)
{System.out.println("error occured at " + ioe);}
return(SKIP_BODY);
}
}

Tag Library Descriptor File
/* location: webApplicationWEB-INF/classes/tag/taglib.tld */

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems,Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>etag</shortname>

<info> A tag library from coreservlets and jsp</info>
<tag>
<name> example</name>
<tagclass>/WEB-INF/classes/ExampleTag</tagclass>
<bodycontent>EMPTY</bodycontent>
<info> prints some text onto the screen</info>

</tag>
</taglib>
jsp file
/* location: webApplication/WEB-INF/classes/tag/tagexample.jsp */

<HTML>
<HEAD>
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>tagexample.jsp</TITLE>
</HEAD>
<BODY>
<%@ page language="java" %>
<%@ taglib uri="/taglib.tld" prefix="etag" %>
<H1> <etag:example/></H1>
</BODY>
</HTML>

Thank You
[ May 22, 2004: Message edited by: Satya Komirisetti ]
16 years ago
JSP
use Session or Servletcontext to persist data between the servlets.eg before redirecting add the username to session by
request.getSession().setAttribute("Username","value");
and retrieve it in destination URL by
String name = request.getSession().getAttribute("Username");
(note this is when Session is Active).
17 years ago
no compile time errors,no exceptions,no run time errors .Inthe browser Jsp code is displayed instead of result.
I am running in regular mode only.
Thank you
[ April 28, 2004: Message edited by: Satya Komirosetti ]
17 years ago
try this
request.getServerName();
17 years ago
Hi ,I am new to jsp ,doing in WSAD.I trying to run simple code
<%@ page language="java" %>
<%! int i,j;%>
<% for( i = 0,j=10;i<=j;i++) { %>
<%= i %>
<% } %>
no compile time errors and when running on browser,whole code is dumping.Do i require to set something somewhere?if so,how?Is there any procedure to follow?
thanks
[ April 23, 2004: Message edited by: Satya Komirosetti ]
17 years ago