Kev lam

Greenhorn
+ Follow
since Mar 04, 2005
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 Kev lam

Thanks Alan. You are right. I forgot setting it to module-aware mode. It works now.

I really appreciate your help.

Kev
18 years ago
Thanks for your reply. I thought the bad definition of Tiles plug-in caused Tiles not working in my app. Apprently it's not. I think the reason is using Multiple modules and Tiles.

I put the following code in the struts-config.xml and Struts can find my home page.


But in one of the module config file,struts-config-samplemodule.xml, I put the similar code. The files cannot be found.

in struts-config-samplemodule.xml file,


Do you have any idea what I am doing wrong here? I really appreciate your help.

Thanks.
Kev
18 years ago
Could anyone tell me that how Tiles work in Struts1.2? I used Tiles in Struts1.1. Apperantly there are some changes in Struts1.2 about using tiles. In web.xml file, when I add a Tiles Plugin, WSAD tells me that invalid data for attribute "property". Could anyone give me a hint/

Thanks.
Kev

18 years ago
Thanks alan. As you said, it's just a WSAD warning. My applicatin runs smoothly without any problem.
18 years ago
Hi everyone,

Can anyone help me out here?

Below is a struts config file of one of the modules. WSAD keeps telling me that Form Bean baseForm does not exist. But apparently I declared "baseForm" in <form-beans> part.

Can anybody tell me what I am doing wrong here?

Thanks so much.
Kev


18 years ago
Eric,

Thanks for your quick reply!

I created a web application in WSAD by using the built-in Struts support which is 1.1(Beta). Then I downloaded Struts 1.2.7 library. I replaced the related jar files, tld and dtd files that WSAD put in my application with those from Struts 1.2.7 library.

Am I doing the right thing? May I say that my application is upgaded to Structs 1.2.7?

Thanks.
Kevin
18 years ago
I know that WSAD5.0 has built-in Struts support for Struts1.1(Beta). But does WSAD5.0 support Struts1.1 and 1.2? If I download Strut1.2.7 or Struts1.1 and create a web app from them in WSAD, what will happen?

Thanks.
Kevin
18 years ago
Thanks David. I think I got your point.
19 years ago
Adeel,

Thanks for your reply.

(1)If I have a class called ThreadsManager and all threads related activities such as creating threads, starting threads, and terminating threads are handled by this class. In my servlet, I call ThreadsManager.startManageThreads(). Can this consider as "outside the servlet"? If not, could you give me an example?

(2)Could you explain a little bit more on "other all messed up"?

Thanks.
Kevin
19 years ago
Even you use the same jsp file to submit data to validate and display the result you can still do this.

On the server side, after the validation, you may put a boolean variable or an object in the request object to indicate if the data is passed the validation. In your jsp file, you may get that variable from request and check it in javascript code.

I hope I understand your question.

Thanks.
kevin
19 years ago
Ed,

Thank you for your reply and sorry I did not make it clear.

I mean I create a thread pool and maintain it myself. The threads will be used to do some stuff like calling a web service and doing some calculation.
Is there a conflict between the thread pool maintained by Servlet Container and the thread pool I created. I just can not see how it works.

Thanks.
Kevin
19 years ago
You may pass a variable to your jsp file and do something like this.

<%
if( invalid_value){
%>
alert("oops");
<%
}
%>

Not sure if this is the right answer for you.

Kevin
19 years ago
My colleague and I had a discussion about using multi-threading in an internet application. I think that the servlet container has its own thread pool to handle the requests. If using multi-threading, the container will get confused and will generate unprdictable results. Could anyone tell me whether I'm right or not.

P.S. if the admin thinks this question belongs to Thread forum, please feel free to help me move there.

Thanks.
Kevin
19 years ago