Andy Smith

Ranch Hand
+ Follow
since Sep 28, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Andy Smith

I am getting this exception, though the same JSP is working in one other environment. Adding the snapshot of JSP at bottom.
org.apache.jasper.JasperException: <h3>Validation error messages from tag library c</h3>Illegal text inside "c:choose" tag: "<table>...".Illegal child tag in "c:choose" tag: "c:if" tagIllegal text inside "c:choose" tag: "</table...".Illegal text inside "c:choose" tag: "<table>...".Illegal child tag in "c:choose" tag: "c:if" tagIllegal text inside "c:choose" tag: "</table...".Illegal "choose" without child "when" tag
at org.apache.jasper.compiler.JspParseEventListener.validate(
at org.apache.jasper.compiler.Compiler.compile(
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(
at com.iplanet.ias.web.jsp.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationDispatcher.invoke(


10 years ago
Its working now, actually the method name in the exception was misleading.

That method does exists, but its calling a method in a pagebean, which actually is not present, reason being old class files for the pagebean.

Thanks a lot
11 years ago
I am getting this error while executng a method through reflection.

java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError

Where as the method is there inthe classs...

ANy other reasons You can think of?

11 years ago

I am getting the below mentioned exception, any one having any idea ?

java.sql.SQLException: Exhausted Resultset
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.driver.OracleStatement.prepare_for_new_get(OracleStatemen
at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.jav
at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.
at oracle.jdbc.driver.OracleResultSet.getString(
Hi Bear,

I completely agree with your point, I am habitual of using the shortcuts, but will make consious effort not to go against the rules of this helpful community.

Sorry for any inconvinience caused.
Thats what exactly I was lookin for

U r great, it worked.

This is the code I am using:

var xmldoc = new ActiveXObject("Microsoft.XMLDOM");

is this possible to get the xmldoc in the form of a String ?

I mean all the contents of the doc in Stirng form. ?

1. I am sorry Eric, but I am not able to find this option in the broswer, I am using IE,

2. Isn't this possible (Save), in default settings ?

3. If I am openiing a File from the local System, I guess it should not have permission probelem, Its not openeed from net...
I am getting permission denied error on Save...

- I need to open the file LOCALLY, and save with changes
- Even if the Warning message appears, I am ok.

Here is the code, a urgent help would be really appreciated...

<script language="Javascript">
function create1() {
var file = document.location.href;

var myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
var xmldoc = new ActiveXObject("Microsoft.XMLDOM");
var boolVal=xmldoc.load(file);
var oNode = xmldoc.selectSingleNode("//*[@id='EmpName']");

oNode.getAttributeNode("value").nodeValue = document.all['EmpName'].value;;

Enter Name:<input type="text" id="EmpName" name="EmpName" value="sss"/>


[ July 10, 2006: Message edited by: Andy Smith ]
[ July 10, 2006: Message edited by: Andy Smith ]

I am looking for Java API's to edit microsoft word doc, my requirement is that I have a word document, with fields like name, emplid, dob etc. these fields are blank and to be populated at run time.

So my requirements are:

1. I should be able to keep the word document as a template... and populate at run time.

2. The API's should also be able to run in UNIX/LINUX Box

Its bit urgent as I need to provide the solution to the client, urgent help would be appreciated...

Thank YOu
11 years ago
I am using this code and trying to run on unix environment.

DocumentBuilderFactory lDocBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder lDocBuilder = lDocBuilderFactory.newDocumentBuilder();
Document lDoc = lDocBuilder.parse(new File(/cram/ext/cramprop.xml));

It throws exception...

File 'file:///cram/ext/cramprop.xml' doesn't found....

I want to have absolute path... any solution how I can do that ?
Its not the particular address...

Just that I am thinking of using this in the application, so wanted to tell the client before hand about the email address validation

Thanks for ur reply
11 years ago
What are the email address validations performent by the javamail ?

What r the conditions in which javax.mail.internet.InternetAddress will throw AddressException ?
11 years ago
I m using:-

const char *value = pEnv->GetStringUTFChars(str2, 0);

Should I try passing a jboolean as second parameter something like:

jboolean isCopy;
*value = (pEnv)->GetStringUTFChars(theString,&isCopy);

and releasing on the basis of isCopy...

What do u think ?


jstring utf_str =
(jstring) env->GetObjectArrayElement(objArray, i);
const char* c = env->GetStringUTFChars(utf_str, &isCopy);
fprintf(stdout, "\t objArray[%d] = (%s)\n", i, c);
if (isCopy == JNI_TRUE) {
env->ReleaseStringUTFChars(utf_str, c);
Should I change code to look like this ?
1. Using isCopy .

2. Using DeleteLocalRef.

[ May 15, 2006: Message edited by: Andy Smith ]
11 years ago
This is the signature of te method

LPCSTR lpcszFieldName,
LPCSTR lpcszValue);

Strange thing is that it works for the first time. Then Crashes the next time, and always works for the smaller size of the value.

It ONLY Runs for one time when the message length is > 320, May be this can give some idea
[ May 15, 2006: Message edited by: Andy Smith ]
11 years ago