Nandkishore Dhilde

Greenhorn
+ Follow
since May 09, 2002
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 Nandkishore Dhilde

A session is begun when servlet (or filter) code invokes the HttpServletRequest.getSession() method. And that time web container generates unique id as name JSESSIONID and embeded as value of a cookie
9 years ago
Hi

If you are using javax.swing.JTree for displaying File Tree then you can use its jTree.setEditable(true) .. which adds listner to rename file and folder. After setting this true you dont have to do much, by double clicking on file/folder name, it allows rename it just like windows explorer

Ref : http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTree.html#setEditable(boolean)

Code example : http://www.java2s.com/Code/Java/Swing-JFC/FileSystemTree.htm
9 years ago
Instead of using scriplets you should use following way

keep ur variables in pageContext

<catalogue:bottom_nav page="ProductDefList.jsp" rowCount="${rowCount}" searchtext="${searchtext}" searchby="${searchby}" />

and keep ur varaibles <rtexprvalue>true</rtexprvalue> in *.tld file defination

and in catalogue tag's doStartTag method write this code for all evaluting variables
rowCount= ExpressionUtil.evalNotNull("rowCount",
"rowCount", rowCount, Object.class, this, pageContext);

hope this will solve ur problem...

Nandkishore
14 years ago
JSP
why dont you use connection pooling. creat some connections cache it in HashMap and reuse it using JDCConnectionPool.java it will return available connection and if not available it will creat one
go through for more detail..



web page
14 years ago
yes it requires if tablib provided by struts doesnt satisfies your needs..but they provided most of general purpose useful tags
14 years ago
Its very simple you just need to create
public class MenuBarTag extends BodyTagSupport {
// and in doStartTag or doEndTag u can call the getHtml() where u can write pure html code for creating menus...
public int doEndTag() throws JspException {
try {
this.getHtml() //write here html code
} catch(JSPException ) {}
}

}
14 years ago
JSP
hi chaityana
u need to just call
<c:if test="${alive}">

b.coz EL takes only attribute names and construct the get(is)MethodNames().
14 years ago
JSP
which weblogic version u r using, if it is 5 then there is deployer tool in bin dir of bea weblogic ......use that to create stub and skeleton classes u hav just browse ur ejb.jar file
Or if ur using 6 /7 version through admin console u just browse ur jar file under application mode.
rest it will create stub-skel classes and depluy ur ejb.. no need to use command line deploymnet
16 years ago
EJB is a serverside component architecture that simplifies the process of building enterprise-class distributed componant application in Java. By using EJB u can write scalable,reliable, and secure applications without writing ur own complex distributed component framework.
some examples where we can use EJBs are:
1. Stock trading system
2. Banking System
3. Customer call center
Where u can think of distributed working environment.
for the best start use following mastering ejb by ED Roman this one free PDF e-book. also this url contains some good articles related to EJB and its design pattern
http://www2.theserverside.com/books/masteringEJB/index.jsp
or you can do after firing query
int rowcount = rs.getRow(); //rs is ResultSet object
if(rowcount ==0) // then ur query returns null result and if more than 0 then go for rs.next()
In jsp using usebean u create instance of shopcart
<jsp:useBean id = "shopBean" class="shopCart" />
then use like this
shopBean.insCartItem("12345678",2);
17 years ago
JSP
can one java application running in 32 bit VM talk to other running in 64-bit VM?
17 years ago
When try to compile Class B then gives error at
public void process(A a)
{
a.i = a.i*2;
}

b'coz i is protected variable of p1 it can'nt accessed in another packages.
Index.jsp file is in following dir
C:\bea\user_projects\mydomain\applications\DefaultWebApp\Index.jsp
and when i call it gives following errorCompilation of 'C:\bea\user_projects\mydomain\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_6588870\jsp_servlet\__index.java' failed:
--------------------------------------------------------------------------------
C:\bea\user_projects\mydomain\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_6588870\jsp_servlet\__index.java error=3
--------------------------------------------------------------------------------
Full compiler error(s):
java.io.IOException: CreateProcess: /bin/javac -classpath C:\bea\user_projects\mydomain\applications\DefaultWebApp\WEB-INF\classes;C:\bea\user_projects\mydomain\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_6588870;C:\bea\jdk131_02\jre\lib\rt.jar;C:\bea\jdk131_02\jre\lib\i18n.jar;C:\bea\jdk131_02\jre\lib\sunrsasign.jar;C:\bea\jdk131_02\jre\classes;C:\bea\jdk131_02\lib\tools.jar;C:\bea\weblogic700\server\lib\weblogic_sp.jar;C:\bea\weblogic700\server\lib\weblogic.jar;\lib\tools.jar;C:\bea\weblogic700\samples\server\eval\pointbase\lib\pbserver42ECF172 .jar;C:\bea\weblogic700\samples\server\eval\pointbase\lib\pbclient42ECF172.jar;C:\bea\user_projects\mydomain\clientclasses;C:\bea\user_projects\mydomain\serverclasses -d C:\bea\user_projects\mydomain\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_6588870 C:\bea\user_projects\mydomain\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_6588870\jsp_servlet\__index.java error=3
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:477)
at java.lang.Runtime.exec(Runtime.java:443)
at weblogic.utils.Executable.exec(Executable.java:208)
at weblogic.utils.Executable.exec(Executable.java:133)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:545)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:354)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:406)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:206)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:160)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:447)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:287)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:376)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
--------------------------------------------------------------------------------
Mon May 20 11:27:31 IST 2002
17 years ago
yes i am able to open admin console the only problem with jsp compilation
17 years ago