Joshua Cloch

Ranch Hand
+ Follow
since Apr 27, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Joshua Cloch

or you can search "double combo".
18 years ago
JSP
Thanks guys. I have tested it and it works pretty well.
18 years ago
JSP
Yes, Microsoft Word is used to generate the document first, which is then copied and moved to the website.

I have also copied the same content and tested it using yahoomail or googlemail, it works well. So, I guess there must be some solutions.

Any ideas?
[ February 16, 2007: Message edited by: Joshua Cloch ]
18 years ago
JSP
Hello guys,

My problem is : when I send an email using my website application, the website automatically changes some special marks like ' to ? .

Any ideas?

Thanks a lot.

[Bear edit: changed topic title to make this easier to search for in the future]
[ February 16, 2007: Message edited by: Bear Bibeault ]
18 years ago
JSP
Hey, please avoid using the scriptlet directly in jsp pages.

As other people menthioned, it is a good idea to wrap the database processing in servlet. However,it really depends on your application.You can use JSTL in jsp pages for small-scale application.You may find "connection pool" is very useful.Do a google search please.
18 years ago
JSP
Thanks guys,

Your ideas are very useful in my application--which is not very big.

Still, I am curious about the giant website,like ebay, amazon, how do they solve this kind of problem: say, there are more than two users operating exactly the same in an auction. It may happen, although not that often.
That is really a good idea,however,what if there are two or more users retrieve the field at the same time and, submit the latest data at the same time too?
Hey guys!

Here is the problem: I have implemented a website for internal use. The users may edit the same line in database concurrently, which may cause collision.

However, I can set a lock on the particular line before edit operation. Do you think this is the only solution?

In some extream case, what can I do if the users require the lock at the same time? Is there any idea?

Thanks a lot!
Thanks a lot,man!
18 years ago
JSP
Hey guys,

Here is the problem: suppose i want to check whether string A contains string B.

I may use this funtion: <c:if test="${fn:contains(A, B)}">

If A is a varibles,for example,A is defined as ${param.customerName};B is a constant:tom

The funtion is converted into:

c:if test="${fn:contains('${param.customerName}', 'tom')}">

Problem occurs! The tomcat server wont get the value defined by ${param.customerName},instead,it just treat it as a constant string.

Any ideas?
[ January 11, 2007: Message edited by: Joshua Cloch ]
18 years ago
JSP
Hi, many of us has met this application: when we intall a software, there is a bar which descibes how much is already installed,and how much is left. I am just wondering can we implement such application in jsp pages when there is an operation(such as querying database) which may consume lots of time?
18 years ago
JSP
Hi guys,

Here is the problem, is there any good idea to count the elements in paramValues?

Thanks.
18 years ago
JSP
you may need to convert the webpage file into a outputstream;
process this procedure in a servlet is preferred.
18 years ago
JSP