Kather Basha

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

Recent posts by Kather Basha

Originally posted by Tim West:
What do you mean by "code review tool"? What do you want to do?

Here code review means we need to have some automated basic review on the existing coding like naming convensions,java doc,dead methods & variables,etc and also it should allow us to define our own coding rules and should get executed at runtime while implementing that.

Depending on your requirements, Jalopy or Metrics may be of use.



-Tim

Hi All,

For one of our J2EE project we need a very good code review tool in development environment as freeware.

Can anyone help me regarding this. Please..
Hi all,

for my current j2ee project we are in the process of selecting right tool to define coding standards and to review existing java code.

Kindly help any one to get into right path regarding this.

thanx

Kather Basha.
19 years ago
Hi everyone,

while running the test server from my WSAD i'm getting this error in console.

" Unable to allocate an initial java heap of 52428800 bytes. ]
[ **Out of memory, aborting** ]
[ ]
[ *** panic: JVMST016: Cannot allocate memory for initial java heap ] "

can anyone solve this

regards

Kather Basha
Hi all,

we have developed a J2EE application using WSAD with test environment(WebSphere 5.1.2) and we have successfully deployed our appln into App server in a remote pc(PCQLinux).
In this appln we are using applet - servlet for reading database from the jsp page.
From the test pc we tried to test that remote application, we successfully loaded the application but with an error at applet - servlet communication.
the detail:
the applet succefully loaded in the jsp page.
while communicating with servlet is throwing exception saying
'java.lang.Exception:java.security.AccessControlException:access denied(java.net.SocketPermission localhost:9080 connect,resolve)'

can anyone help me.

regards

Kther Basha
Dear Friends,

i'm very new to struts framework. i was trying one sample from 'mastering jakarta struts' book. everything i coded(copied) fine as the author says. but still i'm getting an error(not expected). can anyone help me.

this is the error.
------------------
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.index_jsp._jspService(index_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)


root cause

javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:712)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:500)
org.apache.jsp.index_jsp._jspx_meth_html_form_0(index_jsp.java:144)
org.apache.jsp.index_jsp._jspx_meth_html_html_0(index_jsp.java:119)
org.apache.jsp.index_jsp._jspService(index_jsp.java:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)

Regards

Kather Basha :roll:
thanks pascal betz.

Originally posted by pascal betz:
you should be abble to create an JLabel with an ImageIcon out of a JPG file, then just add this label wherever you want to. no need to write your custom paintComponentn method.

pascal

20 years ago
Thanks Mr.Peter for your inputs, but i'm already very new to J2EE environment. so i think i can't directly go for DAO/Hibernate/Spring framework.

At present we are only using jsp for both presention and serverside validation. and some java reusable components for major database validations and updations.
be frank we are all very new to java and j2ee so we need correct architecture and design patterns to work on j2ee.
we planned to use

jsp - for presentation
servlets- for processing requests/generating responses
java beans(not ejb) - for communication between jsp and servlet(if we need from servlet to db)
java resuable components - for database manipulation.

pl ge me the right solution or any sample we application site that matches my requirement.

Regards

Kather Basha.

Originally posted by Peter den Haan:
Forgot - Rod Johnson and Juergen Hoeller have written a book with exactly this title (j2ee without EJB) and it comes highly recommended. I am prejudiced, though, having been one of the book's tech reviewers.

- Peter



Hi all,

i need a sample web application using java reflection. coz i need to know the actual object only at runtime. i need like a common interface to hold any object and should be invoked appropriately at runtime. i need this sample also should be in mvc.

Regards

Kather Basha.
20 years ago
Hello everyone,

we are planning to develop a web module which doesn't have any EJB, instead is having ordinary Java Bean Components. we have some idea in our mind, pl tell me is it suitable or any changes/suggesions on it.

architecture:

MVC -
presentation - jsp pages
- FormBean to accept user inputs(communicate between jsp and servlet)
controller - servlet
single - FontController(to process user request, JNDI lookup to get db connection, reading property file to invoke action classes)
Model -
java beans(getter and setter methods getting populated from db processor classes, travelling between database and servlet)
java processor classes doing db manipulation.

we planning to go for reflection - using single interface for all action classes and at runtime to get the appropriate class. and also singleton design pattern to get db connection using JNDI lookup.and valueobject pattern for javabean(ordinary bean) ie.MODEL.

is it ok?

Regards

Kather Basha.
Ok guys. pl let me know whether i need to use java.lang.reflect package to attain data reflection in my jsp web application.
20 years ago
JSP
Hi All,

pl get me a very good sample web application using mvc architecture which inturn should use valueobject pattern to get data reflection using java bean components(not ejb)
20 years ago
JSP
Hai friends,

i'm developing a web module without ejb, but with apache tomcat server.
in brief in my application there are,

jsp pages
servlet
ordinary java bean components for updations and validations

can i get default connection pooling, transaction mgt by using the about environment. or i need to do this manually.
20 years ago
Hi all,

pl get me efficient coding for calling a stored procedure from a java file.


20 years ago
Hi all,

i know theoritically about polymorphism that any sub class object can be assigned to its superclass reference. but i need more explaination on this with practical example how can we use in our application

Regards

kather Basha.
20 years ago