1.02 to 1.1b2 upgrade problem
I'm sure we're just missing something easy, but here's the problem: We upgraded to 1.1b2 from 1.02 and now that html:form tag doesn't seem to work right, This is what we've got in the source: html:form action=userLogin.do?action=Login method=post this is what's generated: form name=userForm method=post action=/PAMS-PAMS-context-root?action=Login Any ideas why the actual action (just the context root) isn't written into the form action? Thanks! -- Voytek Jarnot Deployable CAMS Senior Systems Analyst - Logtec, Inc. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: user accounts question
Really? I would've thought that since he'll use username as a PK, any joins would be done using the index... -Original Message- From: Ian Vellosa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 11:37 AM To: Struts Users Mailing List Subject: RE: user accounts question However, databases are generally a lot more efficient at joining tables on integer columns than they are with VarChars. So once the user has been looked up in the database once using the VarChar all the joins can be done with the integer IDs easing the load on the database. -Original Message- From: Joe Barefoot [mailto:[EMAIL PROTECTED]] Sent: 27 August 2002 20:23 To: Struts Users Mailing List Subject: RE: user accounts question You may have some other business need for the user_id that I'm not grasping (like you never delete rows, only deactivate them, thus there can be only one active username, but it is not the PK ), but barring that, I see no reason to retain the user_id field at all. If the username is required to be unique, and the row is deleted when the user is deactivated, it serves as a natural primary key. Using sequence numbers like user_id when a natural PK exists is superfluous and potentially confusing to developers who will be using the tables--I found that out rather quickly at my last job. :) peace, Joe -Original Message- From: Dan Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 11:18 AM To: [EMAIL PROTECTED] Subject: user accounts question All, Love using struts and enjoy this informative mailing list. This email is a bit off topic but alas, this is the list I subscribe to and I figure I'll definitely get an informed response, which is what I'm looking for. Designing a database for a client's site. The four tables in question are as follows: mysql describe users; +---+--+--+-++ + | Field | Type | Null | Key | Default| Extra | +---+--+--+-++ + | user_id | int(11) | | PRI | NULL | auto_increment | | username | varchar(20) | | || | | email | varchar(100) | | || | | name | varchar(50) | | || | | authenticated | date | | | -00-00 | | | password | blob | | || | +---+--+--+-++ + mysql describe user_role_xref; +--+-+--+-+-+---+ | Field| Type| Null | Key | Default | Extra | +--+-+--+-+-+---+ | username | varchar(20) | | PRI | | | | role | varchar(50) | | PRI | | | +--+-+--+-+-+---+ mysql describe user_auth_xref; +---+-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | +---+-+--+-+-+---+ | user_id | int(11) | | PRI | 0 | | | auth_code | varchar(20) | | | | | +---+-+--+-+-+---+ mysql describe user_type_xref; +--+-+--+-+-+---+ | Field| Type| Null | Key | Default | Extra | +--+-+--+-+-+---+ | user_id | int(11) | | | 0 | | | user_type_id | int(11) | | | 0 | | +--+-+--+-+-+---+ Here's the question: Should I still use the user_id? Or, since the username will need to be unique anyways, should I use the username as the primary key? If I do, which seems to make sense, then my user_auth_xref and user_type_xref tables might get quite larger in size. Is this really an issue? Especially b/c if I forgo the user_id then things will definitely be a bit easier to code. Anybody run into anything like this? The user_role_xref table requires I use the uesrname instead of the user_id as it's for Tomcat's JDBC realm for user authentication. Thanks. -Dan -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL
RE: Please recommend a IDE
has nobody mentioned jedit? http://www.jedit.org/ -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 8:55 AM To: [EMAIL PROTECTED] Subject: Re: Please recommend a IDE Subject: Re: Please recommend a IDE From: Vic C [EMAIL PROTECTED] === http://www.sys-con.com/java/readerschoice2002/liveupdate.cfm?cat=J2SE Is another list. Netbeans is free and a lot like the next line: I did not like JBuilder and Oracle and Eclipse and Visual Cafe, to big. I like http://www.omnicore.com/htmls/codeguide.html. But Text editors are ok as well, like TextPad, and GVIM (GUI VI for X-Windows). But the tool will make little difference. You should know more than one IDE. It is how you use it. Also, I unit test each layer by itself and hence do not used debug tracing. Vic Sey, Francois wrote: There is another one which is not mentionned on this list: + OptimalJ (http://javacentral.compuware.com/) Francois -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 3:36 PM To: Struts Users Mailing List Subject: Re: Please recommend a IDE There are many good IDEs out there and the selection typically comes down to personal favorite. The following IDEs are all supported by the Struts Console software and thus make Struts development easier: + Borland JBuilder (www.borland.com) + NetBeans (www.netbeans.org) + Oracle JDeveloper (www.oracle.com) + Sun Forte (www.sun.com) Struts Console: http://www.jamesholmes.com/struts/ -james [EMAIL PROTECTED] --- Chiming Huang [EMAIL PROTECTED] wrote: Hi, Can you please recommend a IDE for working on Tomcat 4.0.3 + Struts 1.0.2 + Ant 1.4.1? I am looking into eclipse. But I don't know how to configure it for this purpose. Thanks in advance for you help. Chiming - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts and J2EE
start here: http://java.sun.com/j2ee/overview.html and here: http://java.sun.com/blueprints/enterprise/index.html and especially here: http://www.tuxedo.org/~esr/faqs/smart-questions.html -Original Message- From: Chun Wah Chan [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 9:25 AM To: [EMAIL PROTECTED] Subject: struts and J2EE Hi: I am a newbie to both struts and the whole J2EE platform. I am quite sure that the J2EE has a tomcat container as part of the download. And I am still not quite sure what does the J2EE server do? and how will strut intergrated with it? Can someone here give me a hint? Thanks Herman __ Find, Connect, Date! http://personals.yahoo.ca -- 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: Logic:Iterate:sort, what do you think?
But how in the world would you call that from Struts??? -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 2:13 PM To: 'Struts Users Mailing List' Subject: RE: Logic:Iterate:sort, what do you think? I'd sort it in Flash. Mark -Original Message- From: Michael Marrotte [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 3:05 PM Andrej; I've seen this lightly debated, before - that is, whether or not sorting should be in the Model or the View. I haven't been completely persuaded one way or the other. I suppose there's good reason for both arguments. Does anyone have a strong argument for either view? --Michael Marrotte -- 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: *** URGENT Help needed ****
Just shut up already, no one owes you anything... -Original Message- From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 11:30 AM To: Struts Users Mailing List Subject: RE: *** URGENT Help needed There is a difference between saying you are superior and being worth a damn. You obviously are sucking -- up. My problem with Jim and Mark is they did not bother to read my question. You apparently have not either. At 05:17 PM 5/3/02 +0530, you wrote: suck suck gets better.. -Original Message- From: Etienne, Ingo (Goetzfried AG) [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 5:06 PM To: 'Struts Users Mailing List' Subject: RE: *** URGENT Help needed Applause !!! Really good one :))) -Original Message- From: Reid Tardy [mailto:[EMAIL PROTECTED]] Sent: Freitag, 3. Mai 2002 13:30 To: [EMAIL PROTECTED] Subject: *** URGENT Help needed Dearest Struts Gurus, My name is Reid Tardy. This may be a bit off topic but I need all of you all to drop what you are doing and help me right now. I am trying to modify the Struts example to run on a machine with VB instead of Java. I also want to be able to download gif files into Lotus Notes. I have never used Java before but since I hold an AA in make-up application, an AS in auto mechanics, an AS in massage therapy, a BA in history, an MA in 20th-Century Bulgarian Literature with a minor in sword fighting, a PHD in Political Science from a college somewhere in Newfoundland and numerous continuing ed certificates. I have spent the better part of ten minutes trying to get it to work but it doesn't. My browser don't shows anything ... it don't even show an exception. I haven't bothered to look at the documentation. One last question, do I need some thing like TomCat? What is a TomCat anyway? Could you tell me how to install one if I need it? Please help immediately but not too fast because I am going for beers soon. Many thanks and kind regards, Reid P.S. By the way, James and Mark you both suck more than Micael because you haven't answered my question before I posted it. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- 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] -- 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: Anyone Using Struts with JDeveloper9i and/or BC4J?
Are you using Ant to build? If so, here's an Ant target that will pre-compile your JSPs using the OC4J compiler. If everything compiles correctly, it deletes the files. PRE !-- JSP precompile classpath -- path id=precompile.class.path pathelement location=${oc4j.dir}/j2ee/home/lib/ojsp.jar/ pathelement location=${oc4j.dir}/j2ee/home/crimson.jar/ pathelement location=${oc4j.dir}/j2ee/home/oc4j.jar/ pathelement path=classes/ /path !-- Pre-compile all JSPs using OC4J JSP compiler -- target name=precompile depends=compile delete dir=../jsp_precomp/ mkdir dir=../jsp_precomp/ java classname=oracle.jsp.tools.Jspc fork=yes dir=../jsp failonerror=yes arg line=-verbose -approot ${basedir}/.. -srcdir ../jsp_precomp -d ../jsp_precomp ../jsp/*/ classpath refid=precompile.class.path/ /java /target /PRE -Original Message- From: Otavio C. Decio [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 6:52 AM To: Struts Users Mailing List Subject: Re: Anyone Using Struts with JDeveloper9i and/or BC4J? Hi Steve, We rolled our own data access layer, instead of using BC4J. We are being successful on building a Struts-based application using JDeveloper although we are still unable to have our project compile JSP's with the newer versions of Struts, mainly the Beta1.1. It would be very helpful if you could give us a JDeveloper configuration that compiles. I gave up trying to figure out and we are sticking to the version prior to Beta1. For reasons that I cannot understand, it (JDeveloper) throws an exception and produces a 0-length java file. I suspect that might have something to do with Oracle's xml parser, Struts requires xerces and I don't know if there is any incompatibility. Or I have more JDK's than I should, I need to try to install JDeveloper on a clean machine. Another annoyance (I mean, extremely annoying) is that JDeveloper tries to do a syntax check on the file while editing, and most of the time it shoots the CPU to 100% and sits there for about 10 seconds. Until it comes back you can't do anything, such as for example coding. You type some more and again you need to wait. If you add up the time you lose waiting for it to come back, it will be hours wasted. Other than that, it is a good environment for developing apps for OAS. Regards, Otavio - Original Message - From: Steve Muench [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 11:25 AM Subject: Anyone Using Struts with JDeveloper9i and/or BC4J? With our JDeveloper 9.0.2 release nearly out the door, we are feverishly working on new features for our next release (9.0.3). One of these areas is making JDeveloper9i an even better environment to model, code, debug, profile, build, source-control, and deploy Struts applications that work with relational databases. A sub-part of this theme is making our Business Components for Java (BC4J) J2EE framework even easier to plug-in as the Model layer of a Struts application. I'm interested in (offlist or onlist) feedback in what troubles or triumphs people have had trying to use JDeveloper9i and/or BC4J with Struts so that we can fold that feedback into our next product version to polish any existing rough edges. Thanks. __ Steve Muench - Developer, Product Mgr, Evangelist, Author Simplify J2EE and EJB Development with BC4J http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp -- 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: Problem in Html:options tag
What's the error? -Original Message- From: Sidhartha Jain [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: Problem in Html:options tag Hi I have an options tag which gets a list of values somehwre around 111 in number.But while displaying the page it gives an error and page is not shown.Everything in my code is correct.Just wanted to know is there any restriction on the number of options we can show in select box or is there some other way to make it around. html:select property=family onchange=submitform(P_LoadObjectForm); html:options property=familyList/ /html:select I have GetFamilyList which builds up a list from the table and the SetFamilyList and GetFamily and setFamily methods which works correctly when I select less values. Is there any other way to achieve this. Any help would be appreciated. Thanks Sidhartha Jain -- 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: Problem in Html:options tag
In 1.1b1, I'm using html:optionsCollection without any problems; here's a jsp snippet pre html:select property=statusCode html:optionsCollection name=statusLookup property=statusCollection/ /html:select /pre Where statusLookup is an application scope bean which has a getStatusCollection() method which returns a Collection of org.apache.struts.util.LabelValueBean It all works, am I missing something? -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 1:14 PM To: 'Struts Users Mailing List' Subject: RE: Problem in Html:options tag You have to use the collection property of the options tag - read the tag spec: http://jakarta.apache.org/struts/struts-bean.html but it's not going to work Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]