Syed Khateeb

Greenhorn
+ Follow
since Sep 30, 2006
Merit badge: grant badges
For More
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 Syed Khateeb

Well i did it now & its working fine.

Thank you.
17 years ago
Thank you Roshani,

The link was helpful to find the problem i had, And now my sample aplication is working. Indeed it has very useful common error handling information.

Thanks & regards.
17 years ago
Hello,

I'm new to struts. Well i have started with a small struts application running on tomcat. i have set the classpath settings for Servlet & jsp-api.jar, and struts.jar. But still i'm finding an error while starting the application:

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection.
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)

.



I have kept the struts-html.tld file at the right place, is it the problem with struts tag library?

The code in my application is the one from the book professional Jakarta Struts 1.1 http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764544373,descCd-download_code.html

can somebody suggest what could be the problem, is there any other classpath settings required?

Thanks & Regards.
17 years ago
Hello,

I have created a directory named check inside a default directory, with two source files A.java & B.java.

//B.java
package check;
public class B{
void count()
{
System.out.println("This is count");
}
}

//A.java
package check;
public class A{
public static void main(String[] arg)
{
B b = new B();
b.count();
}
}

B.java compiles fine, but A.java doesn't compile & says

cannot find symbol class B

.

whats the problem in my understanding?
17 years ago
Hello,

Could you tell me the difference between website/portal and a web application?

As i understand a website is one which is deployed on webserver machine & serves request by giving response which is static web page.
while a web application is also deployed on a web/application server machine & processes the request & gives response which is dynamic, one that is computed at runtime(based on user data recieved).

Please correct if i'm wrong somewhere.

Thanks & regards.
17 years ago
Why is it advised to override doGet()&/doPost() instead directly overriding service()?
Is it only because the possibility of having implementations for for other doXyz() methods is not possible?
17 years ago
Hello,

I need some clarity on whether the Servlet(controller) or the JavaBean/reuasable java class(Model) holds the business logic code, invokes the EJB component, queries a database.

As i understand, its the servlet that handles the original request, invokes the business logic & data-access code and creates beans(model) to represent the results.
But i was confused when read in HFSJ, that business code is taken out of the servlet & put in model, which is combination of the business data & the methods that operate on the data.

Thanks.
17 years ago