Lunix Box For Production
Hi all, The company I am working for asking me to develop for them a web site that will run in Lunix Box. I am know some JSP and Servlets, but I am not familiar with the Lunix Environment. Most of my java experiences was in W2K Professional. My question is if I am developing this application in W2K and deploy it in Lunix, is there any consideration I should be aware of. ( I know java is portable, but sometime it can be tricky too). Thanks, DucMSN Photos is the easiest way to share and print your photos: Click Here === 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: Lunix Box For Production
Lunix(I do not know what it is) or Linux? Jiri > Hi all, > The company I am working for asking me to develop for them a web site that will run in Lunix Box. I am know some JSP and Servlets, but I am not familiar with the Lunix Environment. Most of my java experiences was in W2K Professional. My question is if I am developing this application in W2K and deploy it in Lunix, is there any consideration I should be aware of. ( I know java is portable, but sometime it can be tricky too). > > Thanks, > DucMSN Photos is the easiest way to share and print your photos: Click Here -- Jiri Chaloupka B2BExpander.com [EMAIL PROTECTED] ** Have you visited www.b2bexpander.com today? === 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: Lunix Box For Production
No problems :) perenosi (rus) === 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
Email attachment without first uploading the file to the server?
Hi, I am writing a jsp program in which user can send email attachment. Since users are not allowed to upload file from their local machine to the server. Is there a way to write a jsp program which can send out the email attachment WITHOUT first uploading the file to the sever? It is urgent , please help. Roland === 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
share jsp pages from other servlet contexts
Under tomcat 4 webapps, I have an authorization app which contains JSPs to do login for other apps. I am using a simbolic link(on Unix box) to authorization app's JSPs so each app won't have to jump context and still share the authorization app's JSPs. I was told by network administrator that simbolic link is bad for scalability. Is it true? But since I need to store some user info in the session after login, I couldn't jump servlet contexts. That is why I use simbolic link. By using simbolic link, several apps can share common JSP pages. But our network administrator still refuse to do so. He said resources in one context shouldn't be available for other apps for security reasons. Is it true? All I want is to share jsp pages by many servlet contexts. Can anybody give me advice? Thanks Frank Shen Software Developer === 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: share jsp pages from other servlet contexts
beware that something like this could happen. I gave a rm -r on the htdocs folder in the production server and found that some folders in the main server got deleted. someone had just linked a directory instead of copying it! Nagarajan On Tuesday 21 May 2002 19:17, you wrote: > Under tomcat 4 webapps, I have an authorization app which contains JSPs to > do login for other apps. I am using a simbolic link(on Unix box) to > authorization app's JSPs so each app won't have to jump context and still > share the authorization app's JSPs. > > I was told by network administrator that simbolic link is bad for > scalability. Is it true? > > But since I need to store some user info in the session after login, I > couldn't jump servlet contexts. That is why I use simbolic link. By using > simbolic link, several apps can share common JSP pages. > > But our network administrator still refuse to do so. He said resources in > one context shouldn't be available for other apps for security reasons. Is > it true? > > All I want is to share jsp pages by many servlet contexts. Can anybody give > me advice? > > Thanks > > Frank Shen > Software Developer > > === > 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
how to use wasEmpt and rowCount of DBtaglib ??
I want to have a test if a row exist or not ( for insert or update) select * from history where name="var1" and person="var2" In the DBtaglib in the documentation it said use wasEmpty or rowCount, could you please show me how to use it. thanks, your help is appreciated _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. === 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: how to use wasEmpt and rowCount of DBtaglib ??
Sufi, There is an example in the documentation for the DbTags. http://jakarta.apache.org/taglibs/doc/dbtags-doc/index.html#overview.tags.resultset Regards, Richard At 07:34 PM 5/21/2002 +, you wrote: >I want to have a test if a row exist or not ( for insert or update) > > > select * from history where name="var1" and person="var2" > > > >In the DBtaglib in the documentation it said use wasEmpty or rowCount, could >you please show me how to use it. >thanks, your help is appreciated > > >_ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > >=== >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
Re: how to use wasEmpt and rowCount of DBtaglib ??
Hi, No that was for wasNull, what I am asking for is rowCount and wasEmpty. thank you anyway. >From: Richard Yee <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: how to use wasEmpt and rowCount of DBtaglib ?? >Date: Tue, 21 May 2002 14:18:49 -0700 > >Sufi, >There is an example in the documentation for the DbTags. > >http://jakarta.apache.org/taglibs/doc/dbtags-doc/index.html#overview.tags.resultset > >Regards, > >Richard > > >At 07:34 PM 5/21/2002 +, you wrote: >>I want to have a test if a row exist or not ( for insert or update) >> >> >> select * from history where name="var1" and person="var2" >> >> >> >>In the DBtaglib in the documentation it said use wasEmpty or rowCount, >>could >>you please show me how to use it. >>thanks, your help is appreciated >> >> >>_ >>Get your FREE download of MSN Explorer at >>http://explorer.msn.com/intl.asp. >> >>=== >>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 _ Send and receive Hotmail on your mobile device: http://mobile.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://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: how to use wasEmpt and rowCount of DBtaglib ??
Sufi, This was from the link I sent you: "wasEmpty" and "wasNotEmpty" tags The "wasEmpty" tag only executes its body if the last ResultSet tag received 0 rows from the database. You must be after a resultSet tag, or an error will be generated. The "wasNotEmpty" tag executes its body if the last ResultSet received more than 0 rows from the database. See the Tag Reference for examples. "rowCount" tag The "rowCount" tag prints out the number of rows retrieved from the database. It can be used inside a ResultSet tag to provide a running count of rows retreived, or after the ResultSet tag to display the total number. See the Tag Reference for examples. Using the tag before the ResultSet will produce an error. wasEmpty Availability: 1.0 Executes its body if the last ResultSet tag received 0 rows from the database. You must be after a ResultSet tag, or an error will be generated. Tag Body JSP Restrictions Use after a ResultSet tag. Attributes None Variables None Examples <%-- showing the contents of the table --%> idnamedescription select id, name, description from test_books <%-- show different text, depending on whether or not any rows were retrieved --%> No rows retrieved. rows retrieved. wasNotEmpty Availability: 1.0 Executes its body if the last ResultSet tag received more than 0 rows from the database. You must be after a ResultSet tag, or an error will be generated. Tag Body JSP Restrictions Use after a ResultSet tag. Attributes None Variables None Examples <%-- showing the contents of the table --%> idnamedescription select id, name, description from test_books <%-- show different text, depending on whether or not any rows were retrieved --%> No rows retrieved. rows retrieved. rowCount Availability: 1.0 Prints out the number of rows retrieved from the database. It can be used inside a ResultSet tag to provide a running count of rows retreived, or after the ResultSet tag to display the total number. Using the tag before the ResultSet will produce an error. Tag Body empty Restrictions Use inside or after a ResultSet tag (not before). Attributes None Variables None Examples <%-- showing the contents of the table --%> idnamedescription select id, name, description from test_books <%-- show different text, depending on whether or not any rows were retrieved --%> No rows retrieved. rows retrieved. It shows how to use wasEmpty and rowCount if you look at the examples. Regards, Richard At 12:54 AM 5/22/2002 +, you wrote: >Hi, >No that was for wasNull, what I am asking for is rowCount and wasEmpty. >thank you anyway. === 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: Email attachment without first uploading the file to the server?
On 5/21/02 10:15 AM, "Roland Dong" <[EMAIL PROTECTED]> wrote: > I am writing a jsp program in which user can send email attachment. Since > users are not allowed to upload file from their local machine to the server. > Is there a way to write a jsp program which can send out the email > attachment WITHOUT first uploading the file to the sever? It is urgent , > please help. Maybe I am missing something, but I'd say it's technically impossible to send a file from a server that doesn't have that file. Of course you can send the file from the client's machine as an e-mail attachment, but the user would have to specifically attach the file to the e-mail message, and that would of course bypass the whole process of even using the web in the first place. I'd say take that route -- how difficult can it be? To send a file from the web server without that file existing on the server, you would need to incorporate some sort of mindreading-like software, which I have never seen or heard of being successfully implemented. Regards, Andy === 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
Re: Lunix Box For Production
Hi, I assume that you have written abt Linux. You can do the development part in the W2K atmosphere.Butit is always preferred to test the same in the Linux environment before deployment. On normal terms this does not give any problems as such. But care should be taken have OS compatible JDK,webserver etc. Hope this helps Sankar Melethat Duc Nguyen wrote: > Hi all,The company I am working for asking me to develop for them a > web site that will run in Lunix Box. I am know some JSP and Servlets, > but I am not familiar with the Lunix Environment. Most of my java > experiences was in W2K Professional. My question is if I am > developing this application in W2K and deploy it in Lunix, is there > any consideration I should be aware of. ( I know java is portable, but > sometime it can be tricky too). Thanks,Duc > > > --- > MSN Photos is the easiest way to share and print your photos: Click > Here > > == > 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
Redirection from Servlet to JSP
Hi All, I am facing problem while redirecting from servlet to JSP. Although JSP page is displaying properly, the CSS used in it is not working properly. Also the address showed in the address bar of the browser is of servlet. I am using following command for redirection from servlet getServletConfig().getServletContext().getRequestDispatcher("StoreOpen.j sp") If any one could kindly explain me what more to do to make JSP address visible in the bar rather than servlet address, it would be of great help for me. Thanking you all Biji Harees Amsoft India Ltd Bangalore === 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: Redirection from Servlet to JSP
The address in bar will be of the Servlet only as you are dispathcing the request to another JSP and not redirecting the URL. If you will redirect using Response,sendRedirect("") then the URL will get changed. What error you are getting for CSS? I thinking the URL for CSS in your JSP may be wrong. You must ahve defined it relative, define it virtual and it will work for you. -Original Message- From: Biji Harees [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 3:16 PM To: [EMAIL PROTECTED] Subject: Redirection from Servlet to JSP Hi All, I am facing problem while redirecting from servlet to JSP. Although JSP page is displaying properly, the CSS used in it is not working properly. Also the address showed in the address bar of the browser is of servlet. I am using following command for redirection from servlet getServletConfig().getServletContext().getRequestDispatcher("StoreOpen.j sp") If any one could kindly explain me what more to do to make JSP address visible in the bar rather than servlet address, it would be of great help for me. Thanking you all Biji Harees Amsoft India Ltd Bangalore === 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
Re: Email attachment without first uploading the file to the server?
Roland, Search the Servlet-Interest archives for messages having the subject of: Sevlet Upload Question and Re: Sevlet Upload Question There was a discussion about changing Jason Hunter's file upload code so that it generated a unique filename for the upload file or it stored the file in memory rather than writing it to disk in order to write the file into a DB. You might want to contact Jeff Schnitzer, the originator of the thread, to see what he ended up with. Regards, Richard At 10Delivered-To: [EMAIL PROTECTED] X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en Date: Wed, 1 May 2002 00:09:59 -0700 Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]> Sender: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]> From: Jason Hunter <[EMAIL PROTECTED]> Subject: Re: Sevlet Upload Question To: [EMAIL PROTECTED] OK, you've convinced me. I'm working on a version of the COS library that will support pluggable file renaming/moving logic. -jh- Jeff Schnitzer wrote: > > Hey, cool, thanks for chiming in :-) > > > From: Jason Hunter [mailto:[EMAIL PROTECTED]] > > > > Is it really a deficiency in the com.oreilly.servlet code? > > I think my use case is probably pretty typical: A website that allows > people to upload images and share them with others. Because of the way > digital cameras automatically name images, the probability that two > people will simultaneously upload two different files with the same name > is high. > > Thus my uploaders need to work in isolated environments; filenames need > to be pretty much irrelevant. > > > If you want some other front end, > > providing things like overwrite handling or saving different files to > > another location, you can write another front end basing on the MR > > code. I see that's what you did; you wrote a front end to read the > > files into memory and avoid the filesystem. > > Yup :-) It would have been nicer if I could have extended the > MultipartWrapper/MultipartRequest to override the behavior I needed, > though. > > > But to be honest, I'm going to need to be convinced it's necessary. > > I've let MR write the files to a temp directory and then let the web > app > > move them to the appropriate "golden" location. The web app can > enforce > > the business logic on how it want to deal with conflicts (like newer > > file wins or original file wins or file gets renamed or whatever). > That > > also saves you from ever having partial uploads in the "golden" > > location. A file move on the same filesystem is an extremely fast > > operation compared to the upload, so no slowdown. It also solves the > > problem where you need to change the location based on a parameter, > > since there's no guarantee the parameter will come before the files in > > the upload stream. > > The problem is not for collisions after uploads, but during the upload > process. Ideally, each file would be written to a unique temporary > filename until the upload is complete. > > I was lazy, and I could get away with it, so I just persisted my uploads > in memory. Temporary files would be better. > > BTW, thanks for the code (and the book)! > > Jeff Schnitzer > [EMAIL PROTECTED] > :15 AM 5/21/2002 -0500, you wrote: >Hi, > >I am writing a jsp program in which user can send email attachment. Since >users are not allowed to upload file from their local machine to the server. >Is there a way to write a jsp program which can send out the email >attachment WITHOUT first uploading the file to the sever? It is urgent , >please help. > >Roland > >=== >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
Re: share jsp pages from other servlet contexts
Why don't you copy the jsps in the other Web App as well? Now everybody will say it won't be managable. For this you can setup Interwoven Open deploy which keeps all the files in sink. -Original Message- From: Frank Shen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 10:48 PM To: [EMAIL PROTECTED] Subject: share jsp pages from other servlet contexts Under tomcat 4 webapps, I have an authorization app which contains JSPs to do login for other apps. I am using a simbolic link(on Unix box) to authorization app's JSPs so each app won't have to jump context and still share the authorization app's JSPs. I was told by network administrator that simbolic link is bad for scalability. Is it true? But since I need to store some user info in the session after login, I couldn't jump servlet contexts. That is why I use simbolic link. By using simbolic link, several apps can share common JSP pages. But our network administrator still refuse to do so. He said resources in one context shouldn't be available for other apps for security reasons. Is it true? All I want is to share jsp pages by many servlet contexts. Can anybody give me advice? Thanks Frank Shen Software Developer === 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
Re: Redirection from Servlet to JSP
Hi, It is not giving any error but Style sheet defined is not working and display itslef is changed fully. Again after redirection if I try to submit using a select box, it is giving error. response.sendRedirect doesn't work when you try to redirect from a servlet to JSP. Is there any solution for this problem. Thanx Biji Harees Amsoft India Ltd Bangalore -Original Message- From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 10:15 AM To: [EMAIL PROTECTED] Subject:Re: Redirection from Servlet to JSP The address in bar will be of the Servlet only as you are dispathcing the request to another JSP and not redirecting the URL. If you will redirect using Response,sendRedirect("") then the URL will get changed. What error you are getting for CSS? I thinking the URL for CSS in your JSP may be wrong. You must ahve defined it relative, define it virtual and it will work for you. -Original Message- From: Biji Harees [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 3:16 PM To: [EMAIL PROTECTED] Subject: Redirection from Servlet to JSP Hi All, I am facing problem while redirecting from servlet to JSP. Although JSP page is displaying properly, the CSS used in it is not working properly. Also the address showed in the address bar of the browser is of servlet. I am using following command for redirection from servlet getServletConfig().getServletContext().getRequestDispatcher("StoreOpen.j sp") If any one could kindly explain me what more to do to make JSP address visible in the bar rather than servlet address, it would be of great help for me. Thanking you all Biji Harees Amsoft India Ltd Bangalore === 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 === 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: Redirection from Servlet to JSP
Send some code snippet and your directory structure. I have done the same way and it works for me. -Original Message- From: Biji Harees [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 3:58 PM To: [EMAIL PROTECTED] Subject: Re: Redirection from Servlet to JSP Hi, It is not giving any error but Style sheet defined is not working and display itslef is changed fully. Again after redirection if I try to submit using a select box, it is giving error. response.sendRedirect doesn't work when you try to redirect from a servlet to JSP. Is there any solution for this problem. Thanx Biji Harees Amsoft India Ltd Bangalore -Original Message- From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 10:15 AM To: [EMAIL PROTECTED] Subject:Re: Redirection from Servlet to JSP The address in bar will be of the Servlet only as you are dispathcing the request to another JSP and not redirecting the URL. If you will redirect using Response,sendRedirect("") then the URL will get changed. What error you are getting for CSS? I thinking the URL for CSS in your JSP may be wrong. You must ahve defined it relative, define it virtual and it will work for you. -Original Message- From: Biji Harees [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 3:16 PM To: [EMAIL PROTECTED] Subject: Redirection from Servlet to JSP Hi All, I am facing problem while redirecting from servlet to JSP. Although JSP page is displaying properly, the CSS used in it is not working properly. Also the address showed in the address bar of the browser is of servlet. I am using following command for redirection from servlet getServletConfig().getServletContext().getRequestDispatcher("StoreOpen.j sp") If any one could kindly explain me what more to do to make JSP address visible in the bar rather than servlet address, it would be of great help for me. Thanking you all Biji Harees Amsoft India Ltd Bangalore === 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 === 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
Re: how to make login.jsp default?
U know when i put the login.jsp in welcome file list it doesn't work but when i make and index.jsp then it opens as a welcome file what does it mean? i think to your welcome file u have to give name index.jsp or .html if u want to make it welcome file is it so? Vaishali Relience Ind Ltd Ahm'd Define the welcome file list in your web.xml of the Web App whose context name is vaishali. In the welcome file list give the file as login.jsp. -Original Message- From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 9:59 AM To: [EMAIL PROTECTED] Subject: how to make login.jsp default? my path is //vaishali/*.jsp i have to many jsp and html files in my folder when i give url /../vaishali/ it gives me list of all files well i know updating server.xml i can bypass it but i want that when i give this path the login.jsp should execute which is there in vaishali. how to do? ThankX Vaishali RIL Ahm'd === 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 === 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: Redirection from Servlet to JSP
why don't you try to forward the url ServletContext context = getServletContext (); RequestDispatcher dispatcher = context.getRequestDispatcher ("StoreOpen.jsp"); dispatcher.forward (request, response); if you want to have the jsp in the header you can use response.setHeader("Refresh","2;URL=StoreOpen.jsp"); Regards Ramesh Kesavanarayanan [EMAIL PROTECTED] Off: 91-44-8113801 ext 2333 Res:91-44-2265360 Mob : 91-98412-73573 > -Original Message- > From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 10:49 AM > To: [EMAIL PROTECTED] > Subject: Re: Redirection from Servlet to JSP > > Send some code snippet and your directory structure. I have done the same > way and it works for me. > > -Original Message- > From: Biji Harees [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 3:58 PM > To: [EMAIL PROTECTED] > Subject: Re: Redirection from Servlet to JSP > > > Hi, > It is not giving any error but Style sheet defined is not working and > display itslef is changed fully. Again after redirection if I try to > submit > using a select box, it is giving error. > response.sendRedirect doesn't work when you try to redirect from a servlet > to JSP. Is there any solution for this problem. > > Thanx > > Biji Harees > Amsoft India Ltd > Bangalore > > -Original Message- > From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 10:15 AM > To: [EMAIL PROTECTED] > Subject:Re: Redirection from Servlet to JSP > > The address in bar will be of the Servlet only as you are dispathcing the > request to another JSP and not redirecting the URL. If you will redirect > using Response,sendRedirect("") then the URL will get changed. > > What error you are getting for CSS? I thinking the URL for CSS in your JSP > may be wrong. You must ahve defined it relative, define it virtual and it > will work for you. > > -Original Message- > From: Biji Harees [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 3:16 PM > To: [EMAIL PROTECTED] > Subject: Redirection from Servlet to JSP > > > Hi All, > > I am facing problem while redirecting from servlet to JSP. Although JSP > page is displaying properly, the CSS used in it is not working properly. > Also the address showed in the address bar of the browser is of servlet. > I am using following command for redirection from servlet > getServletConfig().getServletContext().getRequestDispatcher("StoreOpen.j > sp") > If any one could kindly explain me what more to do to make JSP address > visible in the bar rather than servlet address, it would be of great help > for me. > > Thanking you all > > Biji Harees > Amsoft India Ltd > Bangalore > > == > = > 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 > > == > = > 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 === 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:
Re: Passing "array parameters" from one page to another
hay julia Have u find the solution? cause i didn't find any answer for ur que in the list pls forword me if any one u found as i am also facing the same. but as i know your url can not have more than 256 chars right? what to do it it became more lenghty? Vaishali Relience Ind Ltd Ahm'd Hi all!! I want to pass an undetermined number of names, for example, from one page to another. I guess the only way to do this is to add all the names in one string, separated by a special character, and then spliting the string at the target page. Any better ways?? I'm try to doing this but String name = request.getParameter("name"); String names[] = name.split("*"); but I get an error saying this method is "deprecated" ?? I have imported java.lang.*. Thanks in advance, Julia - Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Indra. En el caso de haber recibido este correo electrónico por error, se ruega notifíquese inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente. - The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail. - =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
how to pass an array?
as the prev que i want to pass more than one number of variable to next page how to pass an array in url? i mean i want to keep the parameter i have passes before and want to add one more everytime i think i can do it if i can pass an array but how? pls write me answers will be great help for me. Vaishali Relience Ind Ltd Ahm'd === 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: how to pass an array?
Vaishali, The answer is that you don't pass an array in the URL. You put it in the user's session and then just get it from the session in the next page. Regards, Richard At 11:35 AM 5/22/2002 +0530, you wrote: >as the prev que >i want to pass more than one number of variable to next page >how to pass an array in url? >i mean i want to keep the parameter i have passes before and want to add >one more everytime >i think i can do it if i can pass an array >but how? >pls write me >answers will be great help for me. > >Vaishali >Relience Ind Ltd >Ahm'd > >=== >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