How do i get the URL ... ?

2003-02-21 Thread Mufaddal Khumri
Hi, Lets say I have a Welcome.jsp page. How can i get the completely URL to this page from within the Welcome.jsp page ? Welcome.jsp could be under http://mydomain.ding.com/blah/bloop/Welcome.jsp OR http://yourdomain.dong.com/yum/dum/Welcome.jsp So how do i access what URL was used to access

How do i get the URL ... ?

2003-02-21 Thread Mufaddal Khumri
Hi, Lets say I have a Welcome.jsp page. How can i get the completely URL to this page from within the Welcome.jsp page ? Welcome.jsp could be under http://mydomain.ding.com/blah/bloop/Welcome.jsp OR http://yourdomain.dong.com/yum/dum/Welcome.jsp So how do i access what URL was used to access

Need to create two lists and add remove data between them.... ?

2003-02-25 Thread Mufaddal Khumri
Hi, I have a JSP page on which i need to create two lists side by side and have two buttons between them - Add and Remove. I have other stuff on the same JSP page as well. like text boxes, check boxes etc. How do I get my add and remove buttons to work so that i can capture a mouse click on

Need to create two lists and add remove data between them.... ?

2003-02-25 Thread Mufaddal Khumri
Hi, I have a JSP page on which i need to create two lists side by side and have two buttons between them - Add and Remove. I have other stuff on the same JSP page as well. like text boxes, check boxes etc. How do I get my add and remove buttons to work so that i can capture a mouse click on

Re: Need to create two lists and add remove data between them.... ?

2003-02-25 Thread Mufaddal Khumri
- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:52 PM To: Tomcat List Subject: Need to create two lists and add remove data between them ? Hi, I have a JSP page on which i need to create two lists side by side and have two buttons between them - Add

is there a tag or some kind of mechanism that would do the following ...

2003-02-25 Thread Mufaddal Khumri
Hi, Many times we come across a lot of out.println( ... ) statements in our servlets: public class MyServlet extends { doPost( ... ) { . . out.println(html);

Re: is there a tag or some kind of mechanism that would do the following ...

2003-02-25 Thread Mufaddal Khumri
better ideas to do this ? Mufaddal. On Tuesday, February 25, 2003, at 01:57 PM, Mufaddal Khumri wrote: Hi, Many times we come across a lot of out.println( ... ) statements in our servlets: public class MyServlet extends { doPost

cant access tomcat admin utility

2003-02-28 Thread Mufaddal Khumri
Hi I have a user defined as admin having admin, manager roles. I can access the tomcat - manager utility thru the browser but am unable to access the admin utility. When i try to goto http://localhost:8080/admin it says - Access to the specified resource () has been forbidden. am i missing

Admin tool for Tomcat not working.

2003-02-28 Thread Mufaddal Khumri
Hi I have a user defined as admin having 2 roles: 1. admin, 2 manager. I can access the tomcat - manager utility thru the browser, but am unable to access the admin utility. When i try to goto http://localhost:8080/admin it says - Access to the specified resource () has been forbidden. Am i

Am i doing something wrong while using jsp:setProperty ... / ?????

2003-03-03 Thread Mufaddal Khumri
Hi , Am i doing something wrong while using jsp:setProperty ... / ? My bean has the following properties: / /--- DBReader dbReader = null; DBWriter dbWriter = null; public void setDbReader(DBReader

Something wrong while using jsp:setProperty ... / ????? (a correction to my previous question)

2003-03-03 Thread Mufaddal Khumri
Hi , Am i doing something wrong while using jsp:setProperty ... / ? My bean has the following properties: / /--- DBReader dbReader = null; DBWriter dbWriter = null; public void setDbReader(DBReader

Re: Am i doing something wrong while using jsp:setProperty ... / ?????

2003-03-03 Thread Mufaddal Khumri
.. its throwing an exception at this line : if (pageContext != null) pageContext.handlePageException(t); On Monday, March 3, 2003, at 11:24 PM, Erik Price wrote: Mufaddal Khumri wrote: [...] In my JSP page i have the following code

The problem re-stated ... regarding jsp:useBean .. /

2003-03-03 Thread Mufaddal Khumri
jsp:useBean id=faqHelper class=FAQHelper scope=session jsp:setProperty name=faqHelper property=dbReader value=%= (Object)session.getAttribute(DBREADER)% /

tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Mufaddal Khumri
I have the following taglib descriptor defined // __ taglib tlib-version1.0/tlib-version jsp-version1.2/jsp-version short-namecw/short-name urihttp://www.wmotion.com/tomcat/coursewizard-taglib/uri

Re: tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Mufaddal Khumri
be from the email client. Erik Mufaddal Khumri wrote: I have the following taglib descriptor defined // __ __ __ taglib tlib-version1.0/tlib-version jsp-version1.2/jsp-version short-namecw/short-name urihttp

Re: tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Mufaddal Khumri
Sorry, abt that ... that was a typo, I do have it defined as: tlib-version 1.0/tlib-version The problem persists .. any cues ? On Tuesday, March 4, 2003, at 02:14 AM, Erik Price wrote: That taglib descriptor has a tlib-version of .0 Mufaddal Khumri wrote: Yes, I do have the XML declaration

Re: tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Mufaddal Khumri
/rtexprvalue /attribute /tag /taglib On Tuesday, March 4, 2003, at 02:36 AM, Erik Price wrote: Mufaddal Khumri wrote: Sorry, abt that ... that was a typo, I do have it defined as: tlib-version 1.0/tlib-version The problem persists .. any cues ? Well, I just checked my own taglib descriptor

Re: tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Mufaddal Khumri
Hi, Thanks Eric .. that was the problem .. the order ! ... the taglib documentation just said .. you need these elements .. never knew that order would matter. Thanks for your help. On Tuesday, March 4, 2003, at 02:59 AM, Erik Price wrote: Mufaddal Khumri wrote: Hi ... From the error i

response.sendRedirect( ); question

2003-03-04 Thread Mufaddal Khumri
I have a .jsp page which has the following contents: / /--- html % // if the user is not authenticated, we need to send them to the login page if(session.getAttribute(USER_AUTHORIZED) ==

response.sendRedirect( ); question

2003-03-04 Thread Mufaddal Khumri
I have a .jsp page which has the following contents: / /--- html % // if the user is not authenticated, we need to send them to the login page if(session.getAttribute(USER_AUTHORIZED) ==

Re: response.sendRedirect( ); question

2003-03-04 Thread Mufaddal Khumri
) at java.lang.Thread.run(Thread.java:554) On Wednesday, March 5, 2003, at 02:43 AM, Erik Price wrote: Mufaddal Khumri wrote: Now if the USER_AUTHORIZED attribute is not set, it will enter the if block and get redirected to the login.jsp page. The browser shows me the content of the body

response.sendRedirect( .. )

2003-03-04 Thread Mufaddal Khumri
I have a .jsp page which has the following contents: / /--- html % // if the user is not authenticated, we need to send them to the login page if(session.getAttribute(USER_AUTHORIZED) ==

Re: response.sendRedirect( .. )

2003-03-04 Thread Mufaddal Khumri
- it specified by the JSP spec. -Tim Mufaddal Khumri wrote: I have a .jsp page which has the following contents: / /- -- html % // if the user is not authenticated, we need to send them

jsp:forward .. / from within an included JSP file ?

2003-03-04 Thread Mufaddal Khumri
Now, since a request.sendRedirect( .. ) wont work from within an included .jsp page ... i am trying to use the jsp:forward ... / tag. / /--- html % // if the user is not authenticated, we

Does anybody know what this error implies ?

2003-03-05 Thread Mufaddal Khumri
Hi I have a tag handler class called Context ... what does the following error mean ? cannot access member of class XYZ with modifiers ? org.apache.jasper.JasperException: Class org.apache.jasper.runtime.TagHandlerPool can not access a member of class

Does anybody know what this error implies ?

2003-03-05 Thread Mufaddal Khumri
Hi I have a tag handler class called Context ... what does the following error mean ? cannot access member of class XYZ with modifiers ? org.apache.jasper.JasperException: Class org.apache.jasper.runtime.TagHandlerPool can not access a member of class

Re: Does anybody know what this error implies ?

2003-03-05 Thread Mufaddal Khumri
Filip -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:37 PM To: Tomcat List Subject: Does anybody know what this error implies ? Hi I have a tag handler class called Context ... what does the following error mean ? cannot access member

Looking for suggestions or pointers ..

2003-07-14 Thread Mufaddal Khumri
The problem: We have some codebase that uses a legacy connection pool manager (cpm) to manage database connections with mysql. The very first time the login.jsp is used by a user causes an instance of cpm being created and stored in the application context. The cpm gets and frees

Servlet Context Listener problem...

2003-07-14 Thread Mufaddal Khumri
Hi: I implemented ServletContextListener in my class. I then wrote the xml in the web.xml file and started tomcat. The error tomcat threw tells me that it did not recognize the listener and listener-class elements ?? i have them declared in the web.xml as: web-app !--

Re: Servlet Context Listener problem...

2003-07-15 Thread Mufaddal Khumri
: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 6:41 AM To: Tomcat List Subject: Servlet Context Listener problem... Hi: I implemented ServletContextListener in my class. I then wrote the xml in the web.xml file and started tomcat. The error tomcat threw tells me that it did

Resolved Re: Servlet Context Listener problem...

2003-07-15 Thread Mufaddal Khumri
CHANGED the reference to the dtd and it worked. That was the error because I was referencing the old dtd which does not recognize listener or listener-class. I had: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN

contextDestroyed being called twice ???

2003-07-15 Thread Mufaddal Khumri
I have defined a listener class that implements: public void contextDestroyed(ServletContextEvent sce) { ... } The problem is this method is being called twice when i use the tomcat admin manager to reload the webapplication by clicking on the Reload link. Why does this happen ? Is this

Tomcat refresh configuration

2003-07-21 Thread Mufaddal Khumri
hi, Is there a way to control the refreshing of html pages in tomcat ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat refresh configuration

2003-07-21 Thread Mufaddal Khumri
caching is also easy. Again - google is your friend. (cache jsp) -Tim Mufaddal Khumri wrote: hi, Is there a way to control the refreshing of html pages in tomcat ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Tomcat 4.1.24 causes refresh problem ... 4.1.18 does not.

2003-07-22 Thread Mufaddal Khumri
,no-cache); response.setHeader(Pragma, no-cache); response.setDateHeader(Expires, 1); % Mufaddal Khumri [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well i have the following in all my jsp pages. meta http-equiv=Cache-Control content=no-cache meta http-equiv=Pragma content=no-cache

Suggestions ?

2003-07-31 Thread Mufaddal Khumri
Hi, Am using tomcat 4.1.24. Have a XYZ.jsp with a form on it take data from the user. Once the user clicks submit the data is stored in the database and the data that the user entered is shown to him on ABC.jsp. The problem is that the user can enter anything in the text field and text

Re: Suggestions ?

2003-07-31 Thread Mufaddal Khumri
(); } -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:51 AM To: Tomcat Users List Subject: Suggestions ? Hi, Am using tomcat 4.1.24. Have a XYZ.jsp with a form on it take data from the user. Once the user clicks submit the data is stored

Suggestions ?

2003-08-01 Thread Mufaddal Khumri
(); } -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:51 AM To: Tomcat Users List Subject: Suggestions ? Hi, Am using tomcat 4.1.24. Have a XYZ.jsp with a form on it take data from the user. Once the user clicks submit the data is stored

can a taglib include a .jsp file ?

2003-08-14 Thread Mufaddal Khumri
Hi, I have a taglib that needs to include a .jsp file .. .how can i do so ? if i try doing a out.println( %@ include file=\ + mySomething.jsp + \ %) in my taglibrary called myTag it just spits out the exact same line in the output. The same happens when i use a out.println(jsp:include

Re: can a taglib include a .jsp file ?

2003-08-14 Thread Mufaddal Khumri
to your problem - Better define the code in mySomething.jsp as java function and call that function in include file as well custom tag, and use one at a time. Regards KP -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 1:45 AM To: Tomcat

Does anyone know the cause of this exception ?

2003-08-14 Thread Mufaddal Khumri
The root cause below told me that the Cataglog_jsp.java threw an error at Line 75. Line 75 in that file is: JspRuntimeLibrary.include(request, response, /include/header.jsp, out, true); The above code corresponds to the following line in Catalog.jsp: jsp:include page=/include/header.jsp

Re: can a taglib include a .jsp file ?

2003-08-15 Thread Mufaddal Khumri
thanks a zillion, that worked :) On Friday, August 15, 2003, at 09:17 AM, Bill Barker wrote: Assuming that your Tag extends TagSupport try: pageContext.include(mySomething.jsp); Mufaddal Khumri [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I know what the problem is and I know

A question regarding accessing parameters after the ? in a URL

2003-03-06 Thread Mufaddal Khumri
Hi, Sometimes when a user clicks on a link on one page it becomes necessary to send parameters to the next page lets say i have a href='MyFavourite.JSP'?id =2,path=/myproject/mydirectory/MyOtherJSP My Favourite JSP/a when i will click on the above link it will get transformed into :

Re: A question regarding accessing parameters after the ? in a URL

2003-03-06 Thread Mufaddal Khumri
When I do a getParameterNames() . i get the id back ... but not the path is my parameter seperator not correct ? i am using a , (comma) to seperate two parameters. On Thursday, March 6, 2003, at 04:55 PM, Mufaddal Khumri wrote: Hi, Sometimes when a user clicks on a link on one

Hi taglibs .. is this a tomcat or JSP problem or feature ?

2003-03-11 Thread Mufaddal Khumri
Hi, I have a custom tag. Inside the tag i am accessing a database and populating a vector. The contents of the vector are then rendered as HTML by using the tag on a JSP page. Problem is that when i add new data to the database and refresh the page being rendered. It does not show me the new

Usage of jsp:forward ...

2003-03-12 Thread Mufaddal Khumri
Hi, I have two jsp pages. : First.jsp Second.jsp In First.jsp i do: input type=hidden name=id value=%=u.getId()% jsp:forward page=Second.jsp/ In Second.jsp I need to access id : String sId = request.getParameter(id); When i do this ... i get sId = null. How do I pass this parameter from

Re: Why can't I use my CA-generated certificate for Tomcat SSL?

2003-03-13 Thread Mufaddal Khumri
Have you edited your server.xml ? !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0

Re: Why can't I use my CA-generated certificate for Tomcat SSL?

2003-03-13 Thread Mufaddal Khumri
The certificate that you generate ... is your certificate generation application associating the host name and the certificate ? Lets say the host tomcat is running on is my.webserver.com then is your certificate generating app associating this with the certificate its generating ?

Re: Why can't I use my CA-generated certificate for Tomcat SSL?

2003-03-13 Thread Mufaddal Khumri
this with the certificate its generating ? Thanks. On Friday, March 14, 2003, at 03:19 AM, Mark Liu wrote: Hello, thank you very much for your reply. I think server.xml is irrelevant to my problem, since I am able to run Tomcat SSL using the certificate that is generated by keytool. --- Mufaddal Khumri [EMAIL

Re: Do you run Tomcat with SSL?

2003-03-14 Thread Mufaddal Khumri
Is your certificate format generated by your little java program exactly like the keytool generated certificate ? Have you tested your certificates with other applications to see if you are producing them correctly ? thanks. On Friday, March 14, 2003, at 09:21 AM, Mark Liu wrote: I know you

Re: Do you run Tomcat with SSL?

2003-03-14 Thread Mufaddal Khumri
tomcat. Anywhere I can check the format of the keytool-generated certificate? --- Mufaddal Khumri [EMAIL PROTECTED] wrote: Is your certificate format generated by your little java program exactly like the keytool generated certificate ? Have you tested your certificates with other applications to see

Re: Do you run Tomcat with SSL?

2003-03-14 Thread Mufaddal Khumri
wrote: Well, I've never tried any other application. I only know that I can import it into the keystore, I can also import it into the browser (IE). --- Mufaddal Khumri [EMAIL PROTECTED] wrote: Do your certificates work with other applications in other scenarios ? On Saturday, March 15, 2003, at 12

Re: Do you run Tomcat with SSL?

2003-03-14 Thread Mufaddal Khumri
conjecture sound reasonable? Thank you for your continued education. Mark --- Mufaddal Khumri [EMAIL PROTECTED] wrote: I suggest that you try using your certificate with other applications for instance send yourself a digitally signed email using your certificate. If your certificate works

Re: Help: Anyone have experience with JNI and Servlets?

2003-03-16 Thread Mufaddal Khumri
What error or exception shows up ? Can you paste the logs from the log file ? Not knowing what exception shows up its difficult to understand what the problem might be. Thanks. At 06:30 PM 3/15/2003 -0800, you wrote: Hi All!e Not sure if this is valid for our topic but it does involve Tomcat

request parameter question ...

2003-03-26 Thread Mufaddal Khumri
Hi , In my servlet I have the following code: String str = request.getParameter(name); if(str.equals(xyz) == true) { str = ChangedName; request.setParameter(name, str); // - how do i do this ??? There is no method as request.setParameter() } try { String path =

Re: request parameter question ...

2003-03-26 Thread Mufaddal Khumri
is there for. you can also look at JSP forward, that allows you to set parameters, not sure how this translates to a servlet http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html filip -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 12:33

Re: request parameter question ...

2003-03-26 Thread Mufaddal Khumri
-Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 12:33 AM To: Tomcat List Subject: request parameter question ... Hi , In my servlet I have the following code: String str = request.getParameter(name); if(str.equals(xyz) == true) { str

Re: sendRedirect and page buffers

2003-05-30 Thread Mufaddal Khumri
What is at line 250 ... paste your code here helps in debugging issues like this. On Thursday, May 29, 2003, at 08:13 PM, chanan braunstein wrote: Hello, I have a page that uses a sendRedirect. There is a bunch of logic at the top of the page, but really nothing much is being sent

Class cast exception ...

2003-06-12 Thread Mufaddal Khumri
I get the following error in tomcat: java.lang.ClassCastException at org.apache.jsp.EditOffering_jsp._jspService(EditOffering_jsp.java:129) I looked at EditOffering_jsp.java and it has this at line 129: locationHelper = (com.wavesinmotion.cw.classes.jsphelpers.LocationHelper)

Class cast exception ...

2003-06-12 Thread Mufaddal Khumri
Made a typo in my previous email .. heres the corrected email: I get the following error in tomcat: java.lang.ClassCastException at org.apache.jsp.EditOffering_jsp._jspService(EditOffering_jsp.java:129) I looked at EditOffering_jsp.java and it has this at line 129: locationHelper =

Re: Class cast exception ...

2003-06-12 Thread Mufaddal Khumri
chance the class com.wavesinmotion.cw.classes.jsphelpers.LocationHelper resides in more than one place? or did you reload the context? Filip -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 3:17 AM To: Tomcat Users List Subject: Class cast

Re: Class cast exception ...

2003-06-12 Thread Mufaddal Khumri
-Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 3:31 AM To: Tomcat Users List Subject: Re: Class cast exception ... no ... its just in one place neither have i reloaded the context. Even if i did reload the context .. it should have found

Re: Class cast exception ...

2003-06-13 Thread Mufaddal Khumri
) On Friday, June 13, 2003, at 07:16 AM, Yoav Shapira wrote: Howdy, Print out the value of session.getAttribute(DBREADER) before you set it: that way you can see what its real runtime class is. It probably won't be that locationHelper class you're trying to cast into... Yoav Shapira --- Mufaddal

Simple question regarding Body Tags

2004-04-22 Thread Mufaddal Khumri
I am using Tomcat 4.1.29 I have a bodytag called Page In the constructor of this Tag I do this: HttpSession session = null; try { session = pageContext.getSession(); }

cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
I have got a ServletContextListener that does initialization and cleanup for my webapp. I was wondering if there was a way to invalidate all sessions to my webapp in this Listener ? If not, in what way can I invalidate all sessions when i start / reload my webapp ? Thanks

Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
and comments in server.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 2:31 AM To: Tomcat Users List Subject: cleaning up sessions ... I have got a ServletContextListener that does

Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
do i achieve this ? Thanks. On Wednesday, September 17, 2003, at 12:34 PM, Mufaddal Khumri wrote: When i specify saveOnRestart:false and reload or start my webapp, the users navigating the website now have an invalid session .. on top of all pages i do a checkAuthetication .. how do i check

Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
Exactly. I have a session attribute in my session that i set to true . and if that session attribute is not present or is false i redirect them to the authentication page. I did the following to my server.xml : Manager className=org.apache.catalina.session.PersistentManager

Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
sessions between restarts. To check your code works correctly, don't restart Tomcat... close your browser window and start a new instance of the browser (or let the session time out in a single browser). -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Wednesday

Trying another approach - HttpSessionListener Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
()); } } On Wednesday, September 17, 2003, at 02:08 PM, Mufaddal Khumri wrote: To test I did the following: 1. started tomcat. 2. started a browser, logged into MyApp and used it. 3. stopped tomcat and restarted tomcat . (kept the browser window open). 4. went back to my browser window and tried

Problems with HttpSessionListener ..

2003-09-18 Thread Mufaddal Khumri
Hi, I am trying to implement the HttpSessionListener (the same class implements ServletContextListener). The code for which is below. 1. I open a browser window , use MyWebApp after logging in it. 2. I open the tomcat manager and reload my MyWebApp. I go to the console at this point and see

Re: Problems with HttpSessionListener ..

2003-09-18 Thread Mufaddal Khumri
if sessions were persisted by the container prior to the contextDestroyed event? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 11:27 PM To: Tomcat Users List Subject: Problems

Re: Problems with HttpSessionListener ..

2003-09-18 Thread Mufaddal Khumri
, tomcat would detect an invalid session being used and invalidate the old session . How do I deal with this problem ? On Thursday, September 18, 2003, at 09:16 AM, Mufaddal Khumri wrote: No, it would not . But if i understand it right .. .the code below in server.xml should not persist any

Standard error pages ?

2003-09-29 Thread Mufaddal Khumri
Hi, I am using tomcat 4.1.18. I want to be able to redirect a user to a standard error page 500 when someone tries to access a .jsp in my webapp. Is there a standard mechanism to do this in tomcat or will i have to do:

Problem regarding a popup related to: org.apache.catalina.startup.Bootstrap

2003-09-30 Thread Mufaddal Khumri
Hello, I get a pop up icon for org.apache.catalina.startup.Bootstrap on my doc on MAC OS X when I click on the link in my web app which generates and sends a pdf file to the client browser. Once this popup is there the application works as expected, but if I quit this popup, tomcat shuts off

org.apache.catalina.startup.Bootstrap

2003-10-02 Thread Mufaddal Khumri
Hello, I get a pop up icon for org.apache.catalina.startup.Bootstrap on my doc on MAC OS X when I click on the link in my web app which generates and sends a pdf file to the client browser. Once this popup is there the application works as expected, but if I quit this popup, tomcat shuts off

pre compile and deploy - ?

2003-10-07 Thread Mufaddal Khumri
Hi, I have a web app and am running it under Tomcat 4.1.18. This might be a very common issue that I am facing. Basically the first time a .jsp page gets hit .. it gets compiled into a .class file. This happens for every .jsp file in the webapp. Is there a way that I can tell tomcat to

Re: pre compile and deploy - ?

2003-10-07 Thread Mufaddal Khumri
in web.xml) Filip - Original Message - From: Mufaddal Khumri [EMAIL PROTECTED] To: Tomcat List [EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 1:29 AM Subject: pre compile and deploy - ? Hi, I have a web app and am running it under Tomcat 4.1.18. This might be a very common issue that I

taglib - 2 Questions.

2003-10-09 Thread Mufaddal Khumri
Hi, Am running my webapp under tomcat 4.1.18. Everything was fine till yesterday (always is:)). I am facing this issue today. I wrote a new taglib for a jsp page called PotatoList.jsp. cw:nextPrevLink listSize='%= getTotalNumberOfPotatoes()%'

2 Questions ..

2003-10-10 Thread Mufaddal Khumri
Hi, Am running my webapp under tomcat 4.1.18. Everything was fine till yesterday. I am facing this issue today. I wrote a new taglib - nextPrevLink for a jsp page called PotatoList.jsp. cw:nextPrevLink listSize='%= getTotalNumberOfPotatoes()%'

Attribute attribute invalid according to the specified TLD ??

2003-10-10 Thread Mufaddal Khumri
Hi, Does anybody know why I would get the following exception: org.apache.jasper.JasperException: /MyJsp.jsp(103,2) Attribute pramValues invalid according to the specified TLD at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:94) at

Error ?

2003-10-13 Thread Mufaddal Khumri
Hi, I have noticed that when my jsp pages get compiled the first time i get the following error msgs: ParserUtils: warning org.xml.sax.SAXParseException: URI was not reported to parser for entity [document] ParserUtils: warning org.xml.sax.SAXParseException: No base URI; hope URI is absolute:

Re: Error ?

2003-10-13 Thread Mufaddal Khumri
Hi, Why would I get an error on this ? -No base URI; hope URI is absolute: http://java.sun.com/dtd/web-app_2_3.dtd ? On Monday, October 13, 2003, at 01:27 PM, Mufaddal Khumri wrote: Hi, I have noticed that when my jsp pages get compiled the first time i get the following error msgs

Re: Java/JSP/Servlet Programmer

2003-10-17 Thread Mufaddal Khumri
I feel that we have discussed this topic enough. Could you please take this OFF TOPIC elsewhere ? On Saturday, October 18, 2003, at 02:46 AM, Ruben Gamez wrote: Does anyone else think that what I'm asking for is so difficult? -Original Message- From: David Rees [mailto:[EMAIL

Problem receiving huge text in IE

2003-10-27 Thread Mufaddal Khumri
Hi, Am using Tomcat 4.1.18. I have this problem on IE on Windows and Mac. I am trying to get a huge amount of text from the database and want to stream it to the user/s browser. Netscape and Safari work fine and start displaying the text as soon as they start receiving it. IE waits for the

Re: HOW CAN I USE THREADS IN TOMCAT

2003-11-03 Thread Mufaddal Khumri
Hi, I have an instance of MyMailScheduler - mmsched in a ContextListener class for my webapp. mmsched spawns threads to do some work regarding sending emails. In my contextDestroy method I do : mmsched = null; I was under the impression that if tomcat was shutdown or the webapp was stopped my

Re: HOW CAN I USE THREADS IN TOMCAT

2003-11-03 Thread Mufaddal Khumri
Hi, The problem is that stop / suspend are deprecated. The destroy() method has yet not been implemented ? What does one do then? I have a solution - Keep a reference to the instances of the threads spawned in a hashtable. In contextDestroy make all these references null . Will this solution

Severe notification ...

2003-11-04 Thread Mufaddal Khumri
I have my webapp up and running and am stress testing it. After a while I get this: Nov 4, 2003 1:50:12 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads are busy, waiting. Please increase maxThreads or check the servlet status75 75 I have no idea why all threads would

Re: Severe notification ...

2003-11-04 Thread Mufaddal Khumri
time I will upgrade to 4.1.29 and see if that fixes the problem. If you do upgrade, please post your results to the list! Erik Mufaddal Khumri wrote: I have my webapp up and running and am stress testing it. After a while I get this: Nov 4, 2003 1:50:12 PM

Re: concurrent user threading problem

2003-11-13 Thread Mufaddal Khumri
Hi Tamsin: I might face the same problem like you did. I am just wondering if you are still trying to find a way to make your webapp run on the new hardware with hyperthreading turned on? If yes, what if the compiler used to compile your code wasnt optimised for a hyperthreaded environment ?

Tomcat 5 release date ?

2003-11-14 Thread Mufaddal Khumri
Hi, Is there a way to find the projected released date for Tomcat 5 ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

URL rewriting question ..

2003-11-18 Thread Mufaddal Khumri
In order to enable URL rewriting as opposed to storing cookies automatically we need to use the encodeURL(String url) or encodeRedirectURL(String url) method in the Servlets and/or JSPs. Is there a more easier way to do this as opposed to going thru the entire webapp and doing this for every

Re: URL rewriting question ..

2003-11-18 Thread Mufaddal Khumri
Wouldnt it be nice a feature like this that one can turn on or off globally in a container like tomcat ? The existing way to granularly do it should remain, but a global way to do it would be nice .. On Tuesday, November 18, 2003, at 09:13 AM, Christopher Schultz wrote: Mufaddal, Are there

including a .jsp from within a taglib.

2003-11-26 Thread Mufaddal Khumri
Hi, I have a one.jsp on which i am using a taglib called pf:mytag somepath='path'/ Inside the taghandler class i do the following: try { pageContext.include(path); }

Taglib problem with more information ...

2003-11-26 Thread Mufaddal Khumri
Hi, I have two taglibs. 1. myTag1 2. myTag2 Both taglibs essentially do the following: I have a one.jsp on which i am using a taglib called pf:mytag somepath='path'/ Inside the taghandler class i do the following: try {

Log4j question

2004-10-29 Thread Mufaddal Khumri
off it starts normally. Any ideas whats going on here? Mufaddal Khumri Software Developer Waves In Motion Phone: 602 956 7080 x 26 Email: [EMAIL PROTECTED]

Re: Log4j question

2004-10-29 Thread Mufaddal Khumri
Sorry, mistake on my part. The Log4j.properties is under /classes . Works fine now. On Oct 29, 2004, at 9:29 AM, Mufaddal Khumri wrote: Hi, I am new to Log4j and am trying to read the configuration settings from WEB-INF/classes/log4j.properties I am using Tomcat 5.0.27. I have been trying

Re: Log4j question

2004-10-29 Thread Mufaddal Khumri
AM, Shapira, Yoav wrote: Hi, Don't use getRealPath, it won't work when running from a packed WAR. Use Class#getResource(AsStream) or the equivalent methods in ServletContext. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent

Log4j with Tomcat webapp

2004-10-29 Thread Mufaddal Khumri
.file ? or something else? I do not get any exceptions in catalina.out. I am trying to understand if this problem is due to my configuration of Tomcat or the configuration of my logger? Mufaddal Khumri

webapp exceptions redirect them to webapps log

2004-10-29 Thread Mufaddal Khumri
Hi, I am using Tomcat 5.0.27. I am using a FileLogger as the appender (log4j) to write my logs to under WEB-INF/log. How do I configure tomcat to send output resulting from exceptions in my webapp to this log file? Do I have to configure server.xml to do so? Mufaddal Khumri

  1   2   >