[OT] Poolman problem
it seems like there's a bunch of people in here using poolman therefore this mail I oaccasionally get this exception when running my system: NullPointerException at java.util.Hashtable.containsKey(Hashtable.java:299) at com.codestudio.util.JDBCPool.returnPooledStatement(Unknown Source) at com.codestudio.sql.PoolManPreparedStatement.close(Unknown Source) at com.codestudio.util.JDBCPool.closeStatement(Unknown Source) at com.codestudio.sql.PoolManConnection.clean(Unknown Source) at com.codestudio.util.JDBCPool.returnConnection(Unknown Source) at com.codestudio.util.JDBCPool.connectionClosed(Unknown Source) at com.codestudio.sql.PoolManConnection.sendCloseEvent(Unknown Source) at com.codestudio.sql.PoolManConnectionHandle.close(Unknown Source) at com.jbpb.blue.web.ValtechAction.closeConnection(ValtechAction.java:41 Its not fatal (the system continues running) but very unsettling... any suggestions?? thanks in advance mikkel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SV: Using Struts with a Database hangs?
could be a bug in your jdbc driver??? try using another connection pool...poolman www.codestudio.com is easy to set up and use...see if you get the same errors using that... Mikkel -Oprindelig meddelelse- Fra: Sam Cheung [mailto:[EMAIL PROTECTED]] Sendt: 14. februar 2002 05:19 Til: [EMAIL PROTECTED] Emne: Using Struts with a Database hangs? Hi, I am using Struts 1.0 with Pointbase Database in Tomcat4.0.2. When I comment out the datasource in my struts-config.xml, I am able to start TomCat. When I add the following lines back in my struts-config.xml, Tomcat hangs during initialization (i.e. I can never see the line Starting service Tomcat-apache\nApache Tomcat/4.0.2, the last line I can see is Pop org.apache.struts.action.ActionMapping) data-sources data-source autoCommit=true description=Oracle datasource driverClass=com.pointbase.jdbc.jdbcUniversalDriver maxCount=4 minCount=2 password=PUBLIC url=jdbc:pointbase://localhost/sonic user=PUBLIC / /data-sources I have tried the above parameters with the Pointbase client, it can connect to the Pointbase database server. I am sure Tomcat can find my JDBC driver class. Otherwise, I would get a ClassNotFound Exception in my TomCat window. And when I kill the TomCat console (the DOS window), I see the following exception in my Pointbase server window. So I think Tomcat able to make the connection with Pointbase server, but it gets hangs. java.net.SocketException: Connection reset by peer: JVM_recv in socket input str eam read at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:116) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read(BufferedInputStream.java:201) at java.io.FilterInputStream.read(FilterInputStream.java:66) at com.pointbase.net.netAuditInputStream.read(Unknown Source) at com.pointbase.crypto.cryptoEncryptedInputStream.read(Unknown Source) at com.pointbase.crypto.cryptoEncryptedInputStream.init(Unknown Source) at com.pointbase.crypto.cryptoEncryptedInputStream.read(Unknown Source) at java.io.DataInputStream.readInt(DataInputStream.java:392) at com.pointbase.net.netConnectionHandler.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) Thanks for your help. Sam __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SV: [OT] Poolman problem
i know... i send them a mail yesterday...no response yet... just wanted to check as it seems there's alot of guys using poolman on the list... Mikkel -Oprindelig meddelelse- Fra: Ted Husted [mailto:[EMAIL PROTECTED]] Sendt: 14. februar 2002 10:13 Til: Struts Users Mailing List Emne: Re: [OT] Poolman problem You probably should bring this up to the Poolman team. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Mikkel Bruun wrote: it seems like there's a bunch of people in here using poolman therefore this mail I oaccasionally get this exception when running my system: NullPointerException at java.util.Hashtable.containsKey(Hashtable.java:299) at com.codestudio.util.JDBCPool.returnPooledStatement(Unknown Source) at com.codestudio.sql.PoolManPreparedStatement.close(Unknown Source) at com.codestudio.util.JDBCPool.closeStatement(Unknown Source) at com.codestudio.sql.PoolManConnection.clean(Unknown Source) at com.codestudio.util.JDBCPool.returnConnection(Unknown Source) at com.codestudio.util.JDBCPool.connectionClosed(Unknown Source) at com.codestudio.sql.PoolManConnection.sendCloseEvent(Unknown Source) at com.codestudio.sql.PoolManConnectionHandle.close(Unknown Source) at com.jbpb.blue.web.ValtechAction.closeConnection(ValtechAction.java:41 Its not fatal (the system continues running) but very unsettling... any suggestions?? thanks in advance mikkel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Poolman problem
Allright, thank you... do you know where i can get a more stable build then??? Mikkel -Original Message- From: Mark Woon To: Struts Users Mailing List Sent: 14-02-2002 22:26 Subject: Re: [OT] Poolman problem Ted Husted wrote: You probably should bring this up to the Poolman team. Alas, the PoolMan team (one guy) is no longer working on PoolMan. As to the problem: you probably have to turn off poolPreparedStatements. You should probably use nativeResultstrue/nativeResults as well. You're using 2.1b1, which is definitely a beta1, and buggy. -Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SV: Expert Advice required: Need examples of using Struts WITHOUT cus tom tags. !!URGENT!!
as I seem to be the expert of iplanet 4.1 in this forum i'll give you my advice...(why would anyone use this crappy server) Im currently running struts WITHOUT taglibs on iplanet 4.1 I posted a HOWTO in this forum a week ago As they say Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ It is possible to use taglibs, ive have done it myself, but unfortunately I misplaced my notes and i dont really have any incentive to walk that path again... pls contact me at mikkel at helenius dot org if you have any questions... Mikkel -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sendt: 13. februar 2002 15:59 Til: [EMAIL PROTECTED] Emne: Expert Advice required: Need examples of using Struts WITHOUT cus tom tags. !!URGENT!! Hi, I need to deploy Struts on iPlanet 4.1 which if fussy with Custom Tags. I need some good examples whereby I can understand the use of Action Servlet/Action Mapping file and basic features of struts WITHOUT custom tags. My findings on Custom Tags on iPlanet 4.1 are: 1 tld file MUST be jared. 2 name of the tag library descriptor should be taglib.tld 3 it MUST be within META-INF folder. iPlanet 4.1 is something my client wants and I cant change that. But I want to use Struts with iPlanet. Please help! its real Urgent. Thanks in advance, Jayanta. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Poolman and charset
I have been using the struts connection pool for some time but have decided to switch to poolman My original connection pool conf looked like this data-source key=db set-property property=autoCommit value=false/ set-property property=description value=Some db/ set-property property=driverClass value=com.inet.tds.TdsDriver/ set-property property=maxCount value=30/ set-property property=minCount value=1/ set-property property=password value=/ set-property property=url value=jdbc:inetdae7:10.30.0.199:1433?database=mydb/ set-property property=user value=xxx/ set-property property=password value=xxx/ set-property property=charset value=Cp850/ set-property property=loginTimeout value=5/ /data-source As you can see I have a charset=cp850, which is a must as I am connecting to a legacy MS SQL database... So the question is, how do I set this parameter in the poolman.xml file??? I have tried adding it to the url urljdbc:inetdae7:10.30.0.199:1433?database=mydbcharset=Cp850/url which makes poolman throw up... any suggestions??? thanks Mikkel Bruun -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: urgent!!!! HELP!!!! I have application to go... Dynamic Property.
nice point... And, the original posters problem may be urgent...but that doesnt mean that every reader will throw aside whatever stuff they are doing just to help a gu solve his URGENT problem...the effect is usually the contrary... In Software Development you usually dont have URGENT problems, just bad planning... I'll crawl back to my cave now, thank you very much Mikkel -Original Message- From: Patrick Refondini To: Struts Users Mailing List Sent: 07-02-2002 10:21 Subject: Re: urgent HELP I have application to go... Dynamic Property. I am new to using mailing lists but I guess you'll find a reason for the silence following your question by having a look at : http://www.tuxedo.org/~esr/faqs/smart-questions.html Hereafter a short part of it : (...) Use meaningful, specific subject headers On mailing lists or newsgroups, the subject header is your golden opportunity to attract qualified experts' attention in around 50 characters or fewer. Don't waste it on babble like Please help me (let alone PLEASE HELP ME; messages with subjects like that get discarded by reflex). Don't try to impress us with the depth of your anguish; use the space for a super-concise problem description instead. (...) I hope it can help, Regards Patrick Arik Levin ( Tikal ) wrote: Hello out there... I asked this question yesterday, but with no luck. No a single comment. can anybody help me with this HELP @#@#@#@# Hi everybody. I'm new at struts, but I have tried it and It's just what our company wants to our project, and hey... you did a great job. BUT, I have to use some dynamic property because a lot of forms at our app. is dynamic. Thus, I have found at the mailing list a DynamicProperty zip file so... I have compiled it to the struts jar and did the example but I have this small problem. At this section: jsp:useBean id=mainForm type=xtest.actions.DynPropForm scope=session/ html:form action=/xtest/jsp/inputDetails.do method=get % for (java.util.Iterator iter = mainForm.allDynamicPropertyNames().iterator(); iter.hasNext(); ) { String propName = (String)iter.next(); % %=propName%: html:text property=%=propName%/br % } % I get an Exception: blab la Could instantiate bean 'mainForm', neither 'class' nor 'beanName' were specified bla.. bla.. So as I see it, the bean thru struts is not in session scope, so I don't have this bean so I'm ...beeep! If someone out there can help me with this issue , it would be great, but if not I think I'll have to write something else and I don't want that !!! By the way, is there any chance to know when is the next release ??? thanx bye Arik. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Software Requirements Specification document templates
Sounds like they are refereing the Rational Unified Process document... I dont thkn there's any official RUP templates thats freely available... if you really need an official template go get the RUP Tool...it contains both word and html templates for SRS... i would make up my own though or use Ted's..its seems pretty complete... Mikkel -Original Message- From: MARK NICHOLS To: [EMAIL PROTECTED] Sent: 06-02-2002 14:48 Subject: Software Requirements Specification document templates All - I am working in a new initiative for my client to develop an enterprise web application using Struts. As this project is piloting new (to the client) technologies they want a complete SRS document as an example for future development projects. Does anyone have or know about a freely available set of document templates that would be useful for documenting the various artifacts that are designed, created and maintained in a Struts applications? I would prefer Word format, but I'll take anything I can get. =) Thanks, /\/\ark _ /\/\ark /\/ichols Ooo. They've got the Internet on computers now. - Homer Simpson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Java Trivia
Ehh... primitives vs ojbects??? by value or by ref... whats the point?? -Original Message- From: Galbreath, Mark To: Struts (E-mail); J2ee (E-mail) Sent: 01-02-2002 14:40 Subject: Java Trivia What's the difference between int i = 3; someMethod( i); and Point p = new Point( 3, 3); someOtherMethod( p); ? Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SV: Hi
do not open it... www.news.com -Oprindelig meddelelse- Fra: Tom Lister [mailto:[EMAIL PROTECTED]] Sendt: 5. december 2001 10:32 Til: 'Struts-User ' Emne: RE: Hi Has anyone opened this or virus checked it. -Original Message- From: Scott Fitzgerald To: Struts-User Sent: 04/12/01 19:13 Subject: Hi How are you ? When I saw this screen saver, I immediately thought about you I am in a harry, I promise you will love it! gone.scr ATT04885.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Parameterizing Datasource URL
Well...you have to specify it somewhere...the struts-config.xml seems like a nice place... or if your are using a deployment tool (ant??) you could make it do keyword subsitition on deployment... specifying data in a configuration file isnt hardcoding...its specification... Mikkel -Original Message- From: Stephen Turner To: [EMAIL PROTECTED] Sent: 28-11-2001 20:44 Subject: Parameterizing Datasource URL This may turn out to be an XML question rather than a struts question, but here goes... I have a data source defined in struts-config.xml, including database URL. This has worked fine so far on my development machine, but now I want to deploy my application to a different (production) server with a different database URL. I'd like to use the same struts-config.xml file on each machine, so I don't want to hard-code the URL. So is there any way I can parameterize the database URL, so that it's not hard-coded in the config file? Thanks for any ideas. Steve Turner -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HOW TO: set up a pager with struts
please... dont put HOW-TO in the subject of a question... Mikkel -Original Message- From: Oleg V Alexeev To: Struts Users Mailing List; [EMAIL PROTECTED] Sent: 14-11-2001 11:22 Subject: Re: HOW TO: set up a pager with struts Hello storck, I can suggest you my way. On base of query parameters, offset and page length values generate container or array of objects from database and store total value of records. Container or array you can display with iterate tag. For purposes of page links generation I can suggest bean and tag for you - I can send it for you. Wednesday, November 14, 2001, 1:09:06 PM, you wrote: s Hi, s I am developing a webapp with struts and EJB's. In some cases I only have to s display a list of Items. The problem is, that I cant show the whole list ... s sure to big ... s For retrieving the list I will either use the Fast-Lane Reader Pattern and s the Page-by-Page Iterator Pattern. In the Pet Store Demo they s implemented the Page-by-Page Iterator as a applicationspecific Tag, but I s think it should also be possible to implement it with struts (I am right). s Now I NEED your HELP. How must I set it up correct? s Any suggestions and comments are welcome !!! s -- s To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] s For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Olegmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Need some suggestion
I would go for jndi lookup to poolman... the struts datasource is a little to close to the presentation layer for me ;-) Mikkel -Original Message- From: Antony To: [EMAIL PROTECTED] Sent: 18-10-2001 09:40 Subject: Need some suggestion Hello: I`d like any suggestion in applying DataSource strategy. Do you guys use struts` built-in database connection pool, or rely on calling JNDI resource definition?Or any other methods? Any suggestion/Discussion are welcome. Regards, Antony Chien
SV: Struts Reference Site
http://husted.com/struts/resources.htm#sites plus a few more ;-) :: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73 Valtech A/S Kanonbaadsvej 10 DK-1437 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20 -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sendt: 18 October 2001 10:18 Til: [EMAIL PROTECTED] Emne: Re: Struts Reference Site Am looking for a commercial site that uses struts I need to demonstrate that they are used in the real world Best Regards Alan
RE: suggestions on tracking user activity
You should probably look into the new servlet filters (spec2.3)..been toying with them for a months... using a filter should easily solve your problem... mikkel -Original Message- From: Bill G To: [EMAIL PROTECTED] Sent: 18-10-2001 21:01 Subject: suggestions on tracking user activity Hi, Given that each user in the application has a unique ID and each link, button, etc. on every page also has a uniques ID, what would be a good way to track all user activity with MANY simultaneous users in a Struts/EJB environment ? Bill G...
SV: Struts installation on iPlanet 4.1 SP7
spend almost a week trying to run struts on ip 4.1... We are now able to use the servlet and util classes, but cant use the taglibs... :: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73 Valtech A/S Kanonbaadsvej 10 DK-1437 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20 -Oprindelig meddelelse- Fra: Bacco, F. ing. DTO/SLOD/SSI/RSD [mailto:[EMAIL PROTECTED]] Sendt: 24 September 2001 09:42 Til: '[EMAIL PROTECTED]' Emne: RE: Struts installation on iPlanet 4.1 SP7 We also had a lot of problems, so we decided to use iPlanet 6.0 (sp1) and now, after days of frustration with iPlanet 4.1, it works excellent. So.. my advise, dont use iPlanet 4.1. Good luck Frank -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Verzonden: maandag 24 september 2001 1:31 Aan: [EMAIL PROTECTED] Onderwerp: Struts installation on iPlanet 4.1 SP7 Is there anyone out there who has sucessfully installed struts on iPlanet 4.1 ? Please help me Thanks John
Including Actions via jsp:include
hi Guys, I bet this has come up before... I need to include the output of an action in a jsp, using the jsp:include tag lie this: jsp:include page=/myAction.do flush=true jsp:param name=USERID value=CARLOSUS / /jsp:include but I get an illegalstate exception, as the ActionServlet forwards instead of includes... is there anyway to do this??? thanks :: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73 Valtech A/S Kanonbaadsvej 10 DK-1437 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20 -Oprindelig meddelelse- Fra: Debasish Ghosh [mailto:[EMAIL PROTECTED]] Sendt: 03 September 2001 11:35 Til: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Emne: Re: Dynamic Forwarding ... Thanks, Ted, for the reply. Actually, I am not forwarding from Action to Action. The mapping of the forward dummy resolves to a JSP named dummy.jsp and not an action (*.do). From an action, on submit, I would like to tansfer control to a JSP to accept more inputs. Along with this control transfer, I would like to pass a parameter to indicate some logic. I finally did this using a request.getParameter( formName ) in the JSP as a scriplet, and declaring a hidden property in the JSP : html:hidden property=formName value=%= formName % / Now I can access this property from the action class of the form dummyForm. Please suggest, if there is a better method of doing this (without the scriplet). Regarding the link that u have mentioned, I had already gone thru it. I do not understand one point. If I have a form formA, having a property formName, then when I forward to another form, formB, how will the property be retained as part of formB ? Regards. - Debasish --- Ted Husted [EMAIL PROTECTED] wrote: What's in the JSP wouldn't matter, since you are going from one Action to another. If formName is a property in the ActionForm, then it shuld be populated. I would try using request.getParameter(formName) and see if that's null too. I'd also try hardcoding the value for action to be sure that is not null. If you haven't already, see also http://www.mail-archive.com/struts-user@jakarta.apache.org/msg 14280.html Debasish Ghosh wrote: Hi All - I have trying to implement dynamic forwarding in my application. In the Action class where I am preparing the forward URL, I am doing the following : ActionForward fwd = mapping.findForward(dummy); StringBuffer path = new StringBuffer( fwd.getPath() ); path.append( ?formName= ).append( action ); return new ActionForward( path.toString(), fwd.getRedirect() ); With this, I am getting the correct parameter to ActionForward, and the control is also forwarded to the appropriate JSP. But I am not able to access the passed-in parameter. I have a property named formName in the called form. But from the action of the called form, when I access the property getFormName(), I get NULL. In order to achieve this, do I have to declare anything in the JSP ? Please help !! Regards. - Debasish __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com
SV: Including Actions via jsp:include
whoa! thanks alot... does this hack work on all servers??? I have just tested it on tomcat 3.2, will try on Iplanet later... :: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73 Valtech A/S Kanonbaadsvej 10 DK-1437 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20 -Oprindelig meddelelse- Fra: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sendt: 03 September 2001 11:50 Til: [EMAIL PROTECTED] Emne: Re: Including Actions via jsp:include hi Guys, I bet this has come up before... I need to include the output of an action in a jsp, using the jsp:include tag lie this: jsp:include page=/myAction.do flush=true jsp:param name=USERID value=CARLOSUS / /jsp:include but I get an illegalstate exception, as the ActionServlet forwards instead of includes... is there anyway to do this??? thanks I've found one workaround which can help in some situations: make the Action.perform return null. include the view (JSP) then. So it could look like this: jsp:include page=/myAction.do flush=true jsp:param name=USERID value=CARLOSUS / /jsp:include jsp:include page=/myAction.jsp flush=true / But it is ugly indeed. -- gR
SV: problem in showing PDF, Doc, xls etc
Title: SV: Including Actions via jsp:include you have to use a servlet for this...print to the servletOutPutStream Jsp's cant display binary files :: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73 Valtech A/S Kanonbaadsvej 10 DK-1437 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20 -Oprindelig meddelelse-Fra: Anwar Sadat [mailto:[EMAIL PROTECTED]]Sendt: 03 September 2001 12:28Til: '[EMAIL PROTECTED]'Emne: problem in showing PDF, Doc, xls etc Hi, I have one jsp which shows some links.. This link contains the filename (HTML file). If i click on this link, i will execute one more jsp. This jsp has some methods which will get the file and show the content. This works fine if i have only html files to be shown.. If i have other document types (like pdf, doc, xls etc), how can i show these things on the browser thro my second JSP Thanx in Advance Regards Anwar
SV: How to catch the Session Time Out event ??
there's no way to do this... what you can do is to redirect the user as a reaction to one of his actions, pressing a link, submitting a form... you just cant make his browser do stuff... :: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73 Valtech A/S Kanonbaadsvej 10 DK-1437 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20 -Oprindelig meddelelse- Fra: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] Sendt: 29 August 2001 14:37 Til: [EMAIL PROTECTED] Emne: Re: How to catch the Session Time Out event ?? I have an idea. Run a thread which continously checks currentTime - session.getLastAccessedTime(). If that is greatetr than 15 minutes this thread forwards to the index page. From: Xavier Brunel [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts-User [EMAIL PROTECTED] Subject: How to catch the Session Time Out event ?? Date: Wed, 29 Aug 2001 14:29:23 +0200 Hi all, I am using Struts for an Intranet application (Linux,Sybase,Java) and it is working very well. The last thing I would like to do is forwarding automatically the current client to the welcome page when his session is timeout, through a call to a particular ActionForward of struts-config.xml I built a JSP page (index.jsp) who calls the correct forward : %@ page language=java % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % logic:forward name=welcome/ I have the correct struts-config.xml structure (when i call the jsp directly i actually go to the welcome page who is a template). - global-forwards forward name=welcome path=/jsp/t-welcome.jsp/ /global-forwards - But I have one last problem : I would like to know how to catch the session time out event, in order to call the index.jsp page. As anybody an idea about this ??? Xavier _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
OT: MS SQL JDBC Drivers?
Hi Guys, A little of topic, but anyways... On a current project we will be running an webapp on Solaris, using Iplanet... Our application needs to connect to a MS Sql 7.0 running on a win 2k server... can you recommend any jdbc drivers??? thanks a lot... :: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73 Valtech A/S Kanonbaadsvej 10 DK-1437 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20
SV: Installation on Netscape 4.1
I spend a couple of days last week trying to do the same... never got it working I was close at some point though... had the taglibs running OR the servlet (gave me xml validation errors thoguh)...couldnt have both at the same time ;-) please tell if you get it running...im on a prject that has to run on 4.1, and so far i have had to dismiss struts on this one... Mikkel -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sendt: 16 July 2001 17:53 Til: [EMAIL PROTECTED] Emne: Installation on Netscape 4.1 Hello everyone and thank you in advance for reading and replying to my question. I am trying to install Struts to work with iPlanet 4.1. It does not support web application archives WAR. Does anyone have this installation process documented or knows how to do it and could document it? I would appreciate any help. Thank you, Dmitri Furman
TEST Message WAS: re: quick question : form
he could at least had written it in the subject... ;-) -Oprindelig meddelelse-Fra: Jeff Trent [mailto:[EMAIL PROTECTED]]Sendt: 16 July 2001 20:51Til: [EMAIL PROTECTED]Emne: Re: quick question : form Test message ... please ignore. - Original Message - From: Jeff Trent To: [EMAIL PROTECTED] Sent: Monday, July 16, 2001 2:46 PM Subject: Re: quick question : form This is a test message, please ignore. - Original Message - From: Rama KrishnA To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Monday, July 16, 2001 2:34 PM Subject: Re: quicK question : form Thanks much Melissa. But, i want to know why it does like this, when i call the reset manually. rama. - Original Message - From: MelissA Rabin To: [EMAIL PROTECTED] Sent: Monday, July 16, 2001 11:19 AM Subject: RE: quicK question : form Hi Rama. One quick dirty way to solve your problem isto add "success" as a string to the request object in the perform method of your action class, and add a "forward-name="success" path=/originalJsp" line in your struts-config file(which will return you to the page you posted the initial request). Add some jsp code to check if the request attribute is null, which it will be when you first load the page.After the request is posted and your action class adds the string to the request (if all goes well), it should finish up by returning you to your original jsp where you will now see your "success" status message (e.g. %= request.getAttribute("status")% I hope this helps Melissa Web Engineer -Original Message-From: Rama KrishnA [mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 2:07 PMTo: [EMAIL PROTECTED]Subject: quick questioN : form hi all, i have a form and when i submit it i perform some action and i forward it to the same form, but with a message "success". now - i want to reset all the fields (set to default value) - the url after submission is still xxx.yy?action="save", where as i want the action to be"create" i tried calling reset method before forwarding, it clears all the fields but doesn't show message "success" and the url is still ?action="save" can anyone help me?? thanks, rama.
SV: just d/l installed ANT'S need some guidance!!
please post the exception so we can look into it... Mikkel -Oprindelig meddelelse- Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]] Sendt: 11 July 2001 14:43 Til: [EMAIL PROTECTED] Emne: Re: just d/l installed ANT'S need some guidance!! Hi, tried that and just ant from the ms-dos command line and got Exception in Thread - I assume that i have a classpath issue regarding multithreading . Any Suggestions Cheers Chuck suhas wrote: Part 1.1Type: Plain Text (text/plain) Encoding: quoted-printable -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
SV: How to reload struts-config?
i believe there's some default admin actions in the struts-config.xml, including the one your are looking for... try doing http://whatever/admin/reload.do Mikkel -Oprindelig meddelelse- Fra: Tillmann Schulz [mailto:[EMAIL PROTECTED]] Sendt: 11 July 2001 15:17 Til: [EMAIL PROTECTED] Emne: How to reload struts-config? Hi there, I am looking for a solution to reload struts config values from ApplicationResources.properties and struts-config.xml without shuting down the webserver. Is there a way to do this while the web application is running? I would like to have a JSP-Page with a button Reload Struts on it ;.) Thank you in advance, Tillmann --- Tillmann Schulz __ Fast alle Fluege koennen Ihnen egal sein. Einer nicht: Ihrer! Flug.de hat ihn: http://flug.de/sb/?PP=0-5-100-105-6
SV: SV: Ant build tools - Need address to get grips with.
sure ;-) http://jakarta.apache.org/ant -Oprindelig meddelelse- Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]] Sendt: 10 July 2001 12:03 Til: [EMAIL PROTECTED] Emne: Re: SV: Ant build tools - Need address to get grips with. Pls could you post this ant website address or link. Cheers chuck. Mikkel Bruun wrote: Part 1.1Type: Plain Text (text/plain) Encoding: quoted-printable -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
Still struggling with my Iplanet 4.1
Hi guys, there hasnt been much response to my Iplanet mails, but here goes another one... I have finallt succeded in deploying the taglibs, getting IWS to recoqnize the strust.dtd and the action servlet is ALMOST running However i get a SaxException when it tries to parse the config.xml from the example application Any suggestions??? -- org.xml.sax.SAXParseException: Attribute "forward" is not declared for element "action". at com.sun.xml.parser.Parser.error(Parser.java:2795) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1357) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:77) at org.apache.struts.digester.Digester.parse(Digester.java:725) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1302) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:219) at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:377) at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149) at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:461)Parse Error at line 127 column -1: Attribute value for "type" is #REQUIRED.org.xml.sax.SAXParseException: Attribute value for "type" is #REQUIRED. at com.sun.xml.parser.Parser.error(Parser.java:2795) at com.sun.xml.parser.Parser.defaultAttributes(Parser.java:1470) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1388) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:77) at org.apache.struts.digester.Digester.parse(Digester.java:725) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1302) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:219) at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:377) at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149) at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:461)
SV: Still struggling with my Iplanet 4.1
thanks for your input... Im currently loading all the dtd's frm localhost... I havent checked whetether or not IWS comes with an xml parser, but currently i have added jaxp.jar and parser.jar from the tomcat installation to my classpath... i thought that i had the taglibs running, but it seems like ive stumbled upon another problem... I get the following exception: - org.apache.jasper.JasperException: Unable to open taglibrary /jbpb/taglibs/html- tags.jar : com.sun.xml.tree.TextNode reading the docs for iplanet the exception should arise when a .tld doesnt contain a dco type tag...however, my tld already does that! Here a snippet from the tag tld ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN http://localhost:81/jbpb/dtds/web-jsptaglib_1_1.dtd; taglib the url is browsable Heres a snippet of the .jsp Im trying to run --- %@page language=java % %@ taglib uri=/jbpb/taglibs/html-tags.jar prefix=html % html:base/ still here! -- the taglib uri, is a *real* url as jbpb is actually a link to /home/users/jbpb/webroot - Mikkel -Oprindelig meddelelse- Fra: Hellmann, Martin (Paragon IT) [mailto:[EMAIL PROTECTED]] Sendt: 09 July 2001 12:27 Til: '[EMAIL PROTECTED]' Emne: RE: Still struggling with my Iplanet 4.1 Although I am quite new to struts, I'd like to participate in this IPlanet discussion because we are probably going to deploy our app to the same AS. But actially we haven't tested anything yet under that environment, so all comments are warmly welcome. Concerning your xml problems: To my experience xml parsing problems arise usually for 2 reasons: - You're working behind a firewall and the parser isn't able to load the DTD via internet, deleting the doctype -DTD definition of your xml-file or changing it to a local path often solves this prob. - Or, it could be as well that IPlanet comes with its own xml jars. If so, you have to ensure that strut's conform xalan.jar, xerces.jar in version 1.2 are found in the application servers classpath before any other xml parsers. Best regards Martin -Original Message- From: Mikkel Bruun [mailto:[EMAIL PROTECTED]] Sent: Montag, 9. Juli 2001 09:13 To: '[EMAIL PROTECTED]' Subject: Still struggling with my Iplanet 4.1 Hi guys, there hasnt been much response to my Iplanet mails, but here goes another one... I have finallt succeded in deploying the taglibs, getting IWS to recoqnize the strust.dtd and the action servlet is ALMOST running However i get a SaxException when it tries to parse the config.xml from the example application Any suggestions??? -- org.xml.sax.SAXParseException: Attribute forward is not declared for element action. at com.sun.xml.parser.Parser.error(Parser.java:2795) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1357) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:77) at org.apache.struts.digester.Digester.parse(Digester.java:725) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1302) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:219) at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:3 77) at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java :149) at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav a:461) Parse Error at line 127 column -1: Attribute value for type is #REQUIRED. org.xml.sax.SAXParseException: Attribute value for type is #REQUIRED. at com.sun.xml.parser.Parser.error(Parser.java:2795) at com.sun.xml.parser.Parser.defaultAttributes(Parser.java:1470) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1388) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:77
Iplanet 4.1...almost there, but cant find struts-config.xml
hi guys! I know some of you have already solved this so please help!! im trying to get struts running on iplanet 4.1 (solaris sparc) using some of the extra information giving on the insallation docs at jakarta.apache.org... When i try to load the Action Servlet i get the following: javax.servlet.UnavailableException: Missing configuration resource for path /WEB-INF/struts-config.xml I have a link in $SERVERROOT/docs called jbpb that points to users/jbpb/webroot in the /users/jbpb directory i have the following: classes \struts.jar WEB-INF\struts-config.xml \org.example app webroot \taglibs .jsp files I have registered the servlet in the servlet.properties file like this: --- servlet.action.classpath=/users/jbpb/classes/struts.jar servlet.action.code=org.apache.struts.action.ActionServlet servlet.action.initArgs=application=org.apache.struts.webapp.example.Applica tionResources, config=/users/jbpb/classes/WEB-INF/struts-config.xml, debug=2, detail=2, validate=true servlets.startup=action --- And the struts-config.xml IS in that directory... thanks in advance! Mikkel
What are the chances of getting struts up and running on Iplanet WebServer 4.1???
Subject says it all... been reading the additional installtion instructions for 4.2, and it seems quite easy...but what about 4.1 thanks! Mikkel Bruun [EMAIL PROTECTED] Valtech Kanonbaadsvej 10 DK-1433 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20 Direct + 45 32 88 22 73
SV: OFFTOPIC: Solaris and Tomcat problems!
I have the tools.jar in my classpath, and it correctly shows this when i startup tomcat... but the problem still remains... during startup it guesses my JAVA_HOME and TOMCAT_HOME and it comes up with the right paths... Im really stuck here... any suggestions would be welcome!!! Mikkel -Oprindelig meddelelse- Fra: Dan Connelly [mailto:[EMAIL PROTECTED]] Sendt: 02 July 2001 16:39 Til: [EMAIL PROTECTED] Emne: Re: OFFTOPIC: Solaris and Tomcat problems! There is no compiler class (jar) distributed with Tomcat, out of the box. Apparently there are none in open source. Apache will only distribute open source. Of course, Sun (and others) distribute tools.jar (or equiv) gratis. Modify your startup.sh (or is it setenv.sh ??) to include the tools.jar on the Tomcat classpath. Then all is well. - Original Message - From: Mikkel Bruun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 3:09 PM Subject: OFFTOPIC: Solaris and Tomcat problems! This has nothing to do with struts, but I know this list has a couple of guru's and demigods lurking... I have just installed solaris 8 on an intel machine. I installed tomcat 3.2.2 and it runs the servlets examples without any problems...BUT There seems to be a problem running the jsp files... Whenever i request a jsp file it just freezes, and i get no respond... Looking into the matter I saw that the jsp was succesfully compiled to a .java file...BUT The jsp compiler seems to be endlessly looping in the translation, because it keeps writing the same line over and over again (until im out of disk space)... I looked into the tomcat mailling archives and saw that somebod had experienced this problem before, but I wasnt able to find a solution... Any suggestions thanks in advance... Mikkel
SV: SV: OFFTOPIC: Solaris and Tomcat problems!
its a completely fresh install of both solaris and tomcat... the jdk is 1.2.2 the servlets examples work, but the jsp examples runs in an infinite loop during the translation (the last line is added repeatedly)... I'll try the tomcat lists... thanks Mikkel -Oprindelig meddelelse- Fra: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sendt: 03 July 2001 09:24 Til: [EMAIL PROTECTED] Emne: Re: SV: OFFTOPIC: Solaris and Tomcat problems! Hi, The tomcat list is very friendly (o: but for now... do the log files say anything useful? is this a fresh install of tomcat? do the examples work? which jdk are you using? I have no idea about any solaris related issues, but if you're getting problems like this I'd be inclined to do a fresh install of tomcat, and see if that works, then dump your config and webapps over the fresh one. hope this helps cheers dim On Tue, 3 Jul 2001 16:58, you wrote: I have the tools.jar in my classpath, and it correctly shows this when i startup tomcat... but the problem still remains... during startup it guesses my JAVA_HOME and TOMCAT_HOME and it comes up with the right paths... Im really stuck here... any suggestions would be welcome!!! Mikkel -Oprindelig meddelelse- Fra: Dan Connelly [mailto:[EMAIL PROTECTED]] Sendt: 02 July 2001 16:39 Til: [EMAIL PROTECTED] Emne: Re: OFFTOPIC: Solaris and Tomcat problems! There is no compiler class (jar) distributed with Tomcat, out of the box. Apparently there are none in open source. Apache will only distribute open source. Of course, Sun (and others) distribute tools.jar (or equiv) gratis. Modify your startup.sh (or is it setenv.sh ??) to include the tools.jar on the Tomcat classpath. Then all is well. - Original Message - From: Mikkel Bruun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 3:09 PM Subject: OFFTOPIC: Solaris and Tomcat problems! This has nothing to do with struts, but I know this list has a couple of guru's and demigods lurking... I have just installed solaris 8 on an intel machine. I installed tomcat 3.2.2 and it runs the servlets examples without any problems...BUT There seems to be a problem running the jsp files... Whenever i request a jsp file it just freezes, and i get no respond... Looking into the matter I saw that the jsp was succesfully compiled to a .java file...BUT The jsp compiler seems to be endlessly looping in the translation, because it keeps writing the same line over and over again (until im out of disk space)... I looked into the tomcat mailling archives and saw that somebod had experienced this problem before, but I wasnt able to find a solution... Any suggestions thanks in advance... Mikkel
SOLVED OFFTOPIC: Solaris and Tomcat problems!
I upgraded the jdk to version 1.3.1...solved it its funny, i've stumbled upon this error in 9-10 different places...but never associated with a fix Mikkel -Oprindelig meddelelse- Fra: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sendt: 03 July 2001 09:43 Til: [EMAIL PROTECTED] Emne: Re: SV: SV: OFFTOPIC: Solaris and Tomcat problems! I'm out of ideas. I do see posts about solaris and tomcat on the tomcat lists, but dont pay attention sorry (o: be worth checking the archives first though (o: cheers dim On Tue, 3 Jul 2001 17:16, you wrote: its a completely fresh install of both solaris and tomcat... the jdk is 1.2.2 the servlets examples work, but the jsp examples runs in an infinite loop during the translation (the last line is added repeatedly)... I'll try the tomcat lists... thanks Mikkel -Oprindelig meddelelse- Fra: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sendt: 03 July 2001 09:24 Til: [EMAIL PROTECTED] Emne: Re: SV: OFFTOPIC: Solaris and Tomcat problems! Hi, The tomcat list is very friendly (o: but for now... do the log files say anything useful? is this a fresh install of tomcat? do the examples work? which jdk are you using? I have no idea about any solaris related issues, but if you're getting problems like this I'd be inclined to do a fresh install of tomcat, and see if that works, then dump your config and webapps over the fresh one. hope this helps cheers dim On Tue, 3 Jul 2001 16:58, you wrote: I have the tools.jar in my classpath, and it correctly shows this when i startup tomcat... but the problem still remains... during startup it guesses my JAVA_HOME and TOMCAT_HOME and it comes up with the right paths... Im really stuck here... any suggestions would be welcome!!! Mikkel -Oprindelig meddelelse- Fra: Dan Connelly [mailto:[EMAIL PROTECTED]] Sendt: 02 July 2001 16:39 Til: [EMAIL PROTECTED] Emne: Re: OFFTOPIC: Solaris and Tomcat problems! There is no compiler class (jar) distributed with Tomcat, out of the box. Apparently there are none in open source. Apache will only distribute open source. Of course, Sun (and others) distribute tools.jar (or equiv) gratis. Modify your startup.sh (or is it setenv.sh ??) to include the tools.jar on the Tomcat classpath. Then all is well. - Original Message - From: Mikkel Bruun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 3:09 PM Subject: OFFTOPIC: Solaris and Tomcat problems! This has nothing to do with struts, but I know this list has a couple of guru's and demigods lurking... I have just installed solaris 8 on an intel machine. I installed tomcat 3.2.2 and it runs the servlets examples without any problems...BUT There seems to be a problem running the jsp files... Whenever i request a jsp file it just freezes, and i get no respond... Looking into the matter I saw that the jsp was succesfully compiled to a .java file...BUT The jsp compiler seems to be endlessly looping in the translation, because it keeps writing the same line over and over again (until im out of disk space)... I looked into the tomcat mailling archives and saw that somebod had experienced this problem before, but I wasnt able to find a solution... Any suggestions thanks in advance... Mikkel
SV: pls Help Invalid Package Declartions .java File Wont compile
Try removing all the .java files from the WEB-INF dirtomcat doesnt like having them there for some reason... Mikkel -Oprindelig meddelelse-Fra: Calvin Yu [mailto:[EMAIL PROTECTED]]Sendt: 02 July 2001 15:19Til: [EMAIL PROTECTED]Emne: Re: pls Help Invalid Package Declartions .java File Wont compile What is it exactly are you trying to do? Compile? Run a webapp? What is the exact error output you are getting? Calvin - Original Message - From: Chuck Amadi To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 8:30 AM Subject: pls Help Invalid Package Declartions .java File Wont compile Hi, Can anyone suggest why i might be recieving the following invalid package declarations. My Path as follows- C:\jakarta-tomcat-3.2.1\webapps\bbnpa\ thus continued- WEB-INF\classes\org\breconbeacons\it\java(classes). Thus i am aware that they haven't compiled to .class file any help would be extremly recieved this has been posted a few times so i assume this is a difficult enquiry . I have ensured the jar files ,tld ( xml ),package title and declarations are in order. So if anyone out there has got a poniters giv's us some hlep Cheers Chuckie -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
SV: SV: pls Help Invalid Package Declartions .java File Wont compile
Ehh, i dont know...;-) my point is that the WEB-INF tree shouldn't contain any .java files...just .class, properties, etc... Mikkel -Oprindelig meddelelse- Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]] Sendt: 02 July 2001 15:55 Til: [EMAIL PROTECTED] Emne: Re: SV: pls Help Invalid Package Declartions .java File Wont compile Hi, mate were then should i locate them as oppose to WEB-INF\classes\ Cheers Chuck Mikkel Bruun wrote: Part 1.1Type: Plain Text (text/plain) Encoding: quoted-printable -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
SV: SV: pls Help Invalid Package Declartions .java File Wont compile
My current setup consists of VAJ 3.5, running tomcat internally... If your are running this combo,I would suggests that you compiled your .java files in another location, and then had a script (ant?) to copy the compiled clss files to the WEB-INF tree... Try reading the developer guide lines in the tomcat documentation, where they suggests a src tree among other things... Mikkel -Oprindelig meddelelse-Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]Sendt: 02 July 2001 16:43Til: [EMAIL PROTECTED]Emne: Re:SV: pls Help Invalid Package Declartions .java File Wont compileHi, Again were would you create your .java files hence before compiling, as i assume that the .java files had to be in the sub directory classes beneath WEB-INF file structure in order for my web application to locate them.I am aware that the container will look for deployment information about my bbnpa -web app there and as the WEB-INF is practicaly top-tier there is noware else i can think of. Hence i find it remarkable that all by one are invalid package declarations and the other error parsing which i'll take another look at. I understand your concept that once they are compiled there wouldn't be any .java files ONLY .class files within the WEB-INF\classes dir. So i must assume that it my problem stems from compiling a java file from within a invalid path declaration. but my path isn't that complexed. Mikkel Bruun wrote: Ehh, i dont know...;-) my point is that the WEB-INF tree shouldn't contain any .java files...just .class, properties, etc... Mikkel -Oprindelig meddelelse- Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]] Sendt: 02 July 2001 15:55 Til: [EMAIL PROTECTED] Emne: Re: SV: pls Help Invalid Package Declartions .java File Wont compile Hi, mate were then should i locate them as oppose to WEB-INF\classes\ Cheers Chuck Mikkel Bruun wrote: Part 1.1 Type: Plain Text (text/plain) Encoding: quoted-printable -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi. -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
SV: apostrophe in an application resource properties file does disappear in the JSP file compiled!!!!!!!!!!!
escape it using \' Mikkel -Oprindelig meddelelse- Fra: Matteo Di Giovinazzo [mailto:[EMAIL PROTECTED]] Sendt: 19 June 2001 15:47 Til: [EMAIL PROTECTED] Emne: apostrophe in an application resource properties file does disappear in the JSP file compiled!!! For example in the struts-blank.jar in the ApplicationResource.properties there is a key with a value that contains an apostrophe (0x27 ASCII Code): index.message=[...]Place it in your container's webapp folder[...] In the JSP file that call bean:message key=index.message/ the apostrophe disappear!! IS THIS A BUG??? Matteo Di Giovinazzo
SV: take a peek at struts import packages
Struts is open source Feel free to download it from the jakarta.apache.org/struts website Mikkel -Oprindelig meddelelse-Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]Sendt: 18 June 2001 11:57Til: [EMAIL PROTECTED]Emne: Re: take a peek at struts import packages Hi, were can i take a look/edit the - import org.struts.aaction.ActionMapping ; Package Cheers Chuck -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
SV: [ANNOUNCEMENT] Struts 1.0 (Final) Released
Woohooo got job devs!!! I'm in the process of putting a evelatuation of struts together, as I have recently completed my FIRST project implemented in struts... Nice!! -Oprindelig meddelelse- Fra: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sendt: 16 June 2001 02:23 Til: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Emne: [ANNOUNCEMENT] Struts 1.0 (Final) Released As promised at JavaOne, the Struts project team is proud to announce the availability of Version 1.0 (final release) of the Struts Framework. The binary distribution is available at: http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/ and the source distribution is available at: http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/src/ Craig McClanahan
SV: error
Hi Rajiv, try to post some more info, your struts-config.xml as well as a stacktrace Its quite hard to answer your question from the info you supply... Mikkel -Oprindelig meddelelse-Fra: rajiv mulay [mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 13:26Til: [EMAIL PROTECTED]Emne: error Hi, I'm using struts with tomcat, it is giving error class not found. It is not able to find the Bean class ( LogonForm) What is the reason rajiv
SV: error
it looks like its the ProfileForm class it cant find javax.servlet.ServletException: Exception creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException: com.dhaval.ProfileForm --- where do you reference this class??? As you can see from the stack strace the real cause of your problem occurs in at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) --- Which is the jsp tag that renders a formplease post a snippet of your jsp page Mikkel -Oprindelig meddelelse-Fra: rajiv mulay [mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 13:36Til: [EMAIL PROTECTED]Emne: Re: error Hi Mikkel. Struts-config.xml form-beans form-bean name="logonForm" type="com.rajiv.LogonForm" / /form-beans stack trace is javax.servlet.ServletException: Exception creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException: com.dhaval.ProfileForm at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex_jsp_3.java:163) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: javax.servlet.jsp.JspException: Exception creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException: com.dhaval.ProfileForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) at _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex_jsp_3.java:68) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) thanks rajiv From: Mikkel Bruun To: '[EMAIL PROTECTED]' Sent: Tuesday, June 12, 2001 7:53 AM Subject: SV: error Hi Rajiv, try to post some more info, your struts-config.xml as well as a stacktrace Its quite hard to answer your question from the info you supply... Mikkel -Oprindelig meddelelse-Fra: rajiv mulay [mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 13:26Til: [EMAIL PROTECTED]Emne: error Hi, I'm using struts with tomcat, it is giving error class not found. It is not able to find the Bean class ( LogonForm) What is the reason rajiv
SV: error
are you sure you have the com.dhaval.ProfileForm class in your classpath??? -Oprindelig meddelelse-Fra: rajiv mulay [mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 13:46Til: [EMAIL PROTECTED]Emne: Re: error HI Mikkel, the jsp code is %@ page language="java" %%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" % htmltitleShow user profile/title/headbody form:form action="userInfo.do" type="com.dhaval.ProfileForm" form:text property="username" //td form:submit value="Logon" //td /form:form/body /html - Original Message - From: Mikkel Bruun To: '[EMAIL PROTECTED]' Sent: Tuesday, June 12, 2001 8:04 AM Subject: SV: error it looks like its the ProfileForm class it cant find javax.servlet.ServletException: Exception creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException: com.dhaval.ProfileForm --- where do you reference this class??? As you can see from the stack strace the real cause of your problem occurs in at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) --- Which is the jsp tag that renders a formplease post a snippet of your jsp page Mikkel -Oprindelig meddelelse-Fra: rajiv mulay [mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 13:36Til: [EMAIL PROTECTED]Emne: Re: error Hi Mikkel. Struts-config.xml form-beans form-bean name="logonForm" type="com.rajiv.LogonForm" / /form-beans stack trace is javax.servlet.ServletException: Exception creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException: com.dhaval.ProfileForm at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex_jsp_3.java:163) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: javax.servlet.jsp.JspException: Exception creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException: com.dhaval.ProfileForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) at _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex_jsp_3.java:68) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadP
SV: error
Does your struts-config.xml only consist of that one entry you posted earlier??? if so, add an entry for the ProfileForm class -Oprindelig meddelelse-Fra: rajiv mulay [mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 14:42Til: [EMAIL PROTECTED]Emne: Re: error yaa it is in the class path - Original Message - From: Mikkel Bruun To: '[EMAIL PROTECTED]' Sent: Tuesday, June 12, 2001 8:38 AM Subject: SV: error are you sure you have the com.dhaval.ProfileForm class in your classpath??? -Oprindelig meddelelse-Fra: rajiv mulay [mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 13:46Til: [EMAIL PROTECTED]Emne: Re: error HI Mikkel, the jsp code is %@ page language="java" %%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" % htmltitleShow user profile/title/headbody form:form action="userInfo.do" type="com.dhaval.ProfileForm" form:text property="username" //td form:submit value="Logon" //td /form:form/body /html - Original Message - From: Mikkel Bruun To: '[EMAIL PROTECTED]' Sent: Tuesday, June 12, 2001 8:04 AM Subject: SV: error it looks like its the ProfileForm class it cant find javax.servlet.ServletException: Exception creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException: com.dhaval.ProfileForm --- where do you reference this class??? As you can see from the stack strace the real cause of your problem occurs in at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) --- Which is the jsp tag that renders a formplease post a snippet of your jsp page Mikkel -Oprindelig meddelelse-Fra: rajiv mulay [mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 13:36Til: [EMAIL PROTECTED]Emne: Re: error Hi Mikkel. Struts-config.xml form-beans form-bean name="logonForm" type="com.rajiv.LogonForm" / /form-beans stack trace is javax.servlet.ServletException: Exception creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException: com.dhaval.ProfileForm at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex_jsp_3.java:163) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: javax.servlet.jsp.JspException: Exception creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException: com.dhaval.ProfileForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) at _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex_jsp_3.java:68) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
RE: GenericDataSource Examples
It in the documentation somewhere...the users guide i believe... Mikkel -Original Message- From: hunkpapa To: [EMAIL PROTECTED] Sent: 11-06-2001 21:46 Subject: GenericDataSource Examples Hi, where can I find GenericDataSource Examples ?
RE: Problem With Struts and Tomcat
I posted a how-to for getting struts and tomcat 3.2.1 up and running in VAJ...check the archives or even www.helenius.org... Mikkel -Original Message- From: Thomas L Richards To: [EMAIL PROTECTED] Sent: 11-06-2001 17:03 Subject: Re: Problem With Struts and Tomcat Dan, Ok, I'll try that (even though I ordered 3.5.3but it'll be a while before I get it). Do you have the title of the article for integrating 3.2.1 into VAJ on VADD? The thing I'm curious about is in the IBM Tomcat Integration bundle, IBM has a Runner class that handles Tomcat startup and everything. Is it possible to use the 3.1.X runner (just tweak it for 3.2.1?) thereby pointing it at the new version? I haven't tried this Just a thought. -Tom Dan Miser [EMAIL PROTECTED] To: [EMAIL PROTECTED] com cc: Subject: Re: Problem With Struts and Tomcat 06/09/2001 11:10 AM Please respond to struts-user You don't *need* VAJ 3.5.3 to run 3.2.1. Of course, you need to do things yourself as opposed to using the IBM Tomcat integration offering. If you have specific problems with your config, post them here and I should be able to help out. Also, there's an article on VADD that outlines most of the things you need to do for Struts integration with VAJ. -- Dan Miser http://www.distribucon.com - Original Message - From: Thomas L Richards [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 08, 2001 4:47 PM Subject: Re: Problem With Struts and Tomcat I'm downloading Tomcat 3.2.1 now (can't get 3.2.2 for VAJ yet). Unfortunately, as it turns out, I need to upgrade VAJ to 3.5.3 since Tomcat 3.2.X won't work with VAJ 3.5.2. Go figure.
RE: displaying html errors in order
Hi, Believe or not, I just ran into this issue today... Wouldn't it be nice is ActionErrors used an Ordered Collection Mikkel -Original Message- From: Charlesworth, Chico To: '[EMAIL PROTECTED]' Sent: 08-06-2001 17:50 Subject: displaying html errors in order i can display errors fine, but they are displayed not in the same order as i created them ... I see this is because the ActionErrors class uses a HashMap and therefore doesn't return them in a given order (i think it sorts them according to the hashcode value). I can use the property tag in html:errors tag to display each error individually, but then it displays my error header and footer for each error displayed ... As anyone thought of a nice hack so this doesn't happen? cheers, chico -- The content of this e-mail is confidential, may contain privileged material and is intended solely for the recipient(s) named above. If you receive this in error, please notify Software AG immediately and delete this e-mail. Software AG (UK) Limited Registered in England Wales 1310740 Registered Office: Hudson House, Hudson Way, Pride Park, Derby DE24 8HS
Resetting an Action Form (urgent)
Hi Guys, Please help me out on this one... I ran in to a small problem... 1. In the system im developing the user has to go through several pages, entering information that needs to be processed... 2. When ever the user enters invalid data, he'si returned to the form and is presented to error messages... 3. The user should be able to press the bacl button, or user other means to navigating backwards in the process. When navigating backwards the forms should be populated with whatever data he has entered... (of course all the above is straight forwrd implemented in struts, but check this) 4. After the user has completed the entire proces, he is able to do it one more time. This time the forms should not remember what the user previuosly entered, and should therefor be blank... To give a more substantial example...it could be an insurance broker who would do several calculations on an house insurance for each customer... Each calculation should be isolated from each other... Is there a simple way to do this??? At the moment there no coupling between my ActionForms and my Logic Beans (ie no association or anything)... Could I use the transaction token??? and if so, is there any documentation for the transaction token!! thanks in advance Mikkel
RE: Hidding .jsp files
Hi Craig, A blast from the past...I believe this post is a month old... Anyways...I see your point, but consider this... If I only refered to the functionaly (pages, actions whatever), I would have the following problem... myForm.do forwards to myAction which is validated to myForm... So if I linked to myForm.do, my GET would be validated and myForm would return errormessages... So I need an URL that doesn't trigger any logic, but just shows the form to the user...(or have a hidden init field in the form)... Mikkel -Original Message- From: Craig R. McClanahan To: '[EMAIL PROTECTED] ' Sent: 02-06-2001 05:14 Subject: Re: Hidding .jsp files On Tue, 15 May 2001, Mikkel Bruun wrote: Hi Guys, Is it possible to make some sort of virtual path, enabling one to hide the actual .jsp pages??? Example, i want to avoid a link like /logon/logonform.jsp replacing it with perhaps /logon (which in turn will point to /logon/logonform.jsp) I tried looking at the globalforwards, but i find the documentation quite lacking (there's an error in the code, btw)...but is this how its done??? Another solution would be to make empty action classes that just returns the succes mapping, but that would be going over the top imho... Can anybody give an answer??? thanks Mikkel Bruun One thing to keep in mind is that, in a typical Struts application, the names of the JSP pages are obscured anyway -- because the form submits go to the controller servlet. For example, walk your way through the Struts example application, and note how many of the locations actually shown have *.do extensions on them ... As a more radical way to hide things (but more for the purpose of discouraging users from setting bookmarks in the middle of an application), I've also resorted on occasion to more radical approaches: * Open the application in a window that doesn't have a location bar * Create a frameset with only one frame in it (so the location bar never changes at all). Craig McClanahan
SV: Grid Support in Struts
using the iterate tag, your columns wiuld just be an attribute on your iteree (element, whatever)... I cant really see your problem... Mikkel -Oprindelig meddelelse- Fra: du Clos, John [mailto:[EMAIL PROTECTED]] Sendt: 31 May 2001 16:14 Til: '[EMAIL PROTECTED]' Emne: RE: Grid Support in Struts Jeff, yes i did look at the example from yesterday, but it did not seem to be multi-dimensional. Seems to iterate over a set object based on static attributes on the object in a single dimension array; this is does not fulfill our requirement of a grid. I need to dynamically add rows and columns. That is why i posted the grid question, i did not think the grid requirement posted on the list was a true multi-dimensional grid requirement... maybe i miss read it. Thanks, JD -Original Message- From: Jeff Trent [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 10:01 AM To: [EMAIL PROTECTED] Subject: Re: Grid Support in Struts I guess you didn't look very hard. There are examples as early as yesterday in the archives. - Original Message - From: du Clos, John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 31, 2001 9:19 AM Subject: Grid Support in Struts We currently have a business requirement to provide a grid type of interface as part of many web pages in our design. I searched the list for Grid examples or support and did not find anything. Has anyone implemented a psudo grid function using Struts... that would support the following: col1 col2 col3 ___ ___ ___ row 1 |__ | |___| |__| ___ ___ ___ row 2 |__ | |___| |__| ___ ___ ___ row 3 |__ | |___| |__| ___ ___ ___ row 4 |__ | |___| |__| . . Essentially, i believe we are looking for a solution that supports a 2-dimensional array so we can reference it as ObjName(row,col). I read the iterate tag documentation, but did not seem to be well suited for multi-dimension. Any suggestions would be greatly appreciated. The additional business requirement is that we allow user to dynamically add rows and columns... i found something on the list to support dynamically adding rows w/iterate and some coding on the jsp, but nothing on dynamic columns Thanks, JD
dynamic population of an option tag
Hi Guys, I need to populate an option tags value attribute with a string from the ApplicationRessources.properties... Is there any easy way to do this thanks Mikkel
SV: Any hosting sites that use Struts?
or www.aoindustries.com Its run by (among others) a guynamed Dan. Until about a year ago Dan offered hosting for free!! including jsp, servlets, mysql to anybody Unfortunaltely some punks took advantage of this, and used his servers in a DOS attack... He the moved on and founded aoindustries Nevertheless, I HAVE to recommend him because of his great initiative... Mikkel -Oprindelig meddelelse-Fra: Deadman, Hal [mailto:[EMAIL PROTECTED]]Sendt: 30 May 2001 18:22Til: [EMAIL PROTECTED]Emne: RE: Any hosting sites that use Struts? I looked around for sites that host jsp/servlet based apps awhile ago and came up with these links: http://www.irdesign.com/services/hosting/website_hosting.html http://www.hostjsp.com/ http://www.mmaweb.net/ http://www.servlets.net/index.html http://www.infinitehost.com/ I can't vouch for any of them. I would be interested in hearing feedback about these providers or other options. Hal -Original Message-From: Jeff Trent [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 30, 2001 12:12 PMTo: [EMAIL PROTECTED]Subject: Any hosting sites that use Struts? Anyone know of a hosting facility that offers Java web hosting + Struts?
Options tag problem
Hi Guys! I have an ActionForm which contains a HashSet named Persons that contains several instances of Person In my jsp i want a dropdown box showing the Person's name. code: html:options property=persons / This points to the getPersons() method in the ActionForm that'll return a HashSet... Now I need to access each elements getName() method, but looking through the options tag code, it seems like it can only handle Collections of Stringsis this correct Any suggestions on how to solve it??? thanks Mikkel
RE: Splitting up struts-config.xml
WE ran in to similar problem a couple of months ago (just not with struts, another mvc framework)... We simply recodede our xml properties loading method to grab it from a central http url... So now all delopers would have to work on ONE xml, which was placed centrally, and managed by Visual Source Safe... Thats how we avoided having to merge several config files... Mikkel -Original Message- From: Doug Way To: [EMAIL PROTECTED] Sent: 19-05-2001 01:11 Subject: Splitting up struts-config.xml I'm working as part of a team on a large-ish web application using struts. There are several of us currently working on the struts/jsp side of things, and there's now quite a bit of stuff (action mappings, etc.) in the struts-config.xml file, so each of us has to change this file fairly often, and we're often in conflict with each other. (I guess part of the problem is that we're using a source code management tool (SourceOffSite) with a pessimistic check-in/check-out system, without automated merging.) Anyway, is there some way to split up the contents of struts-config.xml, so that it's not one huge file? (Maybe with includes, or something similar?) - Doug Way [EMAIL PROTECTED]
SV: Websphere 3.5.3??
Hi Noel, Thanks, I'll see if I can get some time to look in to it myself... It seems like my manager will only use struts if it can run succesully on WAS...strange, because we will be going into production on a tomcat...well well... Mikkel -Oprindelig meddelelse- Fra: Noel Sebastien [mailto:[EMAIL PROTECTED]] Sendt: 18 May 2001 09:28 Til: '[EMAIL PROTECTED]' Emne: RE: Websphere 3.5.3?? I installed the patch : was35_adv_ptf_3_AIX.tar to upgrade to 3.5.3 under AIX. We still encounter some problems : I should have to replace servlet.jar, xalan.jar and xerces.jar in WebSphere/AppServer/lib directory with those provided by Apache !! I don't know if it is the correct way, but it works. With old jar, XSL transformation returned an empty String. Séb -Original Message- From: Mikkel Bruun [SMTP:[EMAIL PROTECTED]] Sent: vendredi 18 mai 2001 07:33 To: '[EMAIL PROTECTED]' Subject: Websphere 3.5.3?? Hi There! In the instructions for installation on WebSphere (http://jakarta.apache.org/struts/installation-was352.html), it says that many of the problems encountered using 3.5.2 would be removed when 3.5.3 arríves...3.5.3 is heredid it solve the problems and is there anybody who has instructions on installing on 3.5.3??? thanks! Mikkel - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - Un courrier électronique n'engage pas son émetteur. Tout message susceptible de comporter un engagement doit être confirmé par un écrit dûment signé. An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. Ein elektronischer Brief bzw. eine elektronische Nachricht ist für den Absender nicht verbindlich. Jede Nachricht, welche eine Verpflichtung beinhaltet, muß schriftlich bestätigt und ordnungsgemäß unterzeichnet werden. -
SV: Struts, VAJ 3.5.3, and ApplicationResources.properties
place it in your test applications project_resources folder... preferably under a folder structure reprenseting your package names... should do the trick Mikkel -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sendt: 17 May 2001 06:10 Til: [EMAIL PROTECTED] Emne: Struts, VAJ 3.5.3, and ApplicationResources.properties My test application cannot read my ApplicationResources.properties file. I've tried placing it in either the web_app/WEB-INF/classes directory or the web_app/WEB-INF/classes/package_name directory, and both result in the Cannot find message resources under key org.apache.struts.action.MESSAGE error. All testing is being done in the VAJ 3.5.3 Websphere Test Environment. Do I need to add any extra paths from the WTE Test Control Center (currently my classpath DOES NOT point to the web_app/WEB-INF/lib dir). Any light that can be shed on this problem is greatly appreciated. jeff This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
SV: Trouble setting properties of an ActionForm bean
HI Peter, Well, your bean doenst conform to the bean standard. boolean getShowInstructions() should return a String instead... dont know if this is causing your problem, but I suspect so Mikkel -Oprindelig meddelelse- Fra: Peter Smith [mailto:[EMAIL PROTECTED]] Sendt: 16 May 2001 22:55 Til: [EMAIL PROTECTED] Emne: Trouble setting properties of an ActionForm bean I'm hoping this issue is me just not understanding the JavaBeans spec! When I make the getter method of my ActionForm property a non-String type, the 'set' method for that property is not called when a request is made. I traced this to BeanUtils.java which gets a 'null' returned by 'propertyDescriptorInstance'.getWriteMethod() for the offending method. The code for my ActionForm with the offending property is shown below. I changed the return type of getShowInstructions() to boolean instead of String. Thanks for any advice. --Peter-- - ... private String showInstructions_; public void setShowInstructions( String showInstructions ) { showInstructions_ = showInstructions; } public boolean getShowInstructions() { return ( Boolean.valueOf( showInstructions_ ) ).booleanValue(); } ... __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
SV: Trouble setting properties of an ActionForm bean
why not just return a boolean??? the .toString() representation of a boolean is the strings true or false Works for me... Mikkel -Oprindelig meddelelse- Fra: Eric Rasmussen [mailto:[EMAIL PROTECTED]] Sendt: 17 May 2001 00:14 Til: [EMAIL PROTECTED] Emne: Re: Trouble setting properties of an ActionForm bean As far as I know, the value passed into the setter method must match the value returned by the getter method. It will not work otherwise. Could you return 'true' or 'false' as a String? If you are setting a value of a field, it should work. - eric - Original Message - From: Peter Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 1:54 PM Subject: Trouble setting properties of an ActionForm bean I'm hoping this issue is me just not understanding the JavaBeans spec! When I make the getter method of my ActionForm property a non-String type, the 'set' method for that property is not called when a request is made. I traced this to BeanUtils.java which gets a 'null' returned by 'propertyDescriptorInstance'.getWriteMethod() for the offending method. The code for my ActionForm with the offending property is shown below. I changed the return type of getShowInstructions() to boolean instead of String. Thanks for any advice. --Peter-- - ... private String showInstructions_; public void setShowInstructions( String showInstructions ) { showInstructions_ = showInstructions; } public boolean getShowInstructions() { return ( Boolean.valueOf( showInstructions_ ) ).booleanValue(); } ... __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Websphere 3.5.3??
Hi There! In the instructions for installation on WebSphere (http://jakarta.apache.org/struts/installation-was352.html), it says that many of the problems encountered using 3.5.2 would be removed when 3.5.3 arríves...3.5.3 is heredid it solve the problems and is there anybody who has instructions on installing on 3.5.3??? thanks! Mikkel
RE: newbie: Problem with ActionErrors
Hi Elco, I been fooling around with struts for a couple of days mow... Let me have a shot, I have the following ActionForm class that does the validation - ActionErrors errors = new ActionErrors(); if ((name == null) || (name.length() 1)) errors.add(name, new ActionError(error.name.required)); if ((age == null) || (age.length() 1)) errors.add(age, new ActionError(error.age.required)); return errors; - In my jsp i have the following: - html:form action=/register.do focus=name html:text property=name size=16 maxlength=16/ html:errors property=name/ html:text property=age size=2 maxlength=2/html:errors property=age/ html:submit property=submit value=Submit/ - When i submit a form without either name or age the validate method will populate the errors object with String described in my ApplicationResource.properties file Struts will then return me to the page, prefill the form with any valid data and print the error message that we added to the erros object in the validate method... This works, if you have something similar it should also work... regards Mikkel Bruun -Original Message- From: Eelco van Kuik To: Struts-User (E-mail) Sent: 15-05-2001 10:54 Subject: newbie: Problem with ActionErrors Dear colleague developers, We are struggling with a problem to get the struts-forms working. It might be a newbie problem, but it is still difficult to find out which newbie problem we made. ;-) I included the most important struts problems at the bottom. No FAQ/examples/etc. could solve our problem, so I think that it might have something to do with a more complicated issue. We want: Serverside form validation: 1. When an error is added to the ActionErrors we want to display it at the top (iterate over the list) 2. Show the same form again, and 3. WITH the input (even though it might not be right) shown in the input fields. We have: 1. Whenever we raise an error we get the message at the top of the page: Validation Error You must correct the following error(s) before proceeding: And no list of the errors... 2. We get the same form allright, but with NO VALUES whatsoever. Guys, WE ARE STUCK. :-( So any help would be greatly apreciated. Regards, Eelco Angela *** here the (stripped) jsp code: form:errors/ form:form name=sparenform type=nl.rabobank.www.rekenmodellen.sparen.SparenActionForm action=/rekenmodellen/sparenresult focus=invoerGetal1 form:text property=invoerGetal1 size=10 maxlength=10/ /form:form here the (stripped) actionclass code: ActionErrors errorsHTML = new ActionErrors(); errorsHTML = sparenActionForm.checkForm(); if (!errorsHTML.empty()) { cat.debug(!errorsHTML.empty()); saveErrors(request, errorsHTML);//request.setAttribute (sparen.error, errorsHTML); // return to the original form return (new ActionForward(mapping.getInput())); } else { ..no errors } here the form validator function(in the ActionForm): public ActionErrors checkForm() { ActionErrors errors = new ActionErrors(); /** * error inleg: getal heeft verkeerde waarde */ if (!berekeningtype.equalsIgnoreCase(i) (inleg = 0 || inleg = 100)) { cat.debug(fout gemaakt in inleg); errors.add(invoerGetal1,new ActionError(inleg moet tussen de 0 en 1.000.000 zijn !)); }
RE: Hidding .jsp files
of course!! nice!! thanks!! Mikkel Bruun -Original Message- From: Scott Walter To: [EMAIL PROTECTED] Sent: 15-05-2001 14:59 Subject: Re: Hidding .jsp files Look into the web.xml file. Since a JSP page is a servlet, you can setup a servlet tag for the JSP page (instead of specifiying servlet-class, use jsp-file). You will then create a servlet-mapping to specify the url to listen on. scott. --- Mikkel Bruun [EMAIL PROTECTED] wrote: Hi Guys, Is it possible to make some sort of virtual path, enabling one to hide the actual .jsp pages??? Example, i want to avoid a link like /logon/logonform.jsp replacing it with perhaps /logon (which in turn will point to /logon/logonform.jsp) I tried looking at the globalforwards, but i find the documentation quite lacking (there's an error in the code, btw)...but is this how its done??? Another solution would be to make empty action classes that just returns the succes mapping, but that would be going over the top imho... Can anybody give an answer??? thanks Mikkel Bruun = ~~~ Scott __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Hidding .jsp files
No it won't... It has no impact on the struts mappings... Mikkel Bruun -Original Message- From: Nanduri, Amarnath To: '[EMAIL PROTECTED]' Sent: 15-05-2001 15:09 Subject: RE: Hidding .jsp files Will this in anyway affect the mapping in the struts-config.xml file ? -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 9:00 AM To: [EMAIL PROTECTED] Subject: Re: Hidding .jsp files Look into the web.xml file. Since a JSP page is a servlet, you can setup a servlet tag for the JSP page (instead of specifiying servlet-class, use jsp-file). You will then create a servlet-mapping to specify the url to listen on. scott. --- Mikkel Bruun [EMAIL PROTECTED] wrote: Hi Guys, Is it possible to make some sort of virtual path, enabling one to hide the actual .jsp pages??? Example, i want to avoid a link like /logon/logonform.jsp replacing it with perhaps /logon (which in turn will point to /logon/logonform.jsp) I tried looking at the globalforwards, but i find the documentation quite lacking (there's an error in the code, btw)...but is this how its done??? Another solution would be to make empty action classes that just returns the succes mapping, but that would be going over the top imho... Can anybody give an answer??? thanks Mikkel Bruun = ~~~ Scott __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
VAJ3.5, Tomcat, Struts
Hi Guys... Lat night, after reading the article about struts in jdj, i decided to give struts a try... I have earlier implemented model2 frameworks in the same flavor, but not as complete and full as struts!! Congratulations team!! anyway, usually when i develop i use VAJ 3,5 launching tomcat 3.2 internally (Not the tomcat test enviroment). If anyone has tried this combo, you know it rocks and eases development tremendously... However, i couldn't make it run like i wanted it to, apparently i had to put struts.jar in the filesystem, as it wouldn't load from within VAJ... The same happened with my own classes, they also had to be placed in the filesystem before struts could load them... I read your maling-list archives and saw that you have had this thread before, however i wasn't able to find any solution... Have you found any way to solve my problem??? thanks! Mikkel Bruun
SV: Antwort: VAJ3.5, Tomcat, Struts
Hi Juergen, Thanks for your reply! following your instructions i succeded in getting tomcat up and running, and succesfully loading the struts-example application, however when accessing localhost:8080/struts-example the compilations fails... I will spend some time looking in to that... thanks for your help and your fast reply Mikkel -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sendt: 14. maj 2001 11:54 Til: [EMAIL PROTECTED] Emne: Antwort: VAJ3.5, Tomcat, Struts Hi Mikkel, we are using this combo successfully. Here some possible problems: 1.) tomcat needs servlet-api 2.1: do not use pre-packaged jars (.class only) or VAJs Version. Get the sources and import them to your tomcat project. 2.) you have(!) to use struts-src distribution; import it into VAJ (should compile successfully but has errors concerning javax.sql.datasource (add feature in VAJ (IBM Enterprise Extension Libs) or get reference implementation from SUN (binary version is enough and import only missing class files into Struts Project) Important: within struts.jar are some resource files (DTDs and config-XMLs) Put these somewhere into tomcats classpath (e.g. webapps/myApp/WEB-INF/classes/org.apache.struts.resources)! 3.) set Tomcats Classpath correct! (include your Project, Struts-Project) --- 4.) Consider downloading VAJ 3.5.3 Enterprise _Entry_ Edition (full Edition is expensive :-\ ) and include Websphere Test Environment (WTE); it is able to debug your JSP-Files (imagine!). Good luck, Jürgen Mikkel Bruun [EMAIL PROTECTED] on 14.05.2001 11:09:46 Bitte antworten an [EMAIL PROTECTED] An: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Kopie: (Blindkopie: Jürgen Walter/HV18/Hermes/DE) Thema:VAJ3.5, Tomcat, Struts Hi Guys... Lat night, after reading the article about struts in jdj, i decided to give struts a try... I have earlier implemented model2 frameworks in the same flavor, but not as complete and full as struts!! Congratulations team!! anyway, usually when i develop i use VAJ 3,5 launching tomcat 3.2 internally (Not the tomcat test enviroment). If anyone has tried this combo, you know it rocks and eases development tremendously... However, i couldn't make it run like i wanted it to, apparently i had to put struts.jar in the filesystem, as it wouldn't load from within VAJ... The same happened with my own classes, they also had to be placed in the filesystem before struts could load them... I read your maling-list archives and saw that you have had this thread before, however i wasn't able to find any solution... Have you found any way to solve my problem??? thanks! Mikkel Bruun
SV: Antwort: VAJ3.5, Tomcat, Struts
In reply to my own message, It looks like my problems are caused by then MessageTag, when it tries to load the index.title property from the ApplicationResources.properties in the doStartTag() method, it returns null... currently i have the ApplicationResources.properties file placed in \webapps\struts-example\WEB-INF\classes\org\apache\struts\example somehow i believe that maybe it should be moved to my tomcat runner project_resources folder...i tried that but it didn't help... any suggestions would be apprenciated... thanks Mikkel Bruun -Oprindelig meddelelse- Fra: Mikkel Bruun Sendt: 14. maj 2001 13:59 Til: '[EMAIL PROTECTED]' Emne: SV: Antwort: VAJ3.5, Tomcat, Struts Hi Juergen, Thanks for your reply! following your instructions i succeded in getting tomcat up and running, and succesfully loading the struts-example application, however when accessing localhost:8080/struts-example the compilations fails... I will spend some time looking in to that... thanks for your help and your fast reply Mikkel -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sendt: 14. maj 2001 11:54 Til: [EMAIL PROTECTED] Emne: Antwort: VAJ3.5, Tomcat, Struts Hi Mikkel, we are using this combo successfully. Here some possible problems: 1.) tomcat needs servlet-api 2.1: do not use pre-packaged jars (.class only) or VAJs Version. Get the sources and import them to your tomcat project. 2.) you have(!) to use struts-src distribution; import it into VAJ (should compile successfully but has errors concerning javax.sql.datasource (add feature in VAJ (IBM Enterprise Extension Libs) or get reference implementation from SUN (binary version is enough and import only missing class files into Struts Project) Important: within struts.jar are some resource files (DTDs and config-XMLs) Put these somewhere into tomcats classpath (e.g. webapps/myApp/WEB-INF/classes/org.apache.struts.resources)! 3.) set Tomcats Classpath correct! (include your Project, Struts-Project) --- 4.) Consider downloading VAJ 3.5.3 Enterprise _Entry_ Edition (full Edition is expensive :-\ ) and include Websphere Test Environment (WTE); it is able to debug your JSP-Files (imagine!). Good luck, Jürgen Mikkel Bruun [EMAIL PROTECTED] on 14.05.2001 11:09:46 Bitte antworten an [EMAIL PROTECTED] An: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Kopie: (Blindkopie: Jürgen Walter/HV18/Hermes/DE) Thema:VAJ3.5, Tomcat, Struts Hi Guys... Lat night, after reading the article about struts in jdj, i decided to give struts a try... I have earlier implemented model2 frameworks in the same flavor, but not as complete and full as struts!! Congratulations team!! anyway, usually when i develop i use VAJ 3,5 launching tomcat 3.2 internally (Not the tomcat test enviroment). If anyone has tried this combo, you know it rocks and eases development tremendously... However, i couldn't make it run like i wanted it to, apparently i had to put struts.jar in the filesystem, as it wouldn't load from within VAJ... The same happened with my own classes, they also had to be placed in the filesystem before struts could load them... I read your maling-list archives and saw that you have had this thread before, however i wasn't able to find any solution... Have you found any way to solve my problem??? thanks! Mikkel Bruun
SV: Antwort: VAJ3.5, Tomcat, Struts
I just tried...didn't help..even tried putting it in my struts project resources folder...didn't help... A question, if my locale isnt entered in the properties file it would just use the default entry right??? So if there's no da.html.title it would use html.title?? oh well...just gotta keep trying... System.out says (among other stuff) -Oprindelig meddelelse- Fra: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]] Sendt: 14. maj 2001 14:54 Til: [EMAIL PROTECTED] Emne: Re: Antwort: VAJ3.5, Tomcat, Struts Did you try to put ApplicationResources.properties in project_resources\name_of_struts_example_project\org\apache\struts\webapp\ex ample ? (or ..\struts\example if using an old release) HTH Jean-Noel Mikkel Bruun