Sam Chako

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

Recent posts by Sam Chako

Thanks Jeanne and Joel,

I think I understand why I should use EJBs to take care of the concurrency problem.

Your comments have been extremely helpful !!

Thanks again,
Sam.
20 years ago
Hello,

I am calling static methods in a DAO (for database updates and select) from a stateless session bean; i.e. in the ejb I have method calls to DAO like:

DAO.update(String str1, String str2, .....);

If there are many concurrent users for this particular static DAO method, will performance be affected? How can I overcome this bottleneck?

Thanks in advance,
Sam.
20 years ago
Thanks Jason,
I did figure a way out of the mess -
First the problem:
<html:form ... action="MyAction.do"...... >
<logic:iterate ........... id="rowData" >
<bean efine id="something" name="..." property="someVal"/>
<html:select name="rowData" property="srlNum">
<html ptions collection="something" labelProperty="..." property="desc" />
</html ptions>
</html:select>
</logic:iterate>
</html:form>
I had to get individual values of the SELECTs for each row. Problem was they all had the same name. I thought that if I could fire some JavaScript for the onChange() event of SELECT ...I would need the row number and hence nested tags.
Alternative Solution
--------------------
In MyAction class:
String[] vals = request.getParameterValues("srlNum");
int i = vals.length;
for(int j=0; j< i; j++){
logger.info("Value " + (j+1) + "= " + vals[j]);
}
Thanks a lot guys.
Sam
20 years ago
Can I have code like this :
<html:select name="rowData" property="srlNum" onchange="popVal(<bean:write name="rowData" property="srlNum"/> ">
Let me know if anyone has tried this.
Thanks,
Sam.
20 years ago
Hello,
I am trying to display special characters (apostrophe - Tom's 'special' gift) using <bean:write name="rowData" property="theValue" filter="true"/>
I have tried filter="false" also without any success.The value displayed on the JSP is always - Tom?s ?special? gift .....
Does anyone have any suggestions how I can display the exact string including the apostrophes ?
Thanks,
Sam.
[ April 13, 2004: Message edited by: Sam Chako ]
20 years ago

Originally posted by Marilyn de Queiroz:
Did you include the j2ee.jar in your classpath?


------------------------------------------
I added the j2ee.jar in the classpath. After adding I got the following error:
500 Internal Server Error
Error parsing JSP page /examples/jsp/num/numguess.jsp
Syntax error in sourceerror: Invalid class file format in C:\PROGRAM FILES\JAVA\J2RE1.4.0\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
/examples/jsp/num/numguess.jsp.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
import javax.servlet.*;
^
2 errors
SO I guess Orion cannot run with j2sdk1.4.
I am being able to run Orion with j2sdk1.3.
Thanks,
Sam.
21 years ago
I have installed Orion 1.5.2 on Windows 98 using J2SDK 1.4.0. I have copied the "tools.jar" into the C:\Orion folder.
Though the server starts & stops perfectly, it gives an Internal Server error (error 500) while compiling JSP files.
Do I have to use tools.jar from jdk1.2.2 or additional changes are required for running on Windows 98 ?
Thanks in advance.
Sam.
21 years ago