Anay Nayak

Greenhorn
+ Follow
since Aug 15, 2006
Merit badge: grant badges
For More
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 Anay Nayak

if cookies are disabled then the session id is usually appended to the url. I hope the urls for the iframes are encoded too.
17 years ago
JSP
I prefer using the Eclipse Web tools platform .

http://www.eclipse.org/webtools/

i have not yet used this for jsf (do check if it is supported, not sure about that).
Well your xml is invalid.

You do not have a root element in your xml document.

http://www.w3schools.com/xml/xml_dtd.asp

Something like
<?xml version="1.0" ?>
<entries>
<entry>asdasd</entry>
<entry>asdasd</entry>
<entry>asdasd</entry>
</entries>

would work properly.

Always test your xml in either Internet explorer or Firefox. It helps [ ]
17 years ago
here is something you can do with the WTP(Web tools platform) set of plugins.

Web Tools Platform
17 years ago
You are calling getText immediately after setting the page url. I guess the content isnt entirely loaded before you call getText.
17 years ago
You have not added a semi colon at the end of the statement

Check variable "sql" something seems to be missing out there.
In your last log file i can see two errors

1) SEVERE: Parse Error at line 49 column 17: The content of element type "struts-config" must match

Your struts-config file has some errors. Remove those errors.

2) You are possibly running two instances again! I hope you are only using the ant script now...and not the "start service" button . The ant task only starts tomcat. It doesnt shut it down.
17 years ago
I guess you are running the ant target directly from eclipse. In that case, select the target, in run menu select "Run..." and then in the JRE tab select the JVM you want to use.
17 years ago
Well i can see two errors...

1)StringBuffer strXML= new StringBuffer("<?xml version=1.0 ?>"); the value 1.0 shoud be in quotes. new StringBuffer("<?xml version=\"1.0\" ?>");

2) You have not defined objddl variable
17 years ago
You first have to start tomcat in debug mode. Since you are using ant to start the server you will have to modify the build.xml file so that appropriate parameters are passed to tomcat during start up.

Search for the target in your build.xml and add the parameters
<target name="tomcat-start-debug">
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
<jvmarg value="-Dcatalina.home=${tomcat.home}"/>
<jvmarg value="-Xdebug"/>
<jvmarg
value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"/>

</java>
</target>
17 years ago
did you try calling the action class directly? Did it return any output ? If that failed..then i guess you have not set the configuration properly.

Another thing that i noticed, what's the purpose of strXML? You dont seem to be using it. I guess that was supposed to be part of the output

Check the last post by Merrill over here
[ September 13, 2006: Message edited by: Anay Nayak ]
17 years ago
Hi

Since your action class is not being called, most probably your request is not being set properly.

Try calling the action class directly by setting the url location to

http:// <server name >/ context path/ SecondOptionsAction.do? requestparams

see if you get the proper xml output.
17 years ago
Instead of document.Form1 try using document.forms[0] or document.forms['Form1'].

Originally posted by Bhuvana Varsini:
I am using javascript which tries to read a file stored in local disk.



Javascript is used for client side scripting. And based on your previous comment i am assuming that you want the file to be opened from the client's disk and not from the server.

In that case, using the window.location would be useless. You need to provide a facility to the user to input the file location (which may be anywhere on his system) unless ofcourse if you are pretty sure that the file does exist on every user's machine at a fixed location. Using localhost:8080
is a server url and not the user's machine.

If you want to load a file which is present on the server itself , you shouldnt be using javascript! Use some server side technology (e.g. Servlets ) to store the file on the server side.

It all depends on what exactly you are planning to do
I guess Chetan gets the input in the form of a List of Character objects and the initial part of the code was just to create a dummy example?
17 years ago