Ang: RE: RE: newbie jsp question
Thanks Ill do that [EMAIL PROTECTED] 2002-03-20 12:49:52 From the Javadocs for java.lang.VerifyError (great source of information, by the way): Thrown when the verifier detects that a class file, though well formed, contains some sort of internal inconsistency or security problem. So I would say that somehow your JDBC drivers are corrupt. I have seen JBuilder produce classes that caused this - a simple recompile fixed everything for me. The Stack Trace would seem to indicate the problem is in interbase.interclient.ErrorKey. I would suggest trying to create a standalone application that exhibits this problem and contact the vendor's technical support with the issue. Randy -Original Message- From: Magnus Jansson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 3:14 AM To: [EMAIL PROTECTED] Subject: Ang: RE: newbie jsp question Well! I already have a connection to the database, I can extract information out from the database but when I use execute procedure commando I only get that very hard to debug error page from tomcat. here is a copy of it: java.lang.VerifyError: (class: interbase/interclient/ErrorKey, method: signature: ()V) Expecting to find object/array on stack at interbase.interclient.SQLException.(SQLException.java:96) at interbase.interclient.RecvMessage.createSQLException(RecvMessa ge.java:694) at interbase.interclient.RecvMessage.makeSQLException(RecvMessage .java:593) at interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.j ava, Compiled Code) at interbase.interclient.Statement.remote_EXECUTE_QUERY_STATEMENT (Statement.java, Compiled Code) at interbase.interclient.Statement.executeQuery(Statement.java, Compiled Code) at matsedel.input.updatematsedel_13._jspService(updatematsedel_13 .java:117) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConne ction(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( Unknown Source) at java.lang.Thread.run(Unknown Source) I havent got a clue what is wrong. here is the execute procedure part of my jsp page if (request.getParameter(MandagLunchUID) == null) { MyQuery = EXECUTE PROCEDURE INSERT_INTO_MATSEDEL 'Mat mat mat' '2002-03-18' 1 0; //MyQuery = EXECUTE PROCEDURE INSERT_INTO_MATSEDEL (; //MyQuery = MyQuery + request.getParameter(MandagLunchText) + ,; //MyQuery = MyQuery + request.getParameter(MandagLunchDatum) + ,; //if (IsVego.booleanValue()) //{ // MyQuery = MyQuery + 1 + ,; //} //else //{ // MyQuery = MyQuery + 0 + ,; //}; //MyQuery = MyQuery + 0); MyRecordSet = StatementRecordset1.executeQuery(MyQuery); out.print(OK insert måndag lunch); } As you can see there is a lot of remarks there, I only have that static call right now for test purpose.. [EMAIL PROTECTED] 2002-03-19 16:44:05 You will need to learn how to use JDBC to access databases. I would suggest either going to Sun's JDBC site or looking at Interbase. Once you know how to execute the stored procedure from regular Java, JSP is trivial. Randy -Original Message- From: Magnus Jansson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 11:22 AM To: [EMAIL PROTECTED] Subject: newbie jsp question I'm getting nuts I tries to execute a stored procedure that looks like this: INSERT_INTO_MATSEDEL (MATTEXT BLOB, DATUM Date, ISVEGO Integer, ISLUNCH Integer) But I haven't got a clue how to write the jsp code to execute that procedure. I'm using Interbase 6.5 Pleeeaseee help me. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto
newbie jsp question
I'm getting nuts I tries to execute a stored procedure that looks like this: INSERT_INTO_MATSEDEL (MATTEXT BLOB, DATUM Date, ISVEGO Integer, ISLUNCH Integer) But I haven't got a clue how to write the jsp code to execute that procedure. I'm using Interbase 6.5 Pleeeaseee help me. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Ang: RE: newbie jsp question
Well! I already have a connection to the database, I can extract information out from the database but when I use execute procedure commando I only get that very hard to debug error page from tomcat. here is a copy of it: java.lang.VerifyError: (class: interbase/interclient/ErrorKey, method: signature: ()V) Expecting to find object/array on stack at interbase.interclient.SQLException.(SQLException.java:96) at interbase.interclient.RecvMessage.createSQLException(RecvMessage.java:694) at interbase.interclient.RecvMessage.makeSQLException(RecvMessage.java:593) at interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.java, Compiled Code) at interbase.interclient.Statement.remote_EXECUTE_QUERY_STATEMENT(Statement.java, Compiled Code) at interbase.interclient.Statement.executeQuery(Statement.java, Compiled Code) at matsedel.input.updatematsedel_13._jspService(updatematsedel_13.java:117) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) I havent got a clue what is wrong. here is the execute procedure part of my jsp page if (request.getParameter(MandagLunchUID) == null) { MyQuery = EXECUTE PROCEDURE INSERT_INTO_MATSEDEL 'Mat mat mat' '2002-03-18' 1 0; //MyQuery = EXECUTE PROCEDURE INSERT_INTO_MATSEDEL (; //MyQuery = MyQuery + request.getParameter(MandagLunchText) + ,; //MyQuery = MyQuery + request.getParameter(MandagLunchDatum) + ,; //if (IsVego.booleanValue()) //{ // MyQuery = MyQuery + 1 + ,; //} //else //{ // MyQuery = MyQuery + 0 + ,; //}; //MyQuery = MyQuery + 0); MyRecordSet = StatementRecordset1.executeQuery(MyQuery); out.print(OK insert måndag lunch); } As you can see there is a lot of remarks there, I only have that static call right now for test purpose.. [EMAIL PROTECTED] 2002-03-19 16:44:05 You will need to learn how to use JDBC to access databases. I would suggest either going to Sun's JDBC site or looking at Interbase. Once you know how to execute the stored procedure from regular Java, JSP is trivial. Randy -Original Message- From: Magnus Jansson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 11:22 AM To: [EMAIL PROTECTED] Subject: newbie jsp question I'm getting nuts I tries to execute a stored procedure that looks like this: INSERT_INTO_MATSEDEL (MATTEXT BLOB, DATUM Date, ISVEGO Integer, ISLUNCH Integer) But I haven't got a clue how to write the jsp code to execute that procedure. I'm using Interbase 6.5 Pleeeaseee help me. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Error message
Hi!!! I'm quite new to jsp and java and I would like to know how to decode the error messages that I receive. And for now this particular error message java.lang.VerifyError: (class: interbase/interclient/ErrorKey, method: signature: ()V) Expecting to find object/array on stack at interbase.interclient.EscapeProcedureCallParser.parse(EscapeProcedureCallParser.java, Compiled Code) at interbase.interclient.EscapeProcessor._$150216(EscapeProcessor.java, Compiled Code) at interbase.interclient.EscapeProcessor.doEscapeProcessing(EscapeProcessor.java, Compiled Code) at interbase.interclient.PreparedStatement.(PreparedStatement.java:104) at interbase.interclient.CallableStatement.(CallableStatement.java:261) at interbase.interclient.Connection.prepareCall(Connection.java:572) at matsedel.input.updatematsedel_8._jspService(updatematsedel_8.java:84) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Ang: Re: Error message
I'm using NetWare:s VM 1.3.0 (Symantec JIT 3.10.110) And I get the error when running the jsp page. The page looks like this. I suppose that I have done any typo or something like that. %@page contentType=text/html; charset=iso-8859-1 language=java import=java.util.*, java.lang.*, java.text.*, java.sql.*% %@ include file=/Connections/MyInfoConnection.jsp % html !-- #BeginTemplate /Templates/Standardsida.dwt -- head !-- #BeginEditable doctitle -- titleUppdaterar matsedeln/title % // Databasköret String MyQuery = ; Driver DriverRecordset1 = (Driver)Class.forName(MM_MyInfoConnection_DRIVER).newInstance(); Connection Conn = DriverManager.getConnection(MM_MyInfoConnection_STRING,MM_MyInfoConnection_USERNAME,MM_MyInfoConnection_PASSWORD); CallableStatement MyUpDateStatement = Conn.prepareCall({call UPDATE_MATSEDEL[?,?,?,?,?]}); CallableStatement MyInsertStatement = Conn.prepareCall({call INSERT_INTO_MATSEDEL[?,?,?,?]}); ResultSet MyRecordSet; String IsVegoString; Boolean IsVego = Boolean.valueOf(request.getParameter(IsVego)); if (IsVego.booleanValue()) IsVegoString = 1; else IsVegoString = 0; % !-- #EndEditable -- meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 link rel=stylesheet href=../../style1.css style type=text/css /style /head body bgcolor=#FF text=#66 link=#66 table width=440 border=0 cellspacing=0 cellpadding=0 align=center tr valign=top align=left td!-- #BeginEditable Inuti%20cellen -- % if (request.getParameter(MandagLunchUID) != null) { //Uppdatera den befintliga posten med UPDATE_MATSEDEL(UID, Mattext, datum, IsVego(0 eller 1), IsLunch(0 eller 1)); MyUpDateStatement.setString(1, request.getParameter(MandagLunchUID)); MyUpDateStatement.setString(2, request.getParameter(MandagLunchText)); MyUpDateStatement.setString(3, request.getParameter(MandagLunchDatum)); MyUpDateStatement.setString(4, IsVegoString); MyUpDateStatement.setInt(5, 1); MyUpDateStatement.execute(); } else { //Sätt in ny post med INSERT_INTO_MATSEDEL(Mattext, Datum, IsVego(0 eller 1), IsLunch(0 eller 1)); }; % !-- #EndEditable --/td /tr /table /body !-- #EndTemplate -- /html [EMAIL PROTECTED] 2002-02-18 14:34:34 --- Magnus Jansson [EMAIL PROTECTED] wrote: Hi!!! I'm quite new to jsp and java and I would like to know how to decode the error messages that I receive. And for now this particular error message java.lang.VerifyError: (class: interbase/interclient/ErrorKey, method: signature: ()V) Expecting to find object/array on stack at interbase.interclient.EscapeProcedureCallParser.parse(EscapeProcedureCallParser.java, Compiled Code) at interbase.interclient.EscapeProcessor._$150216(EscapeProcessor.java, Compiled Code) at interbase.interclient.EscapeProcessor.doEscapeProcessing(EscapeProcessor.java, Compiled Code) at interbase.interclient.PreparedStatement.(PreparedStatement.java:104) at interbase.interclient.CallableStatement.(CallableStatement.java:261) at interbase.interclient.Connection.prepareCall(Connection.java:572) at matsedel.input.updatematsedel_8._jspService(updatematsedel_8.java:84) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) VerifyError means the JVM thinks there's something wrong with the class file, basically. Maybe you need to recompile everything from scratch, make sure the class files in the classpath are the right ones, etc. Which VM and which compiler are you using? --Jose __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002
OT: Dont understand java syntax!!!
Hi! I have problems understanding the syntax for CallableStatement. It would be nice if someone could send an example of how to use callable statement... -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
OT: jsp question about uploading images to a database
I want to insert images into a database via http and jsp pages. Does anyone have any experience or tips how to do that -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
OT: SOAP Tutorial
Hi! I'm very new to SOAP and I have no idea what it is. Is there a small tutorial or other description or article what SOAP is. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Off Topic apache problem, Strange url behaviour
Hi! I have some problems with my URL:s I know this is a TomCat group but I dont know any Apache mailing lists. Suggestion please. When I got to adress: https://mysite/myprotectedfolder I get the logging in dialog box, after klicking ok I get an error saying that I'm not allowed to access files. I see at my url and sees that I'm trying to access via http and not https. I suppose this is a configuration error but I dont know how to configure. Here is a snip of my config file in apache that makes the folder protected. Directory sys:webbar/intranet/matsedel/input AuthType Basic AuthName Inmatning av matsedeln kräver att du är en giltig användare! AuthNDSTree VAD_TREE AuthNDSContext vaddo.vaddo_fhsk require user .admin.vaddo.vaddo_fhsk .lena.expeditionen.vaddo.vaddo_fhsk .annelie.expeditionen.vaddo.vaddo_fhsk .birgitta.expeditionen.vaddo.vaddo_fhsk .maj.expeditionen.vaddo.vaddo_fhsk /Directory - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
newbie question about stored procedures
How do I call stored procedures I think I have to use the CallableStatement but how do I use it? I've done this so far. Is this right and how do I execute the statement? How do I check if it is a error? how do I start a new transaction and commit/rollback it afterwards MyStatement = Conn.CallableStatement(UPDATE_MATSEDEL); MyStatement(request.getParameter(MandagLunchUID), request.getParameter(MandagLunchText), request.getParameter(MandagLunchDatum), IsVegoString, 1); -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Basic auth and form based login
Hi! I want to use protected folders within apache on netware and that works (basic authentication and mod_nds). But I want to use form based login and when a user tries to use pages that is in those protected folders I dont want those annoying dialogboxes to appear. How do I do - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Ang: tomcat + netware
I'm running tomcat on a NW 5.1 box and its running perfect, fast and very stable [EMAIL PROTECTED] 2001-12-12 03:34:13 Can anyone tell me how to verify if tomcat is working properly on netware? -- Leland -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Ang: tomcat + netware
TomCat is written in java so it does not load any NLM. but to start TomCat on NW you have to add the paths to the jar files in sys:/etc/java.cfg for example TOMCAT_HOME=sys:\tomcat CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\ant.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\jasper.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\jaxp.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\parser.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\servlet.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\webserver.jar this is for tomcat 3.2.3 Im about to install 3.3 now and it has a little bit different paths. Dont forget to unload java and restart java (load java -exit and then load java again). Download also the latest java VM for NetWare from developer.novell.com or else you have a very old VM. And then I have created a file (sys:/system/tomcat.ncf) that starts tomcat looks like this: java -Dtomcat.home=sys:\tomcat org.apache.tomcat.startup.Tomcat And in autoexec.ncf I've added: load tomcat.ncf before I start Apache. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 [EMAIL PROTECTED] 2001-12-12 14:05:05 Do you type TOMCAT to load the nlm? What nlm's does tomcat load? How can I test tomcat to where I know that tomcat is working? -Original Message- From: Magnus Jansson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed, 12 Dec 2001 09:24:20 +0100 Subject: Ang: tomcat + netware I'm running tomcat on a NW 5.1 box and its running perfect, fast and very stable [EMAIL PROTECTED] 2001-12-12 03:34:13 Can anyone tell me how to verify if tomcat is working properly on netware? -- Leland -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED]d»or additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Leland -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
More problems with GregorianCalendar object
I hate dealing with dates.:( I want to set my calendarobjects date by using weeknumber (swedish schoo lenvironment equals that everthing is measured in weeks and not in dates) I have this code: String[] ids = TimeZone.getAvailableIDs(1 * 60 * 60 * 1000); SimpleTimeZone pdt = new SimpleTimeZone(1 * 60 * 60 * 1000, ids[0]); pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 1 * 60 * 60 * 1000); pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 1 * 60 * 60 * 1000); GregorianCalendar MyDate = new GregorianCalendar(pdt); Boolean IsVego = Boolean.valueOf(request.getParameter(IsVego)); int Week = Integer.valueOf(request.getParameter(Vecka), 10).intValue(); int Year = Integer.valueOf(request.getParameter(Year), 10).intValue(); MyDate.set(GregorianCalendar.YEAR, Year); MyDate.set(GregorianCalendar.WEEK_OF_YEAR, Week); MyDate.set(GregorianCalendar.DAY_OF_WEEK, GregorianCalendar.MONDAY); But It does not change WEEK_OF_YEAR; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Ang: Re: Calendar Boject behaves strange
Yes! That did it. I wonder why it didnt roll properly over day? [EMAIL PROTECTED] 2001-12-06 20:01:23 Maybe try something like this: while (MyDate.get(Calendar.WEEK_OF_YEAR) = MaxWeek) { //set to Monday MyDate.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); //make DateStringStart //set to Friday MyDate.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY); //make DateStringEnd //output OPTION tag //set to next week MyDate.roll(Calendar.WEEK_OF_YEAR, 1); } --- Magnus Jansson [EMAIL PROTECTED] wrote: Hi! When I use the GregorianCalendar and do a roll it doesnt switch month. What I want to do is to have a selectbox and see all weeknumbers in selected year and after the weeknumber write the date of monday and friday in the week. But with this code below I only get the same dates all the time and it is for Januari. Is this a normal behaviour for the GregorianCalendar object? % int i, ThisWeek = MyDate.get(GregorianCalendar.WEEK_OF_YEAR); int MaxWeek = MyDate.getMaximum(GregorianCalendar.WEEK_OF_YEAR); int SelectedYear = MyDate.get(GregorianCalendar.YEAR); MyDate.set(SelectedYear, 0, 1); if (MyDate.get(GregorianCalendar.DAY_OF_WEEK) 2) { for (i = MyDate.get(GregorianCalendar.DAY_OF_WEEK); i 2; i--) { MyDate.roll(Calendar.DATE, false); } } String DateStringStart = ; String DateStringEnd = ; for (i = 1; i = MaxWeek; i++) { DateStringStart = MyDate.get(Calendar.YEAR) + - + MyDate.get(Calendar.MONTH) + - + MyDate.get(Calendar.DATE); while (MyDate.get(Calendar.DAY_OF_WEEK) != 6) { MyDate.roll(GregorianCalendar.DATE, true); }; DateStringEnd = MyDate.get(Calendar.YEAR) + - + MyDate.get(Calendar.MONTH) + - + MyDate.get(Calendar.DATE); if (i != ThisWeek) out.print(option value=' + i + 'Vecka: + i + Datumintervall: + DateStringStart + - + DateStringEnd + /option); else out.print(option value=' + i + ' selectedVecka: + i + Datumintervall: + DateStringStart + - + DateStringEnd + /option); while (MyDate.get(Calendar.DAY_OF_WEEK) != 2) { MyDate.roll(Calendar.DATE, true); }; }; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Calendar Boject behaves strange
Hi! When I use the GregorianCalendar and do a roll it doesnt switch month. What I want to do is to have a selectbox and see all weeknumbers in selected year and after the weeknumber write the date of monday and friday in the week. But with this code below I only get the same dates all the time and it is for Januari. Is this a normal behaviour for the GregorianCalendar object? % int i, ThisWeek = MyDate.get(GregorianCalendar.WEEK_OF_YEAR); int MaxWeek = MyDate.getMaximum(GregorianCalendar.WEEK_OF_YEAR); int SelectedYear = MyDate.get(GregorianCalendar.YEAR); MyDate.set(SelectedYear, 0, 1); if (MyDate.get(GregorianCalendar.DAY_OF_WEEK) 2) { for (i = MyDate.get(GregorianCalendar.DAY_OF_WEEK); i 2; i--) { MyDate.roll(Calendar.DATE, false); } } String DateStringStart = ; String DateStringEnd = ; for (i = 1; i = MaxWeek; i++) { DateStringStart = MyDate.get(Calendar.YEAR) + - + MyDate.get(Calendar.MONTH) + - + MyDate.get(Calendar.DATE); while (MyDate.get(Calendar.DAY_OF_WEEK) != 6) { MyDate.roll(GregorianCalendar.DATE, true); }; DateStringEnd = MyDate.get(Calendar.YEAR) + - + MyDate.get(Calendar.MONTH) + - + MyDate.get(Calendar.DATE); if (i != ThisWeek) out.print(option value=' + i + 'Vecka: + i + Datumintervall: + DateStringStart + - + DateStringEnd + /option); else out.print(option value=' + i + ' selectedVecka: + i + Datumintervall: + DateStringStart + - + DateStringEnd + /option); while (MyDate.get(Calendar.DAY_OF_WEEK) != 2) { MyDate.roll(Calendar.DATE, true); }; }; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Way off topic
This is off topic but I know there is much Apache knowledge out here and I hope for help because I dont where to ask. I have some problems with Apache and mod_nds on a NetWare server. I have set restrictions on a folder (uses mod_nds to get login name and pw) and everything works exept that after I have given my username and pw I tries to connet to the site with plain http and of course gets an 403 error. Then I have to do a new request to the folder via https: like this I type url: https://mysite.com/folder here the login dialog comes I give username and pw and press OK now comes error and when I look at url it says http://mysite.com/folder I do a new request on https://mysite.com/folder it works Here is my restrictionpart in httpd.conf Directory /matsedel/input AuthType Basic AuthName Inmatning av matsedeln kräver att du är en giltig användare! AuthNDSTree MY_TREE AuthNDSContext context1.organization require user .theuser.context /Directory -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Question about the calendar object
Hi! I think that the Calendar object behaves strange. % String[] ids = TimeZone.getAvailableIDs(1 * 60 * 60 * 1000); SimpleTimeZone pdt = new SimpleTimeZone(1 * 60 * 60 * 1000, ids[0]); pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 1 * 60 * 60 * 1000); pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 1 * 60 * 60 * 1000); GregorianCalendar MyDate = new GregorianCalendar(pdt); out.print(MyDate.get(Calendar.YEAR) + - + MyDate.getMinimum(Calendar.MONTH) + - + MyDate.getMinimum(Calendar.DATE); % My output is : 2001-0-1 Is it so that months start a 0 and dates starts at 1? weird in that case. Why does not both month and date starts at 0 or 1. That would have been much more simple.. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
compilation error
Hi i've just started a tomcat3.3 server but I'm getting these confusing messeges when I try to view a jsp page. at the server console I get following messege: 2001-11-21 15:46:42 - Ctx() : Compiling: /test.jsp to test_0 2001-11-21 15:46:42 - Ctx() : class not found test_1 2001-11-21 15:46:42 - Ctx() : status code:404 request:(R( + /test.jsp + null) msg:null what have I missed in the config files??? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Insert special chars in stringbuffer
Hi! I have a StringBuffer object and want to append a character how do I do?
Ang: Re: Insert special chars in stringbuffer
Thanks [EMAIL PROTECTED] 2001-09-19 15:23:13 StringBuffer buf = new StringBuffer(); buf.append('\'); hth, dim On Wed, 19 Sep 2001, Magnus Jansson wrote: Hi! I have a StringBuffer object and want to append a character how do I do?
Ang: Get value from a checkbox
Sorry my fault. It was actually easy. Sorry [EMAIL PROTECTED] 2001-09-17 07:32:38 Hi! I'm a newbi on jsp, and having trouble with forms. I have a form on one page and want to send the information to a jsp page. My form includes a couple of checkboxes and I only gets runtime errors when I try to get the values from the checkbox. Fact is I dont have a clue how to get the value from a checkbox in jsp with the request.getParameter. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837
Get value from a checkbox
Hi! I'm a newbi on jsp, and having trouble with forms. I have a form on one page and want to send the information to a jsp page. My form includes a couple of checkboxes and I only gets runtime errors when I try to get the values from the checkbox. Fact is I dont have a clue how to get the value from a checkbox in jsp with the request.getParameter. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837
Time does not match
I live in Sweden and I have a giant trouble with time. The jsp pages always shows the GMT time but we have GMT+1 and then we have summer and winter time so right now the time shows 2 hours after. My server platform is NetWare 5.1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837
Connection pooling
I've seen that there is a connection pooling thing under the jakarta project. Is that good?
JDBC and Interbase newbie
Hi! I have some trouble connectiong to an Interbase server in my jsp pages. I'm very new to both Java, JSP and JDBC Are someone nice and post me an example how to connect to a Interbase server and thenmake a simple query ( select * from employee) And then how to use the result from that query. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 BEGIN:VCARD VERSION:2.1 X-GWTYPE:USER FN:Magnus Jansson TEL;WORK:0176-528 07, 070-370 33 16 TEL;PREF;FAX:0176-528 28 EMAIL;WORK;PREF:[EMAIL PROTECTED] N:Jansson;Magnus TITLE:IT-Ansvarig TEL;CELL:070-370 33 16 ORG:Väddö folkhögskola X-GWUSERID:Admin END:VCARD
Ang: Re: Novell GroupWise WebAccess
I think that he just want to get Webaccess started on a NT box with Apache. I cant guide you but try to read on http://www.novell.com/documentation/lg/gw55/docui/index.html i know that Apache is supported on the NW platform but i'm not sure if you can do a workaround to get it working on the NT platform. The problem is with the cgi scripts. Another solution is to run IIS just for the WebAccess function. Another solution is to use NetWare on the webserver, perhaps a separate box just for webaccess? Good Luck [EMAIL PROTECTED] 3/5 21:33 What are you trying to do with the GroupWise WebAccess components? If it is simple mail or something, you may be able to use an alternate solution. I am also asking because we, ah, ah-hum, er, we also use GroupWise and I would like to know what can be done with/to it. ;-) Sincerely yours; Mark Mynsted VHA Management Information Systems Client Services [EMAIL PROTECTED] (972) 830 - 0592, Internal x1592 [EMAIL PROTECTED] 5/3/2001 11:12:18 AM I'll ask again and please try to keep the laughter at a minimum. Remember it wasn't my decision to use Novell's GroupWise. I am running Apache 1.3.17 on an NT 4.0 server with SP6. I have installed Tomcat and the examples are running OK. I am running into trouble installing and running the GroupWise WebAccess 5.5.4.1 components. Novell does not support Apache under NT. Is there anyone who has a similar setup that would be willing to assist me in getting WebAccess running. Thanks, Doug Herendeen U.S. Bureau of Reclamation 916-978-5426 [EMAIL PROTECTED]
How is your knowledge on TomCat??????
I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
Ang: How is your knowledge on TomCat??????
First: I'm sorry that I have insulted all you people here in the group, but after three tries without a single comment I had to try something. Second: I've got my answer. Thank you a million times (and again sorry) In some of the answers I was recommended to use Linux wich is a very good alternative. But there are some things about using NetWare in my environment that I cant find on other Os:es for example using virtual homedirectories on other servers, when someone uses the /~username in a url I look into a folder in that users homedirectory witch is on another servers and some servers is over a wan link (those servers are of course NetWare). I use Ftp like that too. I'ts things like that that makes me use NetWare, Apache and now TomCat. Another thing is I dont have time to learn Linux enough to make the server safe, and I dont want to use MS products more than I absolutely have to. I think it's bad that there are nothing about using TomCat on NetWare in the manuals. Novell have a product called Novell Portal Services wich is running on Apache and TomCat (even on NetWare), but all documents there say you'll use a strttc12.ncf file to start TomCat and that file comes with NPS. Have a nice day [EMAIL PROTECTED] 2001-05-03 14:58:09 I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
Re: How is your knowledge
First: I'm sorry that I have insulted all you people here in the group, but after three tries without a single comment I had to try something. A reply with the comment: Read the archive on http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 had saved this list from my insult. Second: I've got my answer. Thank you a million times (and again sorry) In some of the answers I was recommended to use Linux wich is a very good alternative. Please don't start with recommendations to use a specific os. There are going to be a platform war here sooner or later, I know from a HTML list i'm in. Under three weeks the only thing was a platform war But there are some things about using NetWare in my environment that I cant find on other Os:es for example using virtual homedirectories on other servers, when someone uses the /~username in a url I look into a folder in that users homedirectory witch is on another servers and some servers is over a wan link (those servers are of course NetWare). I use Ftp like that too. I'ts things like that that makes me use NetWare, Apache and now TomCat. NDS is another huge reason using NetWare. Another thing is I dont have time to learn Linux enough to make the server safe, and I dont want to use MS products more than I absolutely have to. Some people wrote that I was sending to the user wich is wrong, I sent to the mail list. I didn't know there was an archive for the mailing list. I do now and will search there before sending a question. I think it's bad that there are nothing about using TomCat on NetWare in the manuals. Novell have a product called Novell Portal Services wich is running on Apache and TomCat (even on NetWare), but all documents there say you'll use a strttc12.ncf file to start TomCat and that file comes with NPS. Have a nice day
Ang: RE: How is your knowledge on TomCat??????
OK here I have to come with some comments. NetWare (NW) comes with Netscape enterprise server (and livewire). There are a build of Apache for NW, as long as you have a compiler for NLM:s (NetWare EXE:s) you can compile all C modules with no or very little modification. NW supports perl and VB Script (called NSN) straight from the box. NW 5.1 have IBM:s application server WebSpere bundled. NW also runs everything in java. And saying that NetWare is not as stable as Linux is wrong. NW is as stable as Linux. Please dont let this start a platform war, Linux is good, NT is working (at least some times, according to my experience) and NetWare is good. I just had to correct some misses. [EMAIL PROTECTED] 2001-05-03 18:02:36 TomCat relies on a web server's availability, which Netware isn't. (Which might explain the lack of response, til this.) Look into whatever web server might be available - start there. Arnold Shore Annapolis, MD USA -Original Message- From: Christian Hargraves [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:48 AM To: [EMAIL PROTECTED] Subject: Re: How is your knowledge on TomCat?? I asked a friend that worked for Novell for 7 years as a developer for Novell. his first impression to this question was that NetWare doesn't have very good scripting support. I wish I could tell you more, but even he doesn't know how to do it. His suggestion would be to simplify it a lot and try hard-coding some of the stuff in there.. Christian On Thursday 03 May 2001 06:58, you wrote: I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
Please help a newbie
I want to use TomCat on a NetWare 5 box. I cant find any information on how to start tomcat. I know it works but dont how to start it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 BEGIN:VCARD VERSION:2.1 X-GWTYPE:USER FN:Magnus Jansson EMAIL;WORK;PREF;NGW:[EMAIL PROTECTED] TEL;PREF;FAX:0176-528 28 X-GWUSERID:Admin ADR;DOM;WORK;PARCEL;POSTAL:;Expeditionen LABEL;DOM;WORK;PARCEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Magnus Jansson=0A= Expeditionen N:Jansson;Magnus TEL;WORK:0176-528 07, 070-370 33 16 TITLE:IT-Ansvarig END:VCARD
How do I start TomCat on a NetWare box
I have tried to modify the scripts that follows but with no success. I have searched apache.org with no success, I know it works on NetWare but I cant find any information Please help me or I'm going to search for another jsp engine
How do I get tomcat running on a NetWare Box
Hi! I'm trying to get tomcat running on a NetWare box but I cant modify those startfiles to get tomcat running. Please send me a working startfile or at least instructions so I can get it to work. Best regards. Magnus Jansson alias ^Teacher^