radio button issue
Would someone double check my logic here. The itmclosed variable is coming back as undefined, and I can't figure out why. String itmclosed = request.getParameter(itmclosed); if(! itmclosed.equalsIgnoreCase(both)){ if(itmclosed.equalsIgnoreCase(yes)){ //look for open items }else{ //look for closed itmes } } %= itmclosed % this comes out as undefined tr tdbClosed/b/td td Yesinput type=radio name=itmclosed value=yes checked/nbsp; Noinput type=radio name=itmclosed value=no/nbsp; Bothinput type=radio name=itmclosed value=both/ /td /tr === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
radio button issue/ never mind
I made a mistake rewriting the url. Bryan LaPlante === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: strongly_function
sounds like you may not have set up your statement to handle it. See if any of the following helps clarify what the options are. createStatement public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException Creates a Statement object that will generate ResultSet objects with the given type, concurrency, and holdability. This method is the same as the createStatement method above, but it allows the default result set type, concurrency, and holdability to be overridden. Parameters: resultSetType - one of the following ResultSet constants: ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE resultSetConcurrency - one of the following ResultSet constants: ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE resultSetHoldability - one of the following ResultSet constants: ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT Returns: a new Statement object that will generate ResultSet objects with the given type, concurrency, and holdability Throws: SQLException - if a database access error occurs or the given parameters are not ResultSet constants indicating type, concurrency, and holdability - Original Message - From: Grzegorz Wrazen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 29, 2003 1:49 AM Subject: strongly_function J use function called last() from ResultSet and it should moves a cursor to the last row in ResultSet. And last() does not do it,but why? thanx a lot! === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: JSP Tag question
are you saying that you want to use a tag class in your jsp page? The structure of using tags in a jsp page are as follows. 1. Import the tag library into the page %@ taglib uri=/WEB-INF/some-taglib.tld prefix=js% The taglib will describe the tag handler class for this library and what attributes it takes. The only place you would be importing javax.servlet.jsp.tagext.*; would be in the tag class itself, not the jsp page. 2. place the some-taglib.tld in the WEB-INF folder under your application or context. 3. Place the jar file or expanded classes for the tag under the lib/sometag.jar or classes/com/somedomain/thetag.class or what ever the appropriate path is. 4. use the tag in your jsp page with the prefix. js:thetag - Original Message - From: Edward King [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 27, 2003 12:56 AM Subject: JSP Tag question I use JDK1.4.1,I want to use JSP Tag in my JSP,so I use import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; But when I compile it,it raise errors: JavaScriptExampleTag.java:3: package javax.servlet.jsp does not exist import javax.servlet.jsp.*; ^ JavaScriptExampleTag.java:4: package javax.servlet.jsp.tagext does not exist import javax.servlet.jsp.tagext.*; Clearly,Java didn't find javax.servlet.jsp.* and import javax.servlet.jsp.tagext.*; I want to know if I need another software to support it? If do,where can I get them? Thanks in advance. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Large vector filling select box
The first thing that comes to mind is to check your variable scope on the page and make sure you don't have something changing the value of your vector or your increment variable between different runs of the loop. Bryan LaPlante - Original Message - From: Brian P Bohnet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 20, 2003 12:20 PM Subject: Large vector filling select box Hello all, I have two select boxes in a jsp displaying a large vector, one at the top of the page, one at the bottom. I use the same vector and its size in a for loop to create select options. Using the exact same code in both the first loop makes it thru the list and creates the option box, but the second one stops displaying any html at about 170 in the loop. Heres the code: select name=country option value=NONE- SELECT COUNTRY -/option % Vector allCountries = GlobalDataSets.getCountries(); int acSize = allCountries.size(); for (int i = 0; i acSize; i++) { % option value=%= allCountries.elementAt(i) %%= allCountries.elementAt(i) %/option % } % /font /select Any ideas as to what is causing my html to come back and just stop with no errors in the logs at all? Thanks, Brian === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: zip file closed
Oh, I like that link. I am putting that in my favorites. - Original Message - From: Adrian Janssen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 4:19 AM Subject: Re: zip file closed I think it will be quite hard for anyone to help you if you provide so little information: http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: Mr.W. Dwogi [SMTP:[EMAIL PROTECTED] Sent: 18 June 2003 11:00 To: [EMAIL PROTECTED] Subject: zip file closed Can somebody help me with the error: java.lang.illegalStateException: zip file closed what does it mean? == To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com -- It is the strict policy of Truworths that its e-mail facility and all e-mail communications emanating therefrom, should be utilised for business purposes only and should conform to high professional and business standards. Truworths has stipulated certain regulations in terms whereof strict guidelines relating to the use and content of e-mail communications are laid down. The use of the Truworths e-mail facility is not permitted for the distribution of chain letters or offensive mail of any nature whatsoever. Truworths hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Truworths furthermore disclaims liability for any unauthorised instruction for which permission was not granted.Truworths Limited accepts no liability for any consequences arising from or as a result of reliance on this message unless it is in respect of bona fide Truworths business for which proper authorisation has been granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to notify the Truworths e-mail administrator ([EMAIL PROTECTED]) immediately in order that appropriate action can be taken against the individual concerned. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Nested Exception Handling
Is this kind of what you mean. try{ String a = ; if(a.equals()){ throw new Exception(I am the root exception); } }catch(Exception e){ StackTraceElement[] se = e.getStackTrace(); for(int i=0; ise.length; i++){ System.out.println(se[i].toString()); } - Original Message - From: subbu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 2:15 AM Subject: Nested Exception Handling Is it possible to do Exception handling using nested Exception Example : ie: com.ibm.websphere.cpi.CPIException: java.sql.SQLException: ORA-02291: integrity constraint (xxx.yyy_Sz_FK) violated - parent key not found ; nested exception is: java.sql.SQLException: ORA-02291: integrity constraint in this above stacktrace i need to write exception handling for only java.sql.SQLException Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its GroupCompanies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorisation from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: JRun application suddenly stopped working
In some shops that 404 error page in IIS is pointed to an error handler page in the servlet container. If you are doing that and IIS was updated by a user or an automatic update from MS updates the 404 parameter could have been changed back to point to the original 404.htm known by IIS. (my experience). Bryan LaPlante - Original Message - From: Mousmi Bansal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 9:51 AM Subject: JRun application suddenly stopped working We have an application that uses JRun and IIS. The application has JSPs, servlets, java beans as well as stored procedures. Database is MS-SQL Server. The entire application was working well... till now. Suddenly the main login page has started throwing a 404 error (and of course if we are not able to login, there is no way we can access the rest of the application). We renamed a regular HTML page and saved it with .JSP extension. And then we couldn't make it come up either. Essentially no JSP pages are being served. Due to pecularity of our situation, we have limited access to production server. But the sys admin has told us that no upgrades were performed on the machine nor was any configuration changed. global.properties and local.properties SEEM fine. No libraries SEEM to be missing. We looked through the default-event.log and see the following messages- 06/06 10:06:05 info (JRun) Loading monitor 06/06 10:06:05 info (JRun) Loading license 06/06 10:06:05 info (license) Enabling unlimited concurrency for Advanced 06/06 10:06:05 info (JRun) Loading control 06/06 10:06:05 info (control) control listening on 127.0.0.1:53000 06/06 10:06:05 info (JRun) Loading ejb 06/06 10:06:05 warning (ejb) EJB service not starting, enterprise key not found. 06/06 10:06:05 info (JRun) Loading jms 06/06 10:06:05 error (jms) Can not create JNDI initial context: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial 06/06 10:06:05 info (JRun) Loading jndi 06/06 10:06:05 info (JRun) Loading jdbc 06/06 10:06:05 info (JRun) (MYAPP) Initializing JDBC connection pool with 0 connections 06/06 10:06:05 warning (jdbc) Binding exception: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial [javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial] javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280) at javax.naming.InitialContext.bind(InitialContext.java:355) at allaire.jrun.sql.JdbcBindingService.init(JdbcBindingService.java:98) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:203) at allaire.jrun.servlet.JRunSE.initService(JRunSE.java:892) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:859) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:130) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:223) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:69) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:172) 06/06 10:06:06 info (JRun) Loading web 06/06 10:06:06 info (web) web listening on *:8100 06/06 10:06:06 info (JRun) Loading mail 06/06 10:06:06 info (JRun) Loading url 06/06 10:06:06 info (JRun) Loading default-app 06/06 10:06:06 info (default-app) Starting default-app: Default User Application - Default application for getting started 06/06 10:06:06 info (default-app) Loading scheduler 06/06 10:06:06 info (JRun) Loading session 06/06 10:06:06 info (default-app) Loading logging 06/06 10:06:06 info (session) Loading persistence storage provider 'file' 06/06 10:06:06 info (JRun) Loading authentication 06/06 10:06:06 info (JRun) Loading propfile 06/06 10:06:06 info (JRun) Loading jsp 06/06 10:06:06 info (JRun) Loading file 06/06 10:06:06 info (JRun) default-app Ready 06/06 10:06:06 info (JRun) Loading demo-app 06/06 10:06:06 info (demo-app) Starting demo-app: JRun Demo - JRun Demo 06/06 10:06:06 info (demo-app) Loading scheduler 06/06 10:06:06 info
Re: Linebreaks
What kind of tags are you getting this behavior with? In my iteration tags I am using the following code in doAfterBody and I am not getting the same results. try{ getBodyContent().writeOut(getPreviousOut()); getBodyContent().clearBody(); } catch(IOException e){ throw new JspException(e.toString()); } - Original Message - From: Peter Dolukhanov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:19 PM Subject: Linebreaks Dear All, After doing a lot of work with Custom Tags, the generated HTML files seem to have a huge amount of line breaks and spaces in. Does anyone know of any methods, or perhaps a servlet filter which may reduce the size of the generated HTML file? Regards, Peter Dolukhanov === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
[no subject]
Most of them are contained in these two packages. http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/package-summary.htm l http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/package-summary.html - Original Message - From: Priti Chhetri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 12:57 AM what are the implicit objects of JSP.? = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: TLD- custom tag library
tld file is a tag library descriptor, it tells the servlet container where to find tag handler classes and gives information about the constraints associated with a tag and its properties. you will find lots of tutorials here. http://www.jspin.com/home/tutorials/tags - Original Message - From: Shivani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 4:07 PM Subject: TLD- custom tag library hi, is TLD(custom tag libraries) used mostly? it's basically a xml file i read. but what's the advantages of this over xml? what are it's applications? is it used in industry more? please give me some idea. (i am reading in books but no idea where it's used practically) === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Tag Lib Problem
you need to write your body content into the jspWriter before it can be output to the page. Try putting the following code above your return statement in the doAfertBody method. try{ getBodyContent().writeOut(getPreviousOut()); getBodyContent().clearBody(); } catch(IOException e){ throw new JspException(A problem was encounterd writing the body content : + e.toString()); } - Original Message - From: Peter Dolukhanov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:44 AM Subject: Tag Lib Problem Dear All, I am having a very bizarre problem to do with Tag Libraries. I am currently designing a set of libraries to perform Simple database connections and operations. As a result, I need a ifNotNull tag, which takes a column attribute and only allows the nested contents to be parsed if the current row is not null. However, the tag I built for this does not work properly, so I reduced the functionality to a basic tag, and it still does not work. The code is as follows: public class RandomTag extends BodyTagSupport { public int doStartTag() throws JspTagException { return EVAL_BODY_TAG; } public int doAfterBody() { return (SKIP_BODY); } } This should simply allow any contents within the body to be parsed. The TLD for this particular tag is: tag nameifNotNull/name tagclassdbTagLib.RandomTag/tagclass /tag The usage within the JSP is: dbConn:ifNotNull dbConn:header fieldIndex=3/ = dbConn:field fieldIndex=title/br /dbConn:ifNotNull However, this header and field elements will not output, they work normally, but not when nested within this ifNotNull element. Can anyone shed any light on why this may not be working? Best regards, Peter Dolukhanov === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: preparedStatement
Ah, so you are putting all of the rows in one HashMap, I guess you said that before. I guess I choose the way I did for convenient sake otherwise I am going to be iterating over the keySet and my logic would know it should go to the next row in the display when column_name1 comes back around. fair enough, there is more than one way to skin a cat. Bryan - Original Message - From: Adrian Janssen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 4:06 AM Subject: Re: preparedStatement Sorry, I did not mean to send directly to just you, but something like this: int rowNum = 0; columnsAndRows = new HashMap(); while(myquery.next()) { // increment the row number rowNum++; // add all columns from this row to the Map. columnsAndRows.put ( column_name1** + rowNum, myquery.getObject(1) ); columnsAndRows.put ( column_name2** + rowNum, myquery.getObject(2) ); columnsAndRows.put ( column_name3** + rowNum, myquery.getObject(3) ); //... and so on. } and then to fetch for eg: column_name2 on row 23 you do. Object o = columnsAndRows.get(column_name3**23); The nice thing about this is that there is only one HashMap involved instead of MANY, and no ArrayList is needed. Also note that as HashMap's get bigger they do not get slower. Cheers Adrian -Original Message- From: Bryan LaPlante [SMTP:[EMAIL PROTECTED] Sent: 27 February 2003 11:28 To: Adrian Janssen Subject: Re: preparedStatement I am not sure what you mean, the row23 is throwing me off a bit. Do you mean that your key would be the column names and the value would be a delimited string of values? - Original Message - From: Adrian Janssen [EMAIL PROTECTED] To: 'Bryan LaPlante' [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 2:53 AM Subject: RE: preparedStatement A much less complicated approach is to just use one HashMap with a compound key e.g.col_name1^^row23. -Original Message- From: Bryan LaPlante [SMTP:[EMAIL PROTECTED] Sent: 27 February 2003 06:18 To: [EMAIL PROTECTED] Subject: Re: preparedStatement What I have been doing in my custom tags could also apply to any query output situation. The following is in lieu of declaring your query TYPE_SCROLL_INSENSITIVE and then calling myquery.first() to reset the cursor back to the first row. //Create an ArrayList Of HashMaps ArrayList rows = new ArrayList(); HashMap columns = null //as you output the query the first time also add it to the above structures. while(myquery.next()){ columns = new HashMap(); colums.put(column_name1,myquery.getObject(1)); colums.put(column_name2,myquery.getObject(2)); //... and so on. // add the columns to a row rows.add(columns) } // then loop through your structure like so. rowIter = rows.iterator(); while(rowIter.hasNext()){ columns = rowIter.next(); thismap.get(column_name1); thismap.get(column_name2); } //.. and so on. -- It is the strict policy of Truworths that its e-mail facility and all e-mail communications emanating therefrom, should be utilised for business purposes only and should conform to high professional and business standards. Truworths has stipulated certain regulations in terms whereof strict guidelines relating to the use and content of e-mail communications are laid down. The use of the Truworths e-mail facility is not permitted for the distribution of chain letters or offensive mail of any nature whatsoever. Truworths hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Truworths furthermore disclaims liability for any unauthorised instruction for which permission was not granted.Truworths Limited accepts no liability for any consequences arising from or as a result of reliance on this message unless it is in respect of bona fide Truworths business for which proper authorisation has been granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to notify the Truworths e-mail administrator ([EMAIL PROTECTED]) immediately in order that appropriate action can be taken against the individual concerned. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: preparedStatement
What I have been doing in my custom tags could also apply to any query output situation. The following is in lieu of declaring your query TYPE_SCROLL_INSENSITIVE and then calling myquery.first() to reset the cursor back to the first row. //Create an ArrayList Of HashMaps ArrayList rows = new ArrayList(); HashMap columns = null //as you output the query the first time also add it to the above structures. while(myquery.next()){ columns = new HashMap(); colums.put(column_name1,myquery.getObject(1)); colums.put(column_name2,myquery.getObject(2)); //... and so on. // add the columns to a row rows.add(columns) } // then loop through your structure like so. rowIter = rows.iterator(); while(rowIter.hasNext()){ columns = rowIter.next(); thismap.get(column_name1); thismap.get(column_name2); } //.. and so on. - Original Message - From: Balamurugan . R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:40 PM Subject: Re: preparedStatement Use seprate statement for each resultset Shahata, Ash wrote: I tried this already, but unfortuanltly I get the same result... the problem seems that rs2 can not be looped through more than once! Is this how result sets react in general, would I be able to loop through a resultset more than once? -Original Message- From: Mathias Höggren [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: SV: preparedStatement Hi! I strongly suspect your problem is right here: if(val1 == val2){ Try this instead: if (val1.equals(val2)) { Brgds Mathias -Ursprungligt meddelande- Från: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Shahata, Ash Skickat: den 26 februari 2003 12:09 Till: [EMAIL PROTECTED] Ämne: Re: preparedStatement I think I figured it out where the problem is, it'a not from the code that I sent it's to do with the rs.next! However I still couldnt fix it. The value of tname is passed correctly and when I retireve it on its own, it works fine. Here's the part of the code that is causing the problem: while (rs.next()){ out.println(Inside rs); while(rs2.next()){ out.println(Inside rs2); String val1 = rs.getString(2); String val2 = rs2.getString(2); if(val1 == val2){ out.println(Inside IF); String id2 = rs2.getString(1); out.println(Sybase Customer Name = + rs2.getString(swName)); out.println( | id = + id2 + br); }//if }//while(rs2.next()) }//while(rs.next()) I'm looping through both result sets, expecting to see rs2 looping several times for every value of rs1, but here's what I grt from my println: These Records appear on both systems Inside rs Inside rs2 Inside rs2 Inside rs2 Inside rs2 Inside rs2 Inside rs2 Inside rs2 Inside rs Inside rs Inside rs Any idea why the loop is not functioning as expected? Thanks -Original Message- From: Pillai Jaideep, App Spec, SCS-SD [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Re: preparedStatement R U sure tname variable holds exactly the value U want ? -Original Message- From: Shahata, Ash [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 5:50 PM To: [EMAIL PROTECTED] Subject: preparedStatement Hi there, I'm getting stuck with the following procedure using prepared statements.. it works just fine if I use a normal statement. I need to pass a prepared statement because I need to pass a valriable to the query. It does not return any records! Statement stmt = con1.createStatement(); String query = Select * from SW_Customer where swName = ?; PreparedStatement ps = con1.prepareStatement(query); ps.setString(1,tname); ResultSet rs = ps.executeQuery(); while (rs.next()){ String name = rs.getString(1); out.println(Value of field = + rs.getString(swName)); out.println(Value of field = + name); } Any help will be appreciated Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For
java.lang.reflect question
Hi, I am having some trouble in the following situation. I have a parent child tag scenario where I am trying to get the value of parameter declared in the parent tag and use it to do some work in the child tag. JRun4 jdk 1.4.0 WinXP pro The jsp syntax looks like so. sql:DatabaseMetaData datasource=dsn the database is found and an instance of DatabaseMetaData is created complete with a getter and setter before the child tag runs. sql:MetaTables tableNameSchema=types I need to use the same instance of DatabaseMetaData declared in the parent tag so I don't have to create another connection to the database. /sql:MetaTables /sql:DatabaseMetaData The line of code that is failing is databaseMetaData = (DatabaseMetaData) parent.getClass().getField(databaseMetaData).get(java.sql.DatabaseMetaData ); The error is cannot resolve symbol class sql. The entire code snippet is below. Any insight will be appreciated. Object parent = getParent(); if(parent != null){ try{ databaseMetaData = (DatabaseMetaData) parent.getClass().getField(databaseMetaData).get(java.sql.DatabaseMetaData ); } catch(NoSuchFieldException fe){ throw new JspException(An error occurred attempting to access the parent tags databaseMetaData field); } catch(SecurityException se){ throw new JspException(A security error occurred attempting to access the parent tags databaseMetaData field); } }else{ throw new JspException(cant find the DatabaseMetaData tag); } Bryan LaPlante http://www.netwebapps.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: java.lang.reflect question
Found the problem. I ended up using a different approach to getting the parent tags value by using the following line of code in place of the complaining code. Method call = null; call = parent.getClass().getMethod(getDatabaseMetaData, new Class[]{}); databaseMetaData = (DatabaseMetaData) call.invoke(parent, null); In addition to this there was a glaring error that may have permitted the first snippet of code to work but I will never know. At the top of the class I forgot to declare the package for the class and hence the access to the parent class could not be resolved as it was in the package in question. Log files are a wonderful thing. - Original Message - From: Bryan LaPlante [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 10:28 AM Subject: java.lang.reflect question Hi, I am having some trouble in the following situation. I have a parent child tag scenario where I am trying to get the value of parameter declared in the parent tag and use it to do some work in the child tag. JRun4 jdk 1.4.0 WinXP pro The jsp syntax looks like so. sql:DatabaseMetaData datasource=dsn the database is found and an instance of DatabaseMetaData is created complete with a getter and setter before the child tag runs. sql:MetaTables tableNameSchema=types I need to use the same instance of DatabaseMetaData declared in the parent tag so I don't have to create another connection to the database. /sql:MetaTables /sql:DatabaseMetaData The line of code that is failing is databaseMetaData = (DatabaseMetaData) parent.getClass().getField(databaseMetaData).get(java.sql.DatabaseMetaData ); The error is cannot resolve symbol class sql. The entire code snippet is below. Any insight will be appreciated. Object parent = getParent(); if(parent != null){ try{ databaseMetaData = (DatabaseMetaData) parent.getClass().getField(databaseMetaData).get(java.sql.DatabaseMetaData ); } catch(NoSuchFieldException fe){ throw new JspException(An error occurred attempting to access the parent tags databaseMetaData field); } catch(SecurityException se){ throw new JspException(A security error occurred attempting to access the parent tags databaseMetaData field); } }else{ throw new JspException(cant find the DatabaseMetaData tag); } Bryan LaPlante http://www.netwebapps.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: reg: https and Websphere
Hi, A couple of places to start. You will want to get a certificate from your choice of certificate authorities below is a link to the most popular one. http://www.verisign.com/ If you are using Webshperer and it is not connected to any other http server here is a link to get you started with configuring ssl. http://www7b.software.ibm.com/wsdd/WASInfoCenter/infocenter/wasa_content/060 61801a07.html - Original Message - From: karthik s [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 10, 2003 12:11 AM Subject: reg: https and Websphere hi all, Im using IBM Websphere4.0.2 as my server. I had been using http till now. But due to security reasons I want to shift it to https. How can I do it? Is there some thing necessary to change in my coding. Thanks, Karthik _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
jdbc driver location
Does anyone know where in Tomcat 4 the jdbc drivers can be found. I am having a tough time getting a simple connection to a DataSource. In addition to that does anyone know in what jndi Context are DataSources saved? So far I have only been able to find any context references in java:comp it seems that no others exist. Thanks in advance for you help. Bryan LaPlante === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: jdbc driver location
Thanks I will try that. I Appreciate the help. - Original Message - From: Kenny G. Dubuisson, Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 9:57 AM Subject: Re: jdbc driver location I don't believe the JDBC drivers come with Tomcat. I downloaded my JDBC drivers from Oracle as a JAR file and put it in $CATALINA_HOME/lib. Hope this helps, Kenny - Original Message - From: Bryan LaPlante [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 9:05 AM Subject: jdbc driver location Does anyone know where in Tomcat 4 the jdbc drivers can be found. I am having a tough time getting a simple connection to a DataSource. In addition to that does anyone know in what jndi Context are DataSources saved? So far I have only been able to find any context references in java:comp it seems that no others exist. Thanks in advance for you help. Bryan LaPlante === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: JSP and PDF
here is a link to an open source product I have used to create PDF on the fly. Looks like it is a little more robust now than when I was using it but the docs are pretty good. http://www.pdflib.com/ - Original Message - From: Todd Barr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 4:19 PM Subject: JSP and PDF Hello, I know that PHP has a script that allows you to generate a PDF file from HTML text. I was wondering if there was a similar thing in JSP. Additionally, is there a way I can generate Excel and .Doc files? Thanks -T === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
DatabaseMetadata question
I am writing a set of custom tags to wrap around DatabaseMetadata and I am having an issue with getting stored procedure names. When I use DatabaseMetadata.getProcedures(null,null,null,null) it is returning the procedure name with a semicolon and the number 1 appended to the end of all procedure names. The result is coming from proc.getString(3); I am running Win2k/MSSQL 2k/Jrun4/ Microsoft ODBC/JDBC driver. Is this an idiosyncrasy of the driver, the database or do all platforms return the procedure names that way? Bryan LaPlante === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
What would you expect?
Hey gang, I have an issue that I need a very simple answer too. I am build a set of custom tags to allow the end coder to get all of the information about a datasource that you would ever want to know and some things you wouldn't. My issue is that some databases support certain attributes and others do not. If you are using my tag and you ask for a some feature of a database that is not supported by that DBMS it will throw a SQLException. What I would like your opinion on is what would you expect the tag to do. The solution I have come up with so far is to let you pass in a throwOnException attribute and if the feature you are asking for is not supported you can choose how the tag will respond with or with out an error. If you choose to throwOnException=false the value you are asking for will be given back to you as it existed when the tag was initialized. My specific problem with all of this is that for any given information I am passing back to the user, it may or may not be a string. The solution I have come up with is detailed in the code snippet below. If anyone is interested in looking into the tagset I am proposing you can go to http://java.sun.com/j2se/1.4/docs/api/java/sql/DatabaseMetaData.html and look at all the information that is available through your database driver. try{ source_data_type = columns.getShort(22); }catch(SQLException e){ if(throwOnException){ throw new JspException(e.toString()); } } === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: problem in compiling tag
/* After few minor corrections every thing compiled fine for me on an XP workstation with j2sdkee1.4. One thing you might check is if your CLASSPATH environment variable is pointing to the correct packages. I had to add the package name to my classpath on XP but not on other machines so try both. [localdrive]:\j2sdkee1.4\lib\j2ee.jar where localdrive is where you have the sdk installed. */ package com.vtr.taglibs; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; / added io for the out.println */ import java.io.*; public class Hello extends TagSupport{ private String name=null; public void setName(String value) { name=value; } public String getName(){ return(name); } / added the throws declaration ***/ public int doStartTag() throws JspTagException{ try{ JspWriter out=pageContext.getOut(); if(name!=null) out.println(Hola +name); else out.println(Hola World); }catch (IOException e){ throw new JspTagException(I/O Exception +e.getMessage()); } return SKIP_BODY; } } - Original Message - From: V.T.R.Ravi Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 14, 2002 1:54 AM Subject: problem in compiling tag package com.vtr.taglibs; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; public class Hello extends TagSupport { private String name=null; public void setName(String value) { name=value; } public String getName() { return(name); } public int doStartTag() { try{ JspWriter out=pageContext.getOut(); if(name!=null) out.println(Hola +name); else out.println(Hola World); }catch (IOException e) { throw new JspTagException(I/O Exception +e.getMessage()); } return SKIP_BODY; } } I am unable to compile the above program i get the message that unable to import import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; what should i do V.T.R.Ravi Kumar Engineer,CCX,BHEL, Haridwar Phone : Office-91-01334-285260 Res -91-01334-226121 - === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
doStartTag?
I have a question for my fellow tag writers. I want to process my tag differently when the user only implements the start tag. Is there any way to tell once you have begun to execute the code in doStartTag() to interrogate the environment to find out if doEndTag() will be called? Bryan LaPlante President Network Web Applications Inc. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Seeking expert XMLer's opinion
I have a jsp custom tag that validates a submitted form. The tag builds an object on both the server and client for handling required and grouped element validation. The validate has a child tag that listens for an error concerning it's assigned element and in the event that JavaScript has been turned off it will output the error at the position of the page where it was placed. Both tags support a wealth of options for grouping elements based on conditions and validating against a regular expression. I would like to make it possible for the end user create an XML file that would describe the form to be validated and save them all of the extra typing into tag attributes. I have been reading through the http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/xml/parsers/package-summ ary.html and http://java.sun.com/j2ee/sdk_1.3/techdocs/api/org/xml/sax/package-summary.ht ml packages. I have not tried to use Java to read an xml file yet and some advise about how to approach it would be appreciated. In a nut shell all I want to do is read in the attributes for each element so that I can output the client side object and build the server side object to validate the elements of the form. Sorry so long winded. Thanks in advice. Bryan LaPlante President Network Web Applications Inc. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Ouchy! Internet Explorer 5 - Mac Edition
Sorry the only one I can think of is a report I came across years ago and I think it only goes to IE5 http://css.nu/pointers/bugs.html Bryan LaPlante - Original Message - From: Michael Pomeroy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 03, 2002 9:34 PM Subject: Ouchy! Internet Explorer 5 - Mac Edition I just developed a test site with myself and three other programmers working using JSP on PC clones. It looks beautiful on a PC. I have viewed it on IE 5 and 6 for PC's. I know my customer uses a MacIntosh with Internet Explorer 5 Mac Edition, so I decided to view the site on his Mac: The text is displaying in different size, frames and objects are displaced, and commented code and objects are now visible! Does anyone know of a good reference, or have extensive personal experience, to help me to tweak the code to make it Mac friendly??? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
data encryption
What is everyone using for saving encrypted passwords to a database. I was looking at Java.Security and thought that maybe public abstract class Signature might offer some solutions for doing this. Thought? Bryan LaPlante 816-347-8220 [EMAIL PROTECTED] http://www.netwebapps.com Web Development === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Custom Tags or Beans
One thing to Consider about custom tags that is not to do with programming as much as communications. If any one is working in a team environment and creates a component the matter of documentation is less complex if you are describing a list of parameters as apposed to describing the methods and properties of the component. One additional resource available to users of the JRun or Cold Fusion Studio products is the ability to describe a component in vtml (visual tool markup language). In the UltraDev family of editors you can right click on a custom tag described in this manor and choose a visual editor that displays the parameters and optionally has inline help documentation if it was created that way. I know it is a hassle to learn yet another markup language just for the purposes of describing your controls so about a year ago I wrote a custom tag wizard to help me quickly create those tag editors. The tag wizard was written for Cold Fusion before I stated making the transition to JSP and as soon as I get some additional time on my hands I plan to update it to accommodate more of the JSP stuff. Below is a link to an article about it on Allaire's site. The tag wizard is free to the public. NOTE: to use the tag wizard to create xml style tags for your custom taglib's you can still do it with these additional steps. 1. Enter the name of the tag without the prefix [ TEST ] not [ MYTAG:TEST ] 2. After you receive an email from the wizard with your custom tag disregard the readme.txt file 3. Create a MYTAG directory under {%JRun Install%}:\Program Files\Allaire\[%JRun% | %CF% ]\Extensions\TagDefs where %JRun Install% refers to your install path of the editor and MYTAG refers to your custom tag library name 4. Open the vtm file you created and edit the line. WIZSET TagName = DefaultCase('mytag:test') where mytag refers to the name you chose for your custom tag library. 5. To refresh the editor and load the custom dialog press CTRL+SHFT+ALT+C 6. Type in the name of your tag in the editor like mytag:test then right click and choose edit tag. Article: http://www.allaire.com/handlers/index.cfm?ID=21342Method=FullTitle=A%20Wiz ard%20for%20Writing%20Those%20Tag%20Dialog%20EditorsCache=False Custom tag wizard: http://www.netwebapps.com/mytags/main.cfm - Original Message - From: Glenn Wearen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 9:18 AM Subject: Re: Custom Tags or Beans | I forgot that most people in this list are not in my time zone, so I got the | low-down on Tags Vs Beans myself. | | I found http://java.oreilly.com/news/jsptips_1100.html 'Choosing Between | Beans and Custom Actions' had a fair discussion about it, also this lists | archive had some debate about the topic before, somebody pointed out that | one of best reasons for using custom-tags is that it allows web-developers | who don't understand Java to write JSP. | | apologies for anybody who took time to respond to my question, my minds made | up to stick with beans because it suits ME! | | Glenn | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Rogue url
Thanks for the info. I have spent considerable time debugging this issue and that is nice information to know. Bryan - Original Message - From: Atilio Ranzuglia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 7:30 AM Subject: Re: Rogue url | The problem you are facing is because you are using | JDBC 1.0 drivers. This matter has a solution on JDBC | 2.0. | | Suppose this ResultSet: | data1-row1 data2-row1 | data1-row2 data2-row2 | data1-row3 data2-row3 | | On JDBC 1.0 you can ask for data2-row1 but then you | cannot ask for the previous one (data1-row1). And you | cannot do first(), last(), previous(), | | On JDBC 2.0 if you declare the ResultSet navigable you | can call all the methods just named, and also you can | get the data on one row in any order. | | Good luck | Atilio | | | | --- Jann VanOver [EMAIL PROTECTED] wrote: | Yeah, Bryan, I found this one out the hard way, too. | Many (most?) db | drivers require you to get each field just once and | TO GET THEM IN THE SAME | ORDER as they appeared in the SELECT statement. It | is often advisable to | loop through the result set once and save the data | into your own class or | other data structure. | | Also, we found out the hard way, that accessing a | column BY NAME had SERIOUS | performance implications (we were using Weblogics db | drivers at the time). | We had to get columns by position (getString(1) | instead of | getString(fldName)) to reach our performance | goals. | | -Original Message- | From: Bryan LaPlante | [mailto:[EMAIL PROTECTED]] | Sent: Saturday, July 07, 2001 7:55 AM | To: [EMAIL PROTECTED] | Subject: Re: Rogue url | | | Call me confused. I have resolved the problem by | moving to the top of my | ResultSet loop and declaring local variables to hold | the value of each | column during the loop. The problem seems to be if I | use the syntax | %=showdb.getString(anyColumn)% more than once in | the same iteration of | the loop it will throw a Java.sql.SQLException. Am I | to assume that after a | reference to the column value has been made that the | ResultSet no longer has | that value? | | What is it that I don't understand here, Anybody? | | Bryan | | - Original Message - | From: Bryan LaPlante [EMAIL PROTECTED] | To: [EMAIL PROTECTED] | Sent: Saturday, July 07, 2001 9:16 AM | Subject: Rogue url | | | | Hi, | | | | I need a second pair of eyes on this line of code. | I am trying to create | an | | anchor tag with the following url. | | | | NewApp.cfm?name=%= showdb.getString(Name); | %description=%= | | showdb.getString(Description) %appID=%= | | showdb.getString(ApplicationID) % | | | | When this line is commented out the loop around it | runs fine displaying | all | | of the ResultSet. When I run this line of code I | get a | | java.sql.SQLException. Can anybody see what I am | doing wrong? | | | | NT4 sp6 | | JRun3.0 | | IIS4 | | | | Bryan LaPlante | | 816-347-8220 | | [EMAIL PROTECTED] | | http://www.netwebapps.com | | Web Development | | | | | | === | | To unsubscribe: mailto [EMAIL PROTECTED] with | body: signoff | JSP-INTEREST. | | For digest: mailto [EMAIL PROTECTED] with | body: set JSP-INTEREST | DIGEST. | | Some relevant FAQs on JSP/Servlets can be found | at: | | | | http://java.sun.com/products/jsp/faq.html | | http://www.esperanto.org.nz/jsp/jspfaq.html | | | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | | | | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | | | | | === | To unsubscribe: mailto [EMAIL PROTECTED] with | body: signoff | JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: | set JSP-INTEREST | DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | | | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | | | === | To unsubscribe: mailto [EMAIL PROTECTED] with | body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: | set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | | | = | Ing. Atilio Ranzuglia Buteler | [EMAIL PROTECTED] | | __ | Do You Yahoo!? | Get personalized email addresses from Yahoo! Mail | http://personal.mail.yahoo.com
Re: How to install a service on a NT server?
at the command line type install MyApplication. I have never tried this with a Java application though. Bryan - Original Message - From: Tom Yang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 09, 2001 12:24 PM Subject: How to install a service on a NT server? | Hi all: | I have a Java application named MyApplication. I need to run it on a NT | server. I can type the command: | | java MyApplication | | But I want to install it as a service so that the application will be | started automatically each time the machine is booted up and the application | can survive logging off. Putting that short-cut of the command in the | StartUp menu is not what I want because the application window still shows | up in the task bar and will be killed if the current user logs off. | Installing it as a service will meet all my requirements. But I don't know | how to do that. Can anybody please help? I've tried the following methods | but didn't succeed: | | 1) I found a utility called SRVANY.EXE which, according to the instruction, | will launch the application as a service. But after I have copied the | SRVANY.EXE to my NT box, I can't run it because I got an Internal error | message when I run it. | | 2) I used the INSTSRV utility to install a command file (a batch file | containing the command java MyApplication) to start my java application. | It seems the batch file can't be used. I probably should have used a .exe | file. But I don't have a utility to convert my batch file to an .exe file. I | found one utility named batch2exe, but that only converts the batch file to | a .com file and that .com file doesn't work on the NT (it only works on | Window 98). Besides, I don't even know whether the .exe file will solve the | problem. | | I've asked several people around but to my disappointment, there's no such | expertise here. I've run out of resource. I know this question may be off | the topic to this news group, but I really don't know where else to seek for | help. Hopefully, someone who has the expertise can drop me a line and help | me. Thank you all very much in advance! | | Tom | | | | _ | Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Need a good book
Has anyone read a good book on JDBC programming lately. I am looking for a book that approaches the subject from both the DBMS and Java language aspect. I guess I am just getting tired of the garden variety examples and I would like to be aware of some other options. Maybe what I really want is a good read on JDBC debugging, If I can understand the problems I am having I can figure out the solution. Bryan LaPlante 816-347-8220 [EMAIL PROTECTED] http://www.netwebapps.com Web Development === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: About resin with apache
I don't know anything about resin but here is the flavor of js that JRun uses to allow JavaScript as the jsp scripting language. http://www.mozilla.org/rhino/ Bryan LaPlante 816-347-8220 [EMAIL PROTECTED] http://www.netwebapps.com Web Development - Original Message - From: Merrill George [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 9:58 AM Subject: About resin with apache | Hi, | I've installed apache with tomcat. I am quite well versed with the | configurations of tomcat engine as well as apache and tomcat with | apace. | Then recently in this list i heard about resin and wanted to try it. | So i've installed it and i have run resin successfully. | But i find it very difficult to configure a web app in resin and i | could not find any help on it. In tomcat it is quite easy. | also the configuration of apache with resin also seemed difficult | whereas for tomcat it is quite easy. | | So can anyone send me a sample configuration (That is configuring a | web app and configuring that web app with apache) | | Also i see that resin allows jsp's to use javascript as the page | language. I'd like to explore on that. | Is there any book or any resource about javascript being used as the | jsp language? | | Merrill | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Rogue url
Hi, I need a second pair of eyes on this line of code. I am trying to create an anchor tag with the following url. NewApp.cfm?name=%= showdb.getString(Name); %description=%= showdb.getString(Description) %appID=%= showdb.getString(ApplicationID) % When this line is commented out the loop around it runs fine displaying all of the ResultSet. When I run this line of code I get a java.sql.SQLException. Can anybody see what I am doing wrong? NT4 sp6 JRun3.0 IIS4 Bryan LaPlante 816-347-8220 [EMAIL PROTECTED] http://www.netwebapps.com Web Development === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Rogue url
Call me confused. I have resolved the problem by moving to the top of my ResultSet loop and declaring local variables to hold the value of each column during the loop. The problem seems to be if I use the syntax %=showdb.getString(anyColumn)% more than once in the same iteration of the loop it will throw a Java.sql.SQLException. Am I to assume that after a reference to the column value has been made that the ResultSet no longer has that value? What is it that I don't understand here, Anybody? Bryan - Original Message - From: Bryan LaPlante [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 9:16 AM Subject: Rogue url | Hi, | | I need a second pair of eyes on this line of code. I am trying to create an | anchor tag with the following url. | | NewApp.cfm?name=%= showdb.getString(Name); %description=%= | showdb.getString(Description) %appID=%= | showdb.getString(ApplicationID) % | | When this line is commented out the loop around it runs fine displaying all | of the ResultSet. When I run this line of code I get a | java.sql.SQLException. Can anybody see what I am doing wrong? | | NT4 sp6 | JRun3.0 | IIS4 | | Bryan LaPlante | 816-347-8220 | [EMAIL PROTECTED] | http://www.netwebapps.com | Web Development | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Rogue url
How do you work around this scenario. I need to call 5 different queries from my DataAccessBean and display the results in a table. When you say save the results in another structure how can I run these queries separately and get different results each time. The queries have the same filed name in different tables, for instance Description and Name. The code below is what I am running. jsp:useBean id=db scope=page class=DataAccessBean/ %! String driver = sun.jdbc.odbc.JdbcOdbcDriver; String url = jdbc:odbc:security; % % ResultSet showdb = db.getApplications(driver,url); while (showdb.next()){ out.println(showdb.getString(Name)); } if (showdb != null) showdb.close(); % % ResultSet showResources = db.getResources(driver,url); while (showResources.next()){ out.println(showResources.getString(Name)); } % - Original Message - From: Jann VanOver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 10:09 PM Subject: Re: Rogue url | Yeah, Bryan, I found this one out the hard way, too. Many (most?) db | drivers require you to get each field just once and TO GET THEM IN THE SAME | ORDER as they appeared in the SELECT statement. It is often advisable to | loop through the result set once and save the data into your own class or | other data structure. | | Also, we found out the hard way, that accessing a column BY NAME had SERIOUS | performance implications (we were using Weblogics db drivers at the time). | We had to get columns by position (getString(1) instead of | getString(fldName)) to reach our performance goals. | | -Original Message- | From: Bryan LaPlante [mailto:[EMAIL PROTECTED]] | Sent: Saturday, July 07, 2001 7:55 AM | To: [EMAIL PROTECTED] | Subject: Re: Rogue url | | | Call me confused. I have resolved the problem by moving to the top of my | ResultSet loop and declaring local variables to hold the value of each | column during the loop. The problem seems to be if I use the syntax | %=showdb.getString(anyColumn)% more than once in the same iteration of | the loop it will throw a Java.sql.SQLException. Am I to assume that after a | reference to the column value has been made that the ResultSet no longer has | that value? | | What is it that I don't understand here, Anybody? | | Bryan | | - Original Message - | From: Bryan LaPlante [EMAIL PROTECTED] | To: [EMAIL PROTECTED] | Sent: Saturday, July 07, 2001 9:16 AM | Subject: Rogue url | | | | Hi, | | | | I need a second pair of eyes on this line of code. I am trying to create | an | | anchor tag with the following url. | | | | NewApp.cfm?name=%= showdb.getString(Name); %description=%= | | showdb.getString(Description) %appID=%= | | showdb.getString(ApplicationID) % | | | | When this line is commented out the loop around it runs fine displaying | all | | of the ResultSet. When I run this line of code I get a | | java.sql.SQLException. Can anybody see what I am doing wrong? | | | | NT4 sp6 | | JRun3.0 | | IIS4 | | | | Bryan LaPlante | | 816-347-8220 | | [EMAIL PROTECTED] | | http://www.netwebapps.com | | Web Development | | | | | === | | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff | JSP-INTEREST. | | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST | DIGEST. | | Some relevant FAQs on JSP/Servlets can be found at: | | | | http://java.sun.com/products/jsp/faq.html | | http://www.esperanto.org.nz/jsp/jspfaq.html | | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | | | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff | JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST | DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq
Re: SCROLLABLE TABLE IN JSP
Try this one on for size and see if it works for you. STYLE .headerTable TH{ color: highlighttext; font-size:8pt; font-family:helvetica; text-align:left; background: highlight; padding-left: 5; padding-right: 5; border-top: 1 solid threedhighlight; border-left: 1 inset threedhighlight; border-right: 1 inset threedshadow; border-bottom: 2 outset threedshadow; cursor: hand; } .listTable{ width: 100%; background-color:##31659C; cursor: default; border-top:0; } /STYLE DIV STYLE=width:200; height:100; overflow:auto; TABLE ID=ApplicationList CLASS=listTable STARTROW=1 SORTANYWHERE=false TR CLASS=headerTable THApplication/TH THDescription/TH /TR TR TDSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDF/TD TDSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDF/TD /TR /TABLE /DIV Bryan LaPlante 816-347-8220 [EMAIL PROTECTED] http://www.netwebapps.com Web Development - Original Message - From: chintha ratnasiri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 06, 2001 11:33 AM Subject: SCROLLABLE TABLE IN JSP | Hi, | Can anyone tell me or point to a resource where I can find how to display | table contents in a scrollable table format on a jsp page? This table has a | lot of columns, so if I use DIV STYLE=overflow: auto I do not know how to | deal with the headers when we scroll horizontally. Thanks for any hints. | Chintha | _ | Get your FREE download of MSN Explorer at http://explorer.msn.com | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Stop I want off
I am trying to develop a database bean and as I make changes and recompile the source I need to run the latest version of the bean. I have looked till I am blue in the face and I can't find a method for flushing a bean out of memory so I can start fresh without having to reboot the server. Anyone know of such a method? Bryan LaPlante 816-347-8220 [EMAIL PROTECTED] http://www.netwebapps.com Web Development === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: SCROLLABLE TABLE IN JSP
Oops disregard the background-color:##31659C; I copied out of one of my CF pages. - Original Message - From: Bryan LaPlante [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 06, 2001 1:06 PM Subject: Re: SCROLLABLE TABLE IN JSP | Try this one on for size and see if it works for you. | | STYLE | | .headerTable TH{ | color: highlighttext; | font-size:8pt; | font-family:helvetica; | text-align:left; | background: highlight; | padding-left: 5; | padding-right: 5; | border-top: 1 solid threedhighlight; | border-left: 1 inset threedhighlight; | border-right: 1 inset threedshadow; | border-bottom: 2 outset threedshadow; | cursor: hand; | } | .listTable{ | width: 100%; | background-color:##31659C; | cursor: default; | border-top:0; | } | /STYLE | | DIV STYLE=width:200; height:100; overflow:auto; | TABLE ID=ApplicationList CLASS=listTable STARTROW=1 | SORTANYWHERE=false | TR CLASS=headerTable | THApplication/TH | THDescription/TH | /TR | TR | TDSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDF/TD | TDSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDF/TD | /TR | /TABLE | /DIV | | Bryan LaPlante | 816-347-8220 | [EMAIL PROTECTED] | http://www.netwebapps.com | Web Development | - Original Message - | From: chintha ratnasiri [EMAIL PROTECTED] | To: [EMAIL PROTECTED] | Sent: Friday, July 06, 2001 11:33 AM | Subject: SCROLLABLE TABLE IN JSP | | | | Hi, | | Can anyone tell me or point to a resource where I can find how to display | | table contents in a scrollable table format on a jsp page? This table has | a | | lot of columns, so if I use DIV STYLE=overflow: auto I do not know how | to | | deal with the headers when we scroll horizontally. Thanks for any hints. | | Chintha | | _ | | Get your FREE download of MSN Explorer at http://explorer.msn.com | | | | | === | | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff | JSP-INTEREST. | | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST | DIGEST. | | Some relevant FAQs on JSP/Servlets can be found at: | | | | http://java.sun.com/products/jsp/faq.html | | http://www.esperanto.org.nz/jsp/jspfaq.html | | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | | | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Bean fart
Help! I created a simple class with an access constructor and one method to setDisplayType and got no errors when it compiled. When I put the useBean tag in my jsp page like so: jsp:useBean id=tabStatus scope=page type=String class=DisplayStyle.class/ I get the following error: java:65:92:65:96: Syntax: Identifier expected instead of this token If I take the useBean tag out again the jsp page runs with no errors. I know that I am missing something, the bean and my runtime info are below. Any help is appreciated. NT4 sp6 JRun 3.0 DisplayStyle.class - import java.io.*; import java.util.*; public class DisplayStyle { public DisplayStyle(){ } public String setDisplayType(String displayType, String currentDisplay){ if (displayType.equals(currentDisplay)) return block; else return none; } } === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: eye's wide shut
That worked perfectly. I am coming from the JavaScript world and I guess I am used to == as the equality operator, don't laughg Thank you everyone for you help. Bryan - Original Message - From: uwe schaefer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:22 AM Subject: Re: eye's wide shut | Answering a mail | from: Bryan LaPlante [EMAIL PROTECTED] | to:[EMAIL PROTECTED] | dated: Tue, 3 Jul 2001 00:55:52 -0500 | __ | | Hallo Bryan LaPlante | | String[] tabList = {Applications,Resources,Rules,Users / Groups}; | for (int i = 0; i tabList.length; i++){ | if (tab == tabList[i].toString()){ | ^ | | you seem to compare Strings with == instead of .equals :) | common error. | | MfG Uwe Schaefer | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: open frame set
I believe you will want to reload your page and send the command to the client side with JavaScript's parent.location.href=url.jsp?args=here or top.location.href I think they are both synonymous. Bryan LaPlante 816-347-8220 [EMAIL PROTECTED] http://www.netwebapps.com Web Development - Original Message - From: Chandralal Aruketty Velayudhan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 6:39 AM Subject: open frame set | hi there, | hope u have a solution for this. | | i have a login page with 3 frmesets,from frame 2 i am submitting form to | submit.jsp, | there i am checking whether id password are correct or not. | If password is incorrect i am forwarding using jsp:forward to frame2 with | a message. | But if Id Password are correct i want to load a new set of frames to user. | But what is happening is this new set of frames opening in frame2. | how can i load this new set of frames to entire window | | code of submit.jsp is | ** | % | if(validated) { | % | jsp:forward page=newFrameset.jsp / | % | } | else { | % | jsp:forward page=frame2.jsp | jsp:param name=message value=invalid loginId or | Password / | /jsp:forward | % | } | % | * | | thankx in advance | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Using Dynamo + Iplanet
Before Netscape 6 style sheet support is not very good. Here is a link to a page you can use for comparison purposes. http://css.nu/pointers/bugs.html Bryan LaPlante 816-347-8220 [EMAIL PROTECTED] http://www.netwebapps.com Web Development - Original Message - From: Abhi Patil [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 2:51 PM Subject: Re: Using Dynamo + Iplanet | Hi all | cud anyone let me know how style sheets works in netscape. | I'm terribly frustrated with it. | Please help. | Thanks in advance. | Abhi | -Original Message- | From: Billy Gates [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, July 03, 2001 3:24 PM | To: [EMAIL PROTECTED] | Subject: Using Dynamo + Iplanet | | | Has anyone ran into a problem using jsp under the dynamo + iplanet. | | Has anyone had any success stories. | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff | JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST | DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | | === | To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. | For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. | Some relevant FAQs on JSP/Servlets can be found at: | | http://java.sun.com/products/jsp/faq.html | http://www.esperanto.org.nz/jsp/jspfaq.html | http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP | http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets | === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
eye's wide shut
Hi, JSP newbie here. I am trying to set the active tab on the client side based on the parameter passed in the url. All of the code below works except the if condition is always false and I can't seem to see my way to reason. If I could get an objective eye here I would appreciate it so much. Thanks. NT4 sp6 JRun 3.0 JDK 1.3 snip %! String PageName = Security Manager; String tab = application; String tabClass = ; % % if (request.getParameter(tab) != null){ tab = request.getParameter(tab); } String[] tabList = {Applications,Resources,Rules,Users / Groups}; for (int i = 0; i tabList.length; i++){ if (tab == tabList[i].toString()){ tabClass = activeTab; }else{ tabClass = dormantTab; } out.println(td class=' + tabClass + ' NOWRAP + tabList[i] + /td); } % /snip === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets