manipualting a select list from within an event handler

2008-09-24 Thread Robert Welz
Manipulating checkboxes from withing an onchange event handler works  
but I'd like to manipulate a select list like in this code example,
but without luck? I'd appreciate some little help, that would be  
fantastic.



Thank's for some input here ;)

kind regards,

Robert


function CheckAuswahl(currForm)
{   

a = document.form_addresses.form_protocol.value;

if(a==33554432)
{

for(var x=0; x  currForm.elements.length; x++) {
var y = currForm.elements[x];

y.checked = currForm.form_exch_enabled.checked;

if (y.name == form_exch_enabled) {
y.checked = true;
//alert(y.name);
}

if (y.name == form_exch_name) {
if(y.value == ) {
y.value = ggg;
}
}

if (y.name == form_exch_pass) {
if(y.value == ) {
y.value = ggg;
}
}

if (y.name == form_permitted_rcv) {
//var a=y.createElement('option');
//a.name=TEST;
//y.focus();
y.add('Test',null);
alert(y.size);
}
}
}
}


td%=Label_Protocol%/td
  td
%
  int intProtocol = Integer.parseInt(Value_Protocol);
%
select name=form_protocol  
onchange=CheckAuswahl(this.form) %=Label_State%


option % if ( intProtocol == sysProtocol_ZModem) {%selected%}%
value=%=sysProtocol_ZModem% 
%=Value_Protocol_ZModem%/option


---
Robert Welz
Pro2col Limited
Weinheimer Strasse 64
D-68309 Mannheim

t  0621 724 5837
f  0621 724 5782
w  http://www.pro2col.de
e  [EMAIL PROTECTED]
skype  ro.welz

Pro2col Technischer Support
[EMAIL PROTECTED]
Tel.: +49 621 724 5837


Apple Solution Expert - Print  Publishing

File transfer  workflow specialists for the graphic art  prepress  
industry


Distributors for DevZeroG, Hermstedt  OneVision within the UK and  
Ireland


Pro2col's legal position regarding Internet communications can be  
found at http://pro2col.com/about/legal.asp







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] RE: manipualting a select list from within an event handler

2008-09-24 Thread Robert Welz

Oops, sorry...

Robert

Am 24.09.2008 um 16:56 schrieb Peter Crowther:


From: Robert Welz [mailto:[EMAIL PROTECTED]
Manipulating checkboxes from withing an onchange event handler works
but I'd like to manipulate a select list like in this code example,
but without luck? I'd appreciate some little help, that would be
fantastic.


[Javascript elided]

Ask on a Javascript list?

   - Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---
Robert Welz
Pro2col Limited
Weinheimer Strasse 64
D-68309 Mannheim

t  0621 724 5837
f  0621 724 5782
w  http://www.pro2col.de
e  [EMAIL PROTECTED]
skype  ro.welz

Pro2col Technischer Support
[EMAIL PROTECTED]
Tel.: +49 621 724 5837


Apple Solution Expert - Print  Publishing

File transfer  workflow specialists for the graphic art  prepress  
industry


Distributors for DevZeroG, Hermstedt  OneVision within the UK and  
Ireland


Pro2col's legal position regarding Internet communications can be  
found at http://pro2col.com/about/legal.asp







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with javac

2008-06-18 Thread Robert Welz



javac -version
javac: invalid flag: -version
Usage: javac options source files
where possible options include:
  -gGenerate all debugging info
  -g:none   Generate no debugging info
  -g:{lines,vars,source}Generate only some debugging info
  -nowarn   Generate no warnings
  -verbose  Output messages about what the compiler  
is doing
  -deprecation  Output source locations where deprecated  
APIs are used

  -classpath path Specify where to find user class files
  -sourcepath pathSpecify where to find input source files
  -bootclasspath path Override location of bootstrap class files
  -extdirs dirs   Override location of installed extensions
  -d directorySpecify where to place generated class  
files
  -encoding encoding  Specify character encoding used by source  
files
  -source release Provide source compatibility with  
specified release
  -target release Generate class files for specific VM  
version

  -help Print a synopsis of standard options

Seems like neither -version -v -V --v --V were invented at this time

java -version
java version 1.4.2_17
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_17-b06)
Java HotSpot(TM) Client VM (build 1.4.2_17-b06, mixed mode)

Yes I know, tomcat will definately be upgraded as soon as possible.

The problem is solved, I created a proper Makefile. All modules  
install and compile but logs/jakarta.out tells me


java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:828)
at stingray_backup.doGet(stingray_backup.java:178)
at stingray_backup.doPost(stingray_backup.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
	at  
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java: 
574)

at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
	at  
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
	at  
org 
.apache.tomcat.core.ContextManager.internalService(ContextManager.java: 
917)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java: 
833)
	at  
org 
.apache 
.tomcat 
.modules 
.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
	at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 
494)
	at org.apache.tomcat.util.threads.ThreadPool 
$ControlRunnable.run(ThreadPool.java:516)

at java.lang.Thread.run(Thread.java:534)


Is there a way get more information about what went wrong here?

Thanks for help,

---
Robert











-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with javac

2008-06-18 Thread Robert Welz





The problem is solved, I created a proper Makefile. All modules  
install and compile but logs/jakarta.out tells me


java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:828)
at stingray_backup.doGet(stingray_backup.java:178)
at stingray_backup.doPost(stingray_backup.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
	at  
org 
.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java: 
574)

at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
	at  
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java: 
485)
	at  
org 
.apache 
.tomcat.core.ContextManager.internalService(ContextManager.java:917)
	at  
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
	at  
org 
.apache 
.tomcat 
.modules 
.server.Http10Interceptor.processConnection(Http10Interceptor.java: 
176)
	at  
org 
.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 
494)
	at org.apache.tomcat.util.threads.ThreadPool 
$ControlRunnable.run(ThreadPool.java:516)

at java.lang.Thread.run(Thread.java:534)


Is there a way get more information about what went wrong here?

Thanks for help,




Hmm. Where comes this Globals from?  Looks like a struct. Can  
someone help?


this.backupFileName = Globals.BACKUP_STARTDIR + vSRName +  
Globals.BACKUP_FILENAME;


File backupFile  = new File(this.backupFileName);
boolean bRes = backupFile.createNewFile();

My class looks like:
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.text.*;
import com.oreilly.servlet.MultipartRequest;
import java.sql.*;
import java.net.*;

public class stingray_backup
extends HttpServlet {


	public void doGet(HttpServletRequest request, HttpServletResponse  
response) throws ServletException, IOException {

...

File backupFile  = new File(this.backupFileName);
boolean bRes = backupFile.createNewFile();




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat question

2008-06-18 Thread Robert Welz

A question:

If I have a class / function

Logger.Log (Logger.LOG_LEVEL_INFO, Test  + Globals.BACKUP_STARTDIR);


where will tomcat write these data out?






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat 3.3 question

2008-06-18 Thread Robert Welz


Am 18.06.2008 um 15:02 schrieb Robert Welz:


A question:

If I have a class / function

Logger.Log (Logger.LOG_LEVEL_INFO, Test  + Globals.BACKUP_STARTDIR);


where will tomcat write these data out?





so when In server.xml
LogSetter name=servlet_log
   timestamps=true
   verbosityLevel = INFORMATION
   path=logs/servlet-${MMdd}.log
   /

is configured am I right in the assumption that the logfile is in / 
jakarta/logs/ ?


Is there another knob I can use to get my logfile?

regards,
Robert


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with javac

2008-06-18 Thread Robert Welz


Am 18.06.2008 um 15:13 schrieb Caldarale, Charles R:


From: Robert Welz [mailto:[EMAIL PROTECTED]
Subject: Re: problem with javac

Where comes this Globals from?


It's your code, not Tomcat's, so you tell us.



Hmm.

Yeah, I found a file Globals.java where these are declared as public  
static final String !


Sometimes its hard to get to something new :)

regards,

Robert

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat 3.3 question

2008-06-18 Thread Robert Welz


Am 18.06.2008 um 15:33 schrieb Caldarale, Charles R:


From: Robert Welz [mailto:[EMAIL PROTECTED]
Subject: Re: tomcat 3.3 question

is configured am I right in the assumption that the logfile is in /
jakarta/logs/ ?


Your version of Tomcat is so ridiculously old that very few - if any  
- people remember how it works.  The most recent 3.3 level came from  
March of 2002.


Yes, ridiculous. But if we had to upgrade tomcat, too, it will break  
most of the software of our embedded device. But the very rest, which  
is as old as tomcat has been upgraded already.

And tomcat will be the first to upgrade as soon as possible.

But the java thing works now (almost 75 percent) thanks for the  
inspiration.


---
Robert
Pro2col Limited




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with javac

2008-06-17 Thread Robert Welz
/ROOT/WEB-INF/classes/com/oreilly/ 
servlet/multipart/PartInputStream.class
/opt/jakarta-tomcat-3.3.1a/webapps/examples/jsp/jsptoserv/ 
jsptoservlet.jsp

/opt/jakarta-tomcat-3.3.1a/webapps/examples/servlets
/opt/jakarta-tomcat-3.3.1a/webapps/examples/servlets/index.html
/opt/jakarta-tomcat-3.3.1a/webapps/examples/servlets/reqheaders.html
/opt/jakarta-tomcat-3.3.1a/webapps/examples/servlets/reqinfo.html
/opt/jakarta-tomcat-3.3.1a/webapps/examples/servlets/helloworld.html
/opt/jakarta-tomcat-3.3.1a/webapps/examples/servlets/sessions.html
/opt/jakarta-tomcat-3.3.1a/webapps/examples/servlets/cookies.html
/opt/jakarta-tomcat-3.3.1a/webapps/examples/servlets/reqparams.html
/opt/jakarta-tomcat-3.3.1a/webapps/examples/WEB-INF/classes/ 
servletToJsp.java
/opt/jakarta-tomcat-3.3.1a/webapps/examples/WEB-INF/classes/ 
servletToJsp.class



Am 17.06.2008 um 10:42 schrieb [EMAIL PROTECTED]:






---
Robert Welz










-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]