Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.

Andy Smith

Ranch Hand
+ Follow
since Sep 28, 2003
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 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(JspParseEventListener.java:1193)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:236)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:641)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:501)
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:322)
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:757)

***********

JSP
10 years ago
JSP
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
12 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?

Thanks
12 years ago
Hello,

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


java.sql.SQLException: Exhausted Resultset
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:170)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:212)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:275)
at oracle.jdbc.driver.OracleStatement.prepare_for_new_get(OracleStatemen
t.java:2693)
at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.jav
a:2828)
at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.
java:307)
at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:137
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.
Hi

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. ?

Thanks
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;
xmldoc.save(file);
document.location.reload(true);


</script>
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 ]
Hi

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
12 years ago
Hi,
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
12 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 ?
12 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);
}
env->DeleteLocalRef(utf_str);
*****************
Should I change code to look like this ?
1. Using isCopy .

2. Using DeleteLocalRef.


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

MSGAPIFUNCTION PSMsgSetField(PSMSGHANDLE hContext,
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 ]
12 years ago