RE: newbie question
On your form make sure you have html:form action=/login focus=name ... Then define the following forward in your struts-config forward name =login path=/login.do / ... If this does not work, try including your form code so people can help you better. Rick Hightower Director of Development eBlox, Inc. Check out our new website! www.eblox.com Contact Info: eBlox Tucson phone: 520-615-9345 x103 fax: 520-529-5774 Rick's stuff: http://www.eblox.com/people_detail.php?id=52 http://www.geocities.com/rick_m_hightower/ http://www.brainbench.com/transcript.jsp?pid=2351036 -Original Message- From: Debasish Ghosh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 7:08 PM To: [EMAIL PROTECTED] Subject: newbie question Hi all - I am facing a weird problem, which I could not solve in the last couple of hours. I checked up the mail-archive but could not locate any solution to this. The application has a login screen (login.jsp), which validates a user. There is an ActionForm (LoginForm) with appropriate get and set methods. The struts-config.xml looks like : form-beans !-- Logon form bean -- form-bean name=loginForm type=com.anshin.LoginForm/ /form-beans !-- Process a user logon -- actionpath=/login type=com.anshin.LoginAction name=loginForm validate=true input=login.jsp forward name=success path=/login.jsp/ /action When I execute the application (invoke login.jsp), I get a 404 error on the page login.do. I gave debugging statements and I find that the get methods of the ActionForm gets executed, but nothing else happens. It does not even enter the LoginAction class. But from the Tomcat startup messages, I find that the mappings have been identified and loaded by Tomcat. I have struts.jar in WEB-INF/lib. I am really banging my head over this problem. The other applications like struts-example etc. are running fine .. Pls. help. Regards. - Debasish __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: java report article says bye-bye struts (answer to Bill G)
Well said. I agree. Struts has its place and so does EJB. You can not compare them because they are apples and oranges. I've had similar problems with articles from various magazines and Journals, which shall rename nameless. I don't think it is the magazine. It is the author. Which reminds me of a saying.. Everyone has an opinion. Some of them stink! --Rick Hightower Director of Development eBlox Tucson phone: 520-615-9345 x103 fax: 520-529-5774 http://www.eblox.com/people_detail.php?id=52 http://www.geocities.com/rick_m_hightower/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 9:02 AM To: [EMAIL PROTECTED] Subject: RE: java report article says bye-bye struts (answer to Bill G) Two years ago I came across an articlein JDJ comparing Servlets and CORBA and when you would use one vs. the other. I had just finished a project that made extensive use of both with servlets in the front end and CORBA as the middle layer to talk to data access objects that were distributed throughout the network. As such, I felt the article was incredibly amateurish and that attempting to even write an article describing the two technologies as replacements for each other utterly ridiculous. I have not read JDJ since. Now I am finishing another elaborate project using STRUTS in the front end with JNDI to EJB data access objects in the back end and I come across this discussion. I guess I don't need to read JavaWorld either as their authors also seem to demonstrate a basic lack of understanding of the technologies they review. In answer to your question Bill, yes you can use STRUTS to begin your project and no, you won't need to replace it with EJB. STRUTS simply gives you a way to retrieve and present data in a clear, concise way via the web. Your Action classes can do simple two-tier data access via JDBC, or they can do JNDI lookups of EJBs located throughout your network, or they can behave as CORBA clients in a heterogeneous environment. It doesn't matter, it's only up to you. If you feel that you may have a changing environment, I suggest you create client-side data access interfaces that your actions use to access backend data. Then you can use a 2-tier implementation of the interface to start and replace it with an EJB client implementation when your system needs to mature without affecting the UI code that is in the JSPs and Action classes. I hope this is of some help. Don Clasen Oak Grove Software Quoting Hogan, John [EMAIL PROTECTED]: wasn't it nicer under that rock? -Original Message- From: Bill G [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 5:04 PM To: [EMAIL PROTECTED] Subject: RE: java report article says bye-bye struts Hi Craig, Although excellent in dealing with Web-based applications, Struts is not ready to take on EJB. This is a concern of mine as well but as a newbie to this technology, I am wondering how to adopt the Struts framework knowing that I will move to EJB's. Is it worth starting with Struts with the idea of moving to EJB's or what? Any info on this matter is seriously appreciated! Thanks BG... -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 11:14 AM To: '[EMAIL PROTECTED]' Subject: RE: java report article says bye-bye struts On Mon, 18 Jun 2001, Ritter, Steve wrote: Hi Hal, yeah I read the same article and couldn't help but laugh. Prashant really made some outlandish comments and hopefully those comments will diminish any negative impact his article might have on Struts (or, the adoption of Struts I should say). Craig, if you read this thread it might not be a bad idea to send a quick email to the editor's of Java Report and let them know about some of the mis-leading statements. Sounds like their review board needs a little re-org. Looks like I'll have to go buy a copy -- I don't pay a lot of attention to trade magazines in print, because production cycles make them so far out of date. Judging from the many thank-you's I've received for the 1.0 final release, I wouldn't worry to much about negative impact on Struts adoption. :-) --Steve Craig -Original Message- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 7:52 AM To: 'Struts List' Subject: java report article says bye-bye struts Clearly there are too many java magazines and they will publish anything. In the July issue of Java Report there is an article titled Writing a Reusable Implementation of the MVC Design Pattern by Prashant Sarode from Brience. It's interesting because it has a section title of Bye-Bye Struts. The section starts out as follows: While the Struts framework is a powerful idea, it is not yet a product. Although excellent in dealing with Web-based applications, Struts is not ready to take
Another request for struts on orion
I am also having a problem running struts on Orion. I followed the instructions and noticed that the directions to install the sample application on Orion (as written) would not work. First it only mentions copying one xml file not action.xml (it mentions struts_config.xsl). Then it asks you to point the config setting to action.xml without copying it to the web application root. The directions seem to be missing some steps. I tried to improvise and tried to copy all xml (and tag definition files) files from WEB-INF to the web app root of the sample, but I am running out of ideas. I realize that Orion is popular and someone has this running somewhere. And I also realize that this question has been asked for Where is a good place to search for the answers to this question? Is there a way to search this mail archive? (BTW I did get struts to work on weblogic 5.1) --Rick Hightower Software Developer http://www.geocities.com/rick_m_hightower/ -Original Message- From: Shawn Stephens [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 2:42 PM To: [EMAIL PROTECTED] Subject: jndi Hello, Does anyone have the strut examples working with orionserver 1.4.5 or later. If not, does anyone know where I can find more information on how to get this to work. I have implemented the extra procedures required to set up strut with orion. Thanks, Shawn Stephens I get this error when I try to run the app: 4/3/01 4:33 PM defaultWebApp: 1.4.7 Started 4/3/01 4:33 PM strutsExample: database: init 4/3/01 4:33 PM strutsExample: database: Initializing database servlet 4/3/01 4:33 PM strutsExample: database: Loading database from '/WEB-INF/database.xml' 4/3/01 4:33 PM strutsExample: action: init 4/3/01 4:33 PM strutsExample: action: Loading application resources from resource org.apache.struts.example.ApplicationResources 4/3/01 4:33 PM strutsExample: action: Initializing configuration from resource path /WEB-INF/action.xml 4/3/01 4:33 PM strutsExample: action: null java.net.MalformedURLException: unknown protocol: jndi at org.apache.struts.digester.Digester.resolveEntity(Digester.java:581) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit y(DefaultEntityHandler.java:750) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse t(DefaultEntityHandler.java:566) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java :1139) at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc anner.java:2201) at org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner .java:86) at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML DocumentScanner.java:887) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:143) at org.apache.struts.digester.Digester.parse(Digester.java:716) at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.evermind.server.http.HttpApplication.xc(JAX) at com.evermind.server.http.HttpApplication.wu(JAX) at com.evermind.server.http.HttpApplication.w4(JAX) at com.evermind.server.http.HttpApplication.wf(JAX) at com.evermind.server.http.HttpApplication.init(JAX) at com.evermind.server.Application.u2(JAX) at com.evermind.server.http.en.u2(JAX) at com.evermind.server.http.em.nu(JAX) at com.evermind.server.http.eg.s9(JAX) at com.evermind.server.http.eg.dr(JAX) at com.evermind.util.f.run(JAX) 4/3/01 4:33 PM strutsExample: action: Mapping for servlet 'action' = 'null' 4/3/01 4:33 PM strutsExample: 1.4.7 Started