Krishna Mohan V

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

Recent posts by Krishna Mohan V

Probelm is with the first line.. first two words

Change Public to public (p should be lowercase),
Change Class to class ( c should be lowercase).

cheers
Krishna
20 years ago
Hi,

Since I am rendering the jsp using dynamic text boxes and doing validations of the textboxes using javascript,
can you suggest me to go for indexed porperties.

Thanks
Krishna.
20 years ago
I want to correct my previous mail,
I am using jsp and javascripts.

Thanks
Krishna
20 years ago
Hi,

I am struck in the middle of one web application. I am using struts 1.1 framework.

I have a form where I have nearly 12 text boxes per row, which are generated dynamically.

means I have a form where I have 12 text boxes per row and I am assigning name dynamically.[I am not using plain jsp and javascript].
The number of text boxes depends on the value fetched from database.

suppose if my database value is 10,
my form will be having 12 [Textboxes per row] * 10[no. of rows] = 120 textboxes. if the database value is 5, I will be having 60 textboxes.

my question is
How to write the action form.

I think it is a bad programming to write 120 properties and 240 methods [getter and setter].Also beacuse the textboxes changes depending on the database value, I think I cannot define 60 / 120 /200 properties and getter and setter methods.

How to handle this situation and submit the data entered by user to the action form, get them into Action class.

Any help on this is appreciated.

Thanks
Krishna.
20 years ago
Hi yuqing ma,

You can download struts 1.1 binraies from the following link.

http://www.apache.org/dist/jakarta/struts/binaries/jakarta-struts-1.1.zip,

if you are not able to get zip file, just

just go to http://www.apache.org/dist/jakarta/struts/binaries/

and choose jakarta-struts-1.1.zip( 3rd one from bottom).

Regards
Krishna
20 years ago
Hi,
I am new to weblogic and I have installed weblogic 8.1 in my machine.

I have configured a new domain by name TSdomain.

Its directory structure is :
C:\bea\user_projects\domains\TSdomain\

I have placed a folder by name defaultWebApp under C:\bea\user_projects\domains\TSdomain\applications

defaultWebApp
->index.jsp
WEB-INF
--> classes(HelloWorld.class)
--> weblogic.xml
--> web.xml

Now when I am trying http://localhost:7001/index.jsp
page is not displaying.

please clarify these questions.

1) I havent modified any of the files setEnv.cmd, config.xml or startweblogiccmd.

2) I havent set the class path.
Do I need to set the class path.

I worked in tomcat and not able to figure out thsi thing.

weblogic.xml
------------

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE weblogic-web-app
PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>
pageCheckSeconds
</param-name>
<param-value>
1
</param-value>
</jsp-param>
<jsp-param>
<param-name>
verbose
</param-name>
<param-value>
true
</param-value>
</jsp-param>
</jsp-descriptor>

<virtual-directory-mapping>
<local-path>@SAMPLES_HOME/server/</local-path>
<url-pattern>/examples/*</url-pattern>
</virtual-directory-mapping>

</weblogic-web-app>

Please help me in this regard.

Thanks
Krishna Mohan
20 years ago
Hi,

I am developing a web application using tomcat 5.0.30 , struts and backend as iBatis framework.
Becuase of being JSTL as new to me , I went for javascript.
and
In the main form, I have two fields for Username and Password.

Because I am not using validations using struts, in my struts-config.xml,I have set validate="false", line beginning with input was removed.

I have written javscript, which is taking care of these validations.

The problem is , if I enter a value for username, not for password,
javascript is displaying "Password is mandatory", but when I click "OK" button,

username and password are showing blank.

The requirement is it should retain the value entered by me in username field.

Can any of you help me please?

Although this may look simple, but in my next screens , I have nearly 25 Textboxes and I dont want all these field values being set to blank, if a alert message comes up.

Thanks in advance,
Krishna.
20 years ago
Hi,

I have installed jakarta-tomcat-5.0.30 and struts 1.1 in my machine. I already have j2sdk1.4.2_06.

I got struts-blank, struts-eaxmple and struts-documentaion.war successfully running. So my struts basic setup is fine.

Actually I am going to develop a webapplication in which it has to use the backend as oracle.

I am confused about the database access/integration and
can you please tell me where can I find struts 1.1 oracle database examples.

Actually I have gone through a link,
http://www.reumann.net/struts/ibatisLesson1.do

where I have found struts and iBatis lessons.

Can I use this ibatis framework for my webapplication.


Thanks in advance,
Krishna.
20 years ago
Hi,

I got them at the following link.

I am pasting the link so that it will be useful to others.

I have wated nearly 3-4 hrs for this search.

http://www.apache.org/dist/jakarta/struts/binaries/ [Last but 1 is struts 1.1]

and for tomcat ,
http://www.apache.org/dist/jakarta/tomcat-5/v5.0.30

Thanks
Krishna
20 years ago
Hi,

Could you please tell me where can I struts 1.1 framework binary executable.
Actually I have tried with the link http://struts.apache.org/download.cgi,
but there 1.2.4 version is availbale.

Similarly, I am not able to find the tomcat 5.0.28 , I was finding 5.5.4 version in the site.

Can you suggest me where can I get these binaries.

I am planning to use jakarta-tomcat-5.0.28 and struts 1.1 framework.


Regards
Krishna
20 years ago
Hi,

I am using c:\j2sdk1.4.2_06 javahome and c:\jakarta-tomcat-4.1.31 as webserver.

I have downloaded struts binary code and placed in c:\jakarta-struts-1.2.4.

My classpath is as follows :

.;c:\j2sdk1.4.2_06\lib;c:\jakarta-tomcat-4.1.31\common\lib\servlet.jar;C:\jakarta-tomcat-4.1.31\webapps\testApp\WEB-INF\classes;C:\junit3.8.1;C:\jakarta-struts-1.2.4\lib\struts.jar;

And I have copied struts-blank.war file into C:\jakarta-tomcat-4.1.31\webapps\struts-blank

Now I restarted my tomcat server and it is throwing 500 error.

Please help.

Thanks
Krishna.

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: org/apache/commons/logging/LogFactory
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)


root cause

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.struts.util.MessageResources.<clinit>(MessageResources.java:59)
at org.apache.struts.taglib.logic.RedirectTag.<clinit>(RedirectTag.java:85)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.apache.jsp.index_jsp.class$(index_jsp.java:70)
at org.apache.jsp.index_jsp._jspx_meth_logic_redirect_0(index_jsp.java:70)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:52)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
20 years ago
Hi,

Forward :

When a user asks for a resource, next page is rendered as a response.Just it is a way of displaying the page when a resource is asked by a user.
It is achieved using requestDispatcher.

RequestDispatcher rd = Requestdispacther.getRequestDispather(uri);
rd.forward(HttpServletRequest, HttpServletResponse);

Redirect :

When a user asks for a resouce, server sends a response, which is not the actual requested resource. It does by sending repsonse code of 302 and a URL of the requested resource.
The browser automatically makes a request with this URL and gets the resource.
Thus there is round trip operation between the client and the server. so it should be used in special purposes by using the methods
sendRedirect()...




Go through the documents for further understanding..

Thanks
Krishna Mohan.
20 years ago
Hi,

You can follow edroman 's (Mastering EJB) book to get an idea about EJB and then, go for Head First EJB by Kathy Sierra and Bert Bates for certifcation exam.

Moreover, edroman's book is freely downlaodable.

web page

Thanks
Krishna
Hi,

I have downloaded and configured jakarta-tomcat-4.1.31 and I am able to execute servlets and jsps in this environment in Windows XP.

Now I am plannning to download JBOSS. (I want to execute EJBs as well)

My doubts are, Which version of JBOSS to download and I heard that Jboss also gives tomact software. Shall have to delete existing tomcat folder??

Regards
Krishna Mohan.
20 years ago
Hi,

My reasoning is like this.

If you instantiating BigEgg2 class, bacause BigEgg2 extends Egg2, first Egg2 constrcutor must be called and so, it should display in the result as New Egg2().

Am I wrong?

Regards
Krishna Mohan
20 years ago