Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Joshua Cloch

Ranch Hand
+ Follow
since Apr 27, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Joshua Cloch

or you can search "double combo".
14 years ago
JSP
Thanks guys. I have tested it and it works pretty well.
14 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 ]
14 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 ]
14 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.
15 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!
15 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 ]
15 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?
15 years ago
JSP
Hi guys,

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

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