RE: [OT] Sending multipart alternative emails (HTML and text)
Robert, perhaps you may look at: http://jakarta.apache.org/commons/sandbox/email/ there is allready an implemented multipartemail.clazz i used them successfully in my application. they are easy to use, you are *free* from the java-mail-api Cheers, matthias > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: Monday, June 28, 2004 11:21 PM > To: [EMAIL PROTECTED] > Subject: [OT] Sending multipart alternative emails (HTML and text) > > > I've been tasked with sending out emails which contain both > HTML and text. I have successfully implemented this and > tested it in Outlook 2000, 2002, 2003, > Outlook Express and various web email clients (Yahoo, > Hotmail, etc...). > > The problem I have is that some users, get the emails > with a message like the following: > > "This message uses a character set that is not supported by > the Internet Service. To view the original message content, > open the attached message. If the text doesn't display > correctly, save the attachment to disk, and then open it > using a viewer that can display the original character set." > > Googling produced the following semi-helpful result: > http://www.jguru.com/faq/view.jsp?EID=132654 Now, when I create the email message using the JavaMail API, I use something similar to the following: String text = // get text portion of email body String html = // get html portion of email body /* * Create a multipart mime message where * the client setting will determine which * message is rendered. */ MimeMultipart multipart = new MimeMultipart("alternative"); // add text body part MimeBodyPart textBodyPart = new MimeBodyPart(); textBodyPart.setText(text, "US-ASCII"); //char-set for encoding // add HTML body part MimeBodyPart htmlBodyPart = new MimeBodyPart(); htmlBodyPart.setContent(html, "text/html"); multipart.addBodyPart(text); multipart.addBodyPart(html); msg.setContent(multipart); Has anyone run into a simliar issue? It seems to only happen with Outlook 2003 users, but since I cannot reproduce the problem, it's hard for me to solve it. robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting Java Code in JSP to JSTL
I pass an object ThreadBean from an action servlet in a request scope: request.setAttribute( "ThreadBean", threadBean ); In my JSP, there is no problem and everything works well if I use scripting element: <% ThreadBean threadBean = ( ThreadBean )request.getAttribute( "ThreadBean" ); %> I then re-write the above statement to: when I tried to use the properties of the threadBean: if ( threadID_int != threadBean.getThreadID() ) {} I got compilation error "illegal start of expression". Why JSTL does not work? --- Ron Grabowski <[EMAIL PROTECTED]> wrote: > > 1. what is the JSTL equivalent of the <%else {%> > ... > > <%}%> tag? > > The c:choose, c:when, and c:otherwise tags: > > http://tinyurl.com/2kqlz > > > 2. how to write a tag to replace > the > > tag while passing a number of > > parameters? > > You could do this: > > > > > > > > > Click Me > > > Depending on how your Actions are setup you may be > able to do this: > > > Click Me > > > James Mitchell gave this example a few weeks ago: > > > class="java.util.HashMap"/> > > value="${dto.id}"/> > > value="edit"/> > > > > ...later down the page... > > > > > name="myLinkParams"> > > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding DynaActionForms
Hi, I'm a novice as far as usage of tag libraries are concerned. I intend to use DynaActionForm in my application. Would someone explain how this could be used in conjunction with available struts tag library to populate the beans? For simplicity, consider a simple application, which stores User information like name, id and password. How during modification, these tag libraries in combination with DynaActionForm can be used to pre populate my JSP page. The application will read the values from a database. Any pointer on this will be greatly appreciated. Regards, Ashutosh
Re: Converting Java Code in JSP to JSTL
You could use: Click Me Threads: Thanks for all the supports and help that I have received so far on this topic. I have another question about the converstion of Java code: Click Me <%else {%> Threads: <%}%> 1. what is the JSTL equivalent of the <%else {%> ... <%}%> tag? 2. how to write a tag to replace the tag while passing a number of parameters? -Caroline --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > You cannot call static methods with JSTL 1.0. The > simplest option is to > create a JavaBean that you place in some application > scope that wraps > the static method call with a normal JavaBean getter > instance method. > > That being said, if you truly are formatting stuff > then use the JSTL > formatting tags if you can. If you are using JSTL > 1.1 then you can > create a function tag. Another alternative is to use > the "bind" tag in > the Jakarta Taglibs "unstandard" library ... > > All in all, your best bet is probably one of the > first two options (your > own JavaBean or use JSTL fmt library). > > Eric Schneider wrote: > > Can you use the JSTL tags to call static API? > > > > Something like this: > > > > value="StringUtils.abbreviate(${aTopic.subject}, > 30)"/> > > > > Is this possible? > > > > Thanks, > > Eric > > > > On Jun 26, 2004, at 5:48 AM, Pedro Salgado wrote: > > > >> On 04/06/26 1:33, "Michael McGrady" > <[EMAIL PROTECTED]> wrote: > >> > >>> Looks like a test, Caroline! > >>> > >>> At 05:20 PM 6/25/2004, Caroline Jen wrote: > >>> > I was told that JSTL can convert most of the > Java code > in JSP. I still have some problem with > initializing > variables and if statments; for example, I do > not know > how to write in JSTL of the following: > > 1. int i = 0; > >> > >> > >> > 2. i++; > >> > >> > >> > 3. String prevArticle = null; > >> > >> > >> > 4. if ( numberOfPosts - 1 == 1 ) {} > >> > >> > >> > 5. if ( nextTopic != 0 ) > >> > >> > >> > 6. String threadID = String.valueOf( > threadID_int ); > >> > >> > >> > 7. if ( threadRows.size() == 0 ) {} > >> > >> > >> > 8. if ( previousOffset >= 0 || nextOffset >= 0 > ) {} > >> > >> > >> > 9. if ( prevArticle != null ) && ( > !article.equals( > prevArticle ) ) {} > >> > >> > >> The article != preArticle I am not quite sure. > >> > >> Pedro Salgado > >> > >> > >> > - > >> To unsubscribe, e-mail: > [EMAIL PROTECTED] > >> For additional commands, e-mail: > [EMAIL PROTECTED] > >> > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting Java Code in JSP to JSTL
> 1. what is the JSTL equivalent of the <%else {%> ... > <%}%> tag? The c:choose, c:when, and c:otherwise tags: http://tinyurl.com/2kqlz > 2. how to write a tag to replace the > tag while passing a number of > parameters? You could do this: Click Me Depending on how your Actions are setup you may be able to do this: Click Me James Mitchell gave this example a few weeks ago: > > > > > ...later down the page... > > name="myLinkParams"> > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting Java Code in JSP to JSTL
Thanks for all the supports and help that I have received so far on this topic. I have another question about the converstion of Java code: Click Me <%else {%> Threads: <%}%> 1. what is the JSTL equivalent of the <%else {%> ... <%}%> tag? 2. how to write a tag to replace the tag while passing a number of parameters? -Caroline --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > You cannot call static methods with JSTL 1.0. The > simplest option is to > create a JavaBean that you place in some application > scope that wraps > the static method call with a normal JavaBean getter > instance method. > > That being said, if you truly are formatting stuff > then use the JSTL > formatting tags if you can. If you are using JSTL > 1.1 then you can > create a function tag. Another alternative is to use > the "bind" tag in > the Jakarta Taglibs "unstandard" library ... > > All in all, your best bet is probably one of the > first two options (your > own JavaBean or use JSTL fmt library). > > Eric Schneider wrote: > > Can you use the JSTL tags to call static API? > > > > Something like this: > > > > value="StringUtils.abbreviate(${aTopic.subject}, > 30)"/> > > > > Is this possible? > > > > Thanks, > > Eric > > > > On Jun 26, 2004, at 5:48 AM, Pedro Salgado wrote: > > > >> On 04/06/26 1:33, "Michael McGrady" > <[EMAIL PROTECTED]> wrote: > >> > >>> Looks like a test, Caroline! > >>> > >>> At 05:20 PM 6/25/2004, Caroline Jen wrote: > >>> > I was told that JSTL can convert most of the > Java code > in JSP. I still have some problem with > initializing > variables and if statments; for example, I do > not know > how to write in JSTL of the following: > > 1. int i = 0; > >> > >> > >> > 2. i++; > >> > >> > >> > 3. String prevArticle = null; > >> > >> > >> > 4. if ( numberOfPosts - 1 == 1 ) {} > >> > >> > >> > 5. if ( nextTopic != 0 ) > >> > >> > >> > 6. String threadID = String.valueOf( > threadID_int ); > >> > >> > >> > 7. if ( threadRows.size() == 0 ) {} > >> > >> > >> > 8. if ( previousOffset >= 0 || nextOffset >= 0 > ) {} > >> > >> > >> > 9. if ( prevArticle != null ) && ( > !article.equals( > prevArticle ) ) {} > >> > >> > >> The article != preArticle I am not quite sure. > >> > >> Pedro Salgado > >> > >> > >> > - > >> To unsubscribe, e-mail: > [EMAIL PROTECTED] > >> For additional commands, e-mail: > [EMAIL PROTECTED] > >> > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting Java Code in JSP to JSTL
You cannot call static methods with JSTL 1.0. The simplest option is to create a JavaBean that you place in some application scope that wraps the static method call with a normal JavaBean getter instance method. That being said, if you truly are formatting stuff then use the JSTL formatting tags if you can. If you are using JSTL 1.1 then you can create a function tag. Another alternative is to use the "bind" tag in the Jakarta Taglibs "unstandard" library ... All in all, your best bet is probably one of the first two options (your own JavaBean or use JSTL fmt library). Eric Schneider wrote: Can you use the JSTL tags to call static API? Something like this: Is this possible? Thanks, Eric On Jun 26, 2004, at 5:48 AM, Pedro Salgado wrote: On 04/06/26 1:33, "Michael McGrady" <[EMAIL PROTECTED]> wrote: Looks like a test, Caroline! At 05:20 PM 6/25/2004, Caroline Jen wrote: I was told that JSTL can convert most of the Java code in JSP. I still have some problem with initializing variables and if statments; for example, I do not know how to write in JSTL of the following: 1. int i = 0; 2. i++; 3. String prevArticle = null; 4. if ( numberOfPosts - 1 == 1 ) {} 5. if ( nextTopic != 0 ) 6. String threadID = String.valueOf( threadID_int ); 7. if ( threadRows.size() == 0 ) {} 8. if ( previousOffset >= 0 || nextOffset >= 0 ) {} 9. if ( prevArticle != null ) && ( !article.equals( prevArticle ) ) {} The article != preArticle I am not quite sure. Pedro Salgado - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Converting Java Code in JSP to JSTL
Have you looked at the format library for these kinds of situations? Example: -Original Message- From: Eric Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 5:34 PM To: Struts Users Mailing List Subject: Re: Converting Java Code in JSP to JSTL Can you use the JSTL tags to call static API? Something like this: Is this possible? Thanks, Eric On Jun 26, 2004, at 5:48 AM, Pedro Salgado wrote: > On 04/06/26 1:33, "Michael McGrady" <[EMAIL PROTECTED]> wrote: > >> Looks like a test, Caroline! >> >> At 05:20 PM 6/25/2004, Caroline Jen wrote: >>> I was told that JSTL can convert most of the Java code >>> in JSP. I still have some problem with initializing >>> variables and if statments; for example, I do not know >>> how to write in JSTL of the following: >>> >>> 1. int i = 0; > >>> 2. i++; > >>> 3. String prevArticle = null; > >>> 4. if ( numberOfPosts - 1 == 1 ) {} > >>> 5. if ( nextTopic != 0 ) > >>> 6. String threadID = String.valueOf( threadID_int ); > >>> 7. if ( threadRows.size() == 0 ) {} > >>> 8. if ( previousOffset >= 0 || nextOffset >= 0 ) {} > >>> 9. if ( prevArticle != null ) && ( !article.equals( >>> prevArticle ) ) {} > > The article != preArticle I am not quite sure. > > Pedro Salgado > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting Java Code in JSP to JSTL
Can you use the JSTL tags to call static API? Something like this: Is this possible? Thanks, Eric On Jun 26, 2004, at 5:48 AM, Pedro Salgado wrote: On 04/06/26 1:33, "Michael McGrady" <[EMAIL PROTECTED]> wrote: Looks like a test, Caroline! At 05:20 PM 6/25/2004, Caroline Jen wrote: I was told that JSTL can convert most of the Java code in JSP. I still have some problem with initializing variables and if statments; for example, I do not know how to write in JSTL of the following: 1. int i = 0; 2. i++; 3. String prevArticle = null; 4. if ( numberOfPosts - 1 == 1 ) {} 5. if ( nextTopic != 0 ) 6. String threadID = String.valueOf( threadID_int ); 7. if ( threadRows.size() == 0 ) {} 8. if ( previousOffset >= 0 || nextOffset >= 0 ) {} 9. if ( prevArticle != null ) && ( !article.equals( prevArticle ) ) {} The article != preArticle I am not quite sure. Pedro Salgado - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Sending multipart alternative emails (HTML and text)
I've been tasked with sending out emails which contain both HTML and text. I have successfully implemented this and tested it in Outlook 2000, 2002, 2003, Outlook Express and various web email clients (Yahoo, Hotmail, etc...). The problem I have is that some users, get the emails with a message like the following: "This message uses a character set that is not supported by the Internet Service. To view the original message content, open the attached message. If the text doesn't display correctly, save the attachment to disk, and then open it using a viewer that can display the original character set." Googling produced the following semi-helpful result: http://www.jguru.com/faq/view.jsp?EID=132654 Now, when I create the email message using the JavaMail API, I use something similar to the following: String text = // get text portion of email body String html = // get html portion of email body /* * Create a multipart mime message where * the client setting will determine which * message is rendered. */ MimeMultipart multipart = new MimeMultipart("alternative"); // add text body part MimeBodyPart textBodyPart = new MimeBodyPart(); textBodyPart.setText(text, "US-ASCII"); //char-set for encoding // add HTML body part MimeBodyPart htmlBodyPart = new MimeBodyPart(); htmlBodyPart.setContent(html, "text/html"); multipart.addBodyPart(text); multipart.addBodyPart(html); msg.setContent(multipart); Has anyone run into a simliar issue? It seems to only happen with Outlook 2003 users, but since I cannot reproduce the problem, it's hard for me to solve it. robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone using JBuilder X with Tiles and the Struts Nightly?
I hate IDEs. Really I do. My struts app launches fine under JB8. Under JBX, it cannot make it out of Servlet.init(). Of note is that it gets through init() if I remove the tiles Plugin from Struts-Config. (FWIW, changing the IDE also changed Tomcat 4.1.12LE to 4.1.27LE) Anyone fought this particular battle already? -Joe javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:963) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3421) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeplo yer.java:700) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2 52) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1720) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667) at org.apache.crimson.parser.Parser2.parse(Parser2.java:337) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:385) at org.apache.catalina.core.StandardHost.install(StandardHost.java:803) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java :442) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:399) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35 8) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NPE iterating over form error messages
Oops. Figured it out. I was putting a string literal in the ActionError constructor instead of message resource references. Sorry for the noise. Thanks, Eric On Jun 28, 2004, at 2:00 PM, Eric Schneider wrote: Hi, I'm getting a error that I'm a bit confused about. I believe I'm doing everything properly. A NullPointerException is thrown (trace pasted below) when using the tag. Here's what I've done step by step. In my form bean, I have a validate method that creates a list of ActionErrors. ActionErrors errors = new ActionErrors(); if (StringUtils.isEmpty(getSubject())) { errors.add("subject", new ActionError("Please provide a valid subject.")); } if (StringUtils.isEmpty(getDescription())) { errors.add("description", new ActionError("Please provide a valid message description.")); } I call this validate method in my action class: errors = topicForm.validate(mapping, request); if (!errors.isEmpty()) { saveErrors(request, errors); saveToken(request); return (new ActionForward(mapping.getInput())); } On my jsp I'm using the following tags to present the errors: The following errors have occured. It appears that the tag is what makes it blow up. Anyone have any ideas? Thanks, eric java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:393) at org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl. java:234) at org.apache.struts.taglib.html.MessagesTag.doAfterBody(MessagesTag.java: 312) at org.apache.jsp.PostTopic_jsp._jspService(PostTopic_jsp.java:180) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat cher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis patcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa tcher.java:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.ja va:1069) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestPro cessor.java:274) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestP rocessor.java:455) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tile sRequestProcessor.java:320) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java :279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic ationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurit yMgrRealm.java:220) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j ava:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:641) at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(Containe rStatsValve.java:76) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invokeNext(StandardPipeline.java:643) at org.apache.catalina.valv
NPE iterating over form error messages
Hi, I'm getting a error that I'm a bit confused about. I believe I'm doing everything properly. A NullPointerException is thrown (trace pasted below) when using the tag. Here's what I've done step by step. In my form bean, I have a validate method that creates a list of ActionErrors. ActionErrors errors = new ActionErrors(); if (StringUtils.isEmpty(getSubject())) { errors.add("subject", new ActionError("Please provide a valid subject.")); } if (StringUtils.isEmpty(getDescription())) { errors.add("description", new ActionError("Please provide a valid message description.")); } I call this validate method in my action class: errors = topicForm.validate(mapping, request); if (!errors.isEmpty()) { saveErrors(request, errors); saveToken(request); return (new ActionForward(mapping.getInput())); } On my jsp I'm using the following tags to present the errors: The following errors have occured. It appears that the tag is what makes it blow up. Anyone have any ideas? Thanks, eric java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:393) at org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.j ava:234) at org.apache.struts.taglib.html.MessagesTag.doAfterBody(MessagesTag.java: 312) at org.apache.jsp.PostTopic_jsp._jspService(PostTopic_jsp.java:180) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav a:1069) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc essor.java:274) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr ocessor.java:455) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles RequestProcessor.java:320) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurity MgrRealm.java:220) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(Container StatsValve.java:76) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.Erro
Video Clip
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Video Clip
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: image submit and lookupDispatchAction - drives me struts
This may help: http://issues.apache.org/bugzilla/show_bug.cgi?id=19925 robert > -Original Message- > From: Axel Groß [mailto:[EMAIL PROTECTED] > Sent: Monday, June 28, 2004 11:52 AM > To: Struts Users Mailing List > Subject: Re: image submit and lookupDispatchAction - drives me struts > > > Hi Wendy thanks for the reply and the link! > > But unfortunately i can't see how to implement those solutions to my > problem (which I didn't describe elaborate enought) > > My button names are of dynamic nature like > DELETE_PROPERTY 'firstname' > (here firstname is the key of the property to delete) > so I can't use it for populating a bean. Or would using DynaBeans > help in this case? I don't know, in which class the html requests are > ~transformed to beans, so I'm not sure how it is handled. > > I rely would like to get rid of that horrible names. > > Javascript isn't feasible for this project. > I suppose html 4.0 buttons could solve the problem, I'll try that. But > relying on html 4.0 also doesn't sound too good. :( > > thanks again, > Axel > > On 2004-06-25 at 09:12:07 -0700, Wendy Smoak wrote: > > > From: Axel Groß [mailto:[EMAIL PROTECTED] > > > so the html:submit buttons do work, but neither of the > > > html:image buttons > > > pass the parameter on and i get a null reference for > > > request.getParameter(parameter); > > > (with parameter.equals("action")) > > > the resulting error message is: > > > Request[/action/lookupDispatch] does not contain handler > > > parameter named action > > > anybody knows what could help? > > > > http://www.google.com/search?q=struts+image+button > > > > First hit: > > http://www.jguru.com/faq/view.jsp?EID=893423 > > which discusses the use of the ImageButtonBean class. > > > > Or, my preferred solution is a bit of onClick JavaScript to set the form property > > and submit the form. This only works > in situations where where you can require that JavaScript be enabled. > > > > -- > > Wendy Smoak > > Application Systems Analyst, Sr. > > ASU IA Information Resources Management > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: image submit and lookupDispatchAction - drives me struts
Hi Wendy thanks for the reply and the link! But unfortunately i can't see how to implement those solutions to my problem (which I didn't describe elaborate enought) My button names are of dynamic nature like DELETE_PROPERTY 'firstname' (here firstname is the key of the property to delete) so I can't use it for populating a bean. Or would using DynaBeans help in this case? I don't know, in which class the html requests are ~transformed to beans, so I'm not sure how it is handled. I rely would like to get rid of that horrible names. Javascript isn't feasible for this project. I suppose html 4.0 buttons could solve the problem, I'll try that. But relying on html 4.0 also doesn't sound too good. :( thanks again, Axel On 2004-06-25 at 09:12:07 -0700, Wendy Smoak wrote: > > From: Axel Groß [mailto:[EMAIL PROTECTED] > > so the html:submit buttons do work, but neither of the > > html:image buttons > > pass the parameter on and i get a null reference for > > request.getParameter(parameter); > > (with parameter.equals("action")) > > the resulting error message is: > > Request[/action/lookupDispatch] does not contain handler > > parameter named action > > anybody knows what could help? > > http://www.google.com/search?q=struts+image+button > > First hit: > http://www.jguru.com/faq/view.jsp?EID=893423 > which discusses the use of the ImageButtonBean class. > > Or, my preferred solution is a bit of onClick JavaScript to set the form property > and submit the form. This only works in situations where where you can require that > JavaScript be enabled. > > -- > Wendy Smoak > Application Systems Analyst, Sr. > ASU IA Information Resources Management > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Anatomy of a long URL
Well, even though they may not include your client session, it does include information about you (username) and other stuff, that will identify who's downloading what. For many application servers, long URLs usually are part of the identification process, like session id and stuff. For many java appservers, you will see the JSESSIONID string in your url, more so if you don't have cookies enabled. Usually long strings are information used to follow the state of a session. For big sites like amazon, the url allows the servers to handle the big catalog and navigation. Greetings, -- Guillermo Castro [EMAIL PROTECTED] Monterrey NL, Mexico http://www.javageek.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Anatomy of a long URL
Daniel, thanks for the reply. You pretty much confirmed my own assumptions. robert > -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > Sent: Monday, June 28, 2004 10:58 AM > To: Struts Users Mailing List > Subject: RE: [OT] Anatomy of a long URL > > > I dont think there is any information out there of the type you're > requesting (it's not really a 'pattern'). > > Long URLs are long because there is a lot of information to transfer. > > The big long codes given in urls are often are often hashes (eg session > id!). These are made long so that it's hard to randomly enter a code and > guess a correct one. > > There's no reason to use long urls unless you have a reason! There are often > security reasons (eg hashes/tokens), where you dont want people to be able > to fiddle with the link. take a bank for example - you dont want to > encourace hacking by putting: > viewtransaction.do?transactionId=18374 > (of course i'm assuming that any actions such as these would check that you > own the transaction using session info!!!) > instead do somthing like viewtransaction.do?massive_code_here > and it instantly puts people off changing stuff. > > As for suns example, i think sun counts you downloading stuff like J2EE SDK > as 'purchasing' it. I think part of the reason for that link is to try and > stop anyone from downloading the file and "stealing" it! > > Also bear in mind that places such as sun, amazon, etc have massive sites, > with many servers and an immense amount of information. They need to be > able to track you, accross the site. Some sites try and do this using big > codes that only the server understands, others tend to use nested > directories, eg: > http://news.bbc.co.uk/1/hi/world/middle_east/3845517.stm > > Daniel. > > > -Original Message- > > From: Robert Taylor [mailto:[EMAIL PROTECTED] > > Sent: 28 June 2004 14:51 > > To: [EMAIL PROTECTED] > > Subject: [OT] Anatomy of a long URL > > > > > > I'm not sure the subject of this email is indicative of my > > question, but I have always wondered why amazon, sun, and some financial > > institutions, > > use long URL's for invoking actions. My only guess, since I've > > only worked at small companies where all the applications pretty much > > run on > > one machine, is that the URL contains either encoded/sensitive > > information or contains session information. I'm just wondering why > > the heck does > > it look so darn complex. > > > > For example, I just downloaded Sun's J2EE 1.4 SDK > > > > http://192.18.97.53/ECom/EComTicketServlet/BEGINjsecom16c.sun.com- > 9660%3A40e01d9a%3A3099733a3e651ac9/-2147483648/428874567/1/483962/ > 483914/428874567/2ts+/westCoastFSEND/j2eesdk-1.4_01-oth-JPR/j2eesdk-1.4_01-o > th-JPR:1/j2eesdk-1_4_01-windows.exe > > > after the "/-" then there appears to be some random numbers delimited by > forward slashes. > Is this some technique for sharing sessions across different applications? > > My apologies if this is one of those things that "everone" know's about > except me. > I really wasnn't sure how to google on this topic either, so if there is > some general > documentation I missed, please point me to it. > > > robert > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Source for Jakarta JSTL 1.0.2
Can't you check it out from apache CVS ? tag for 1.0.2 is "standard-102" > I'm looking for the source distribution for the Jakarta Standard taglib > v1.0.2. I am unable to find it archived on the Jakarta website. Can > anyone point me to a copy? > > Thanks, > > Derek Richardson > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Our name has changed. Please update your address book to the following format: "[EMAIL PROTECTED]". This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts on WAS 5.1??
If you create EAR file with J2EE 1.2 (servlet 2.2) support level, and deploy that on to WAS 5.1, you will get these errors. Try creating EAR file with J2EE 1.3 level and deploy that on WAS 5.1. I did the same and got rid of the error. Reddy Pingili > -Original Message- > From: Smith, Johnathan M. [SMTP:[EMAIL PROTECTED] > Sent: Monday, June 28, 2004 11:16 AM > To: 'Struts Users Mailing List' > Subject: Struts on WAS 5.1?? > > I can getting the following error with Struts using WAS 5.1 can anyone > help?? I am using DB2 > > java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 > servlet > > > Please do not transmit orders or instructions regarding a UBS account by > email. The information provided in this email or any attachments is not an > official transaction confirmation or account statement. For your > protection, > do not include account numbers, Social Security numbers, credit card > numbers, passwords or other non-public information in your email. Because > the information contained in this message may be privileged, confidential, > proprietary or otherwise protected from disclosure, please notify us > immediately by replying to this message and deleting it from your computer > if you have received this communication in error. Thank you. > > UBS Financial Services Inc. > UBS International Inc. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: Source for Jakarta JSTL 1.0.2
Hi, you can use the following mirror ftp://sunsite.cnlab-switch.ch/mirror/apache/dist/jakarta/taglibs/standar d-1.0/source/ BR /Amleto -Messaggio originale- Da: Derek Richardson [mailto:[EMAIL PROTECTED] Inviato: lunedì 28 giugno 2004 17.13 A: Struts Users Mailing List Oggetto: OT: Source for Jakarta JSTL 1.0.2 I'm looking for the source distribution for the Jakarta Standard taglib v1.0.2. I am unable to find it archived on the Jakarta website. Can anyone point me to a copy? Thanks, Derek Richardson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts on WAS 5.1??
I can getting the following error with Struts using WAS 5.1 can anyone help?? I am using DB2 java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 servlet Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT: Source for Jakarta JSTL 1.0.2
I'm looking for the source distribution for the Jakarta Standard taglib v1.0.2. I am unable to find it archived on the Jakarta website. Can anyone point me to a copy? Thanks, Derek Richardson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Anatomy of a long URL
I know that the sun link does not authenticate your current client session. I know that because I wanted to download the JDK for linux. I wanted to download it directly to the server but they have that stupid web page based download. I got the whole url, ssh'd into my server and used wget to download it in 3 minutes rather than in an hour on my dsl connection and then have to send it to my server. I think someone in sun just wanted to create something fancy regardless of what the customers wanted just so he/she could put it on their cv. I hate these long urls, they wrap right arround a ssh session and are very unfriendly for people working with consoles. --b Daniel Perry wrote: I dont think there is any information out there of the type you're requesting (it's not really a 'pattern'). Long URLs are long because there is a lot of information to transfer. The big long codes given in urls are often are often hashes (eg session id!). These are made long so that it's hard to randomly enter a code and guess a correct one. There's no reason to use long urls unless you have a reason! There are often security reasons (eg hashes/tokens), where you dont want people to be able to fiddle with the link. take a bank for example - you dont want to encourace hacking by putting: viewtransaction.do?transactionId=18374 (of course i'm assuming that any actions such as these would check that you own the transaction using session info!!!) instead do somthing like viewtransaction.do?massive_code_here and it instantly puts people off changing stuff. As for suns example, i think sun counts you downloading stuff like J2EE SDK as 'purchasing' it. I think part of the reason for that link is to try and stop anyone from downloading the file and "stealing" it! Also bear in mind that places such as sun, amazon, etc have massive sites, with many servers and an immense amount of information. They need to be able to track you, accross the site. Some sites try and do this using big codes that only the server understands, others tend to use nested directories, eg: http://news.bbc.co.uk/1/hi/world/middle_east/3845517.stm Daniel. -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: 28 June 2004 14:51 To: [EMAIL PROTECTED] Subject: [OT] Anatomy of a long URL I'm not sure the subject of this email is indicative of my question, but I have always wondered why amazon, sun, and some financial institutions, use long URL's for invoking actions. My only guess, since I've only worked at small companies where all the applications pretty much run on one machine, is that the URL contains either encoded/sensitive information or contains session information. I'm just wondering why the heck does it look so darn complex. For example, I just downloaded Sun's J2EE 1.4 SDK http://192.18.97.53/ECom/EComTicketServlet/BEGINjsecom16c.sun.com- 9660%3A40e01d9a%3A3099733a3e651ac9/-2147483648/428874567/1/483962/ 483914/428874567/2ts+/westCoastFSEND/j2eesdk-1.4_01-oth-JPR/j2eesdk-1.4_01-o th-JPR:1/j2eesdk-1_4_01-windows.exe after the "/-" then there appears to be some random numbers delimited by forward slashes. Is this some technique for sharing sessions across different applications? My apologies if this is one of those things that "everone" know's about except me. I really wasnn't sure how to google on this topic either, so if there is some general documentation I missed, please point me to it. robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Anatomy of a long URL
I dont think there is any information out there of the type you're requesting (it's not really a 'pattern'). Long URLs are long because there is a lot of information to transfer. The big long codes given in urls are often are often hashes (eg session id!). These are made long so that it's hard to randomly enter a code and guess a correct one. There's no reason to use long urls unless you have a reason! There are often security reasons (eg hashes/tokens), where you dont want people to be able to fiddle with the link. take a bank for example - you dont want to encourace hacking by putting: viewtransaction.do?transactionId=18374 (of course i'm assuming that any actions such as these would check that you own the transaction using session info!!!) instead do somthing like viewtransaction.do?massive_code_here and it instantly puts people off changing stuff. As for suns example, i think sun counts you downloading stuff like J2EE SDK as 'purchasing' it. I think part of the reason for that link is to try and stop anyone from downloading the file and "stealing" it! Also bear in mind that places such as sun, amazon, etc have massive sites, with many servers and an immense amount of information. They need to be able to track you, accross the site. Some sites try and do this using big codes that only the server understands, others tend to use nested directories, eg: http://news.bbc.co.uk/1/hi/world/middle_east/3845517.stm Daniel. > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: 28 June 2004 14:51 > To: [EMAIL PROTECTED] > Subject: [OT] Anatomy of a long URL > > > I'm not sure the subject of this email is indicative of my > question, but I have always wondered why amazon, sun, and some financial > institutions, > use long URL's for invoking actions. My only guess, since I've > only worked at small companies where all the applications pretty much > run on > one machine, is that the URL contains either encoded/sensitive > information or contains session information. I'm just wondering why > the heck does > it look so darn complex. > > For example, I just downloaded Sun's J2EE 1.4 SDK > > http://192.18.97.53/ECom/EComTicketServlet/BEGINjsecom16c.sun.com- 9660%3A40e01d9a%3A3099733a3e651ac9/-2147483648/428874567/1/483962/ 483914/428874567/2ts+/westCoastFSEND/j2eesdk-1.4_01-oth-JPR/j2eesdk-1.4_01-o th-JPR:1/j2eesdk-1_4_01-windows.exe after the "/-" then there appears to be some random numbers delimited by forward slashes. Is this some technique for sharing sessions across different applications? My apologies if this is one of those things that "everone" know's about except me. I really wasnn't sure how to google on this topic either, so if there is some general documentation I missed, please point me to it. robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple submit buttons/one form
Try: http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript At 03:19 AM 6/28/2004, Axel Groß wrote: just don't forget to keep the messages unique per form had once delete property and delete main entries in one form, so the message shouldn't be 'delete' for both of them... ciao, Axel On 2004-06-28 at 14:56:32 +1200, [EMAIL PROTECTED] wrote: > There is a nice solution described here > > http://husted.com/struts/tips/003.html > > using the LookupDispatchAction action. > > Cheers, Martin > > > > Eric Schneider <[EMAIL PROTECTED]> > 28/06/2004 14:47 > Please respond to > "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > To > "Struts Users Mailing List" <[EMAIL PROTECTED]> > cc > > Subject > multiple submit buttons/one form > > > > > > > Hi, > > What is best approach using Struts for a forms that have multiple > submit buttons. Is it possible to bind actions to submit buttons > instead of forms? Ideally, I'd like each submit button to execute > different actions. > > Looking at the docs, a solution hasn't jumped out at me. This is > something that must be common, no? > > Thanks, > Eric > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to populate fields in a form with data retrieved from a database table...
At 1:36 PM +0100 6/28/04, Research labs wrote: //***Please note that I am using DispatchAction not Action*** Please tell me how to populate fields in a form with data retrieved from a database table. Please note that I am particular about how to do this using Struts tags etc. Are you saying that you want to show a user a form with data pre-filled based on the database data? The way to do this is to have an instance of a form bean in the action before you forward to the view, populate its values, and put it in the request or session under the attribute name where the html:form tag looks for it. In a formal sense, Struts doesn't make this very easy, because the API for requesting an instance of a form bean is not quite engineered for it. However, if you just want it to work, you could simply instantiate your own form bean using a constructor and then put it into scope. (More on the "right way" to do this--one which also supports DynaForms-- in a moment.) The attribute name is the same name you give the form bean in the action mapping and form-bean configurations in the struts-config.xml file, and of course, you should use the same scope that you use in your action-mapping. That is, for something like this: in your action, you would do: MyActionForm viewForm = new MyActionForm(); // populate bean here... request.setAttribute("updatePublicationDetailsForm", viewForm); If you need a DynaForm, then you need Struts to give it to you, because there's no simple constructor. Depending on the version of Struts you're using, there are one or two static methods in org.apache.struts.util.RequestUtils called "createActionForm(...)" If you look at the JavaDoc for RequestUtils and Action, you should be able to "chart a path" by which you can use the Action to get the objects you need to pass in as parameters to createActionForm(...) Once you get the form bean, you'd do the same -- populate its properties and put it in request or session scope. Of course, if you happen to be using session-scoped forms, you may find that the ActionForm which is passed into your execute method is the same type that you want in the next view, in which case you can set properties and even take it for granted that it's already in session scope. There are various ideas about making this more straightforward in the future which have been discussed thoroughly on both the dev and user lists, but hopefully this addresses your immediate needs. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm in the wrong place." - Carlos Santana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Anatomy of a long URL
Not if it's a POST. Example, we had a page that allowed you to modify multiple items at once in a list and submit them via a GET. This worked fine in testing. As customers started to use the app, their list of items got very large and the data submitted got much larger-- a much longer URL being submitted. But, it stopped working for some customers. After some investigation, we realized the we couldn't use a GET because the URL was too long. Changing to a post fixed it. I believe the max length is 256. GET: /app/updateItems.do?0di=2,4,92,10&1di=4,23,45,12&usr01=432,43,22,4 POST: /app/updateItems.do (all the data isn't encrypted in the URL) -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 9:11 AM To: Struts Users Mailing List Subject: Re: [OT] Anatomy of a long URL Hookom, Jacob wrote: > Another example is JSF. JSF allows you to store your state client side or > server side. If it's client side, your buttons, etc become POSTs instead of > GETs in order to get around the URL length limit. Also, hidden fields are > written out with your objects serialized into a string that you repost next > time you click a link on the page. I thought there was a limit to how large URLs can be (maybe that's a server limitation though?).. wouldn't the above potentially cause problems? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Anatomy of a long URL
Hookom, Jacob wrote: Another example is JSF. JSF allows you to store your state client side or server side. If it's client side, your buttons, etc become POSTs instead of GETs in order to get around the URL length limit. Also, hidden fields are written out with your objects serialized into a string that you repost next time you click a link on the page. I thought there was a limit to how large URLs can be (maybe that's a server limitation though?).. wouldn't the above potentially cause problems? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Anatomy of a long URL
Thanks Jacob, are there any articles, books, use cases, etc... on when/why/how you would have to design an application in this manner? robert > -Original Message- > From: Hookom, Jacob [mailto:[EMAIL PROTECTED] > Sent: Monday, June 28, 2004 10:06 AM > To: 'Struts Users Mailing List' > Subject: RE: [OT] Anatomy of a long URL > > > It all kind of depends... most of the content is pregenerated such as in > Amazon. Amazon uses what is called the ART1 algorithm to categorize users. > These categories (java geek, linux guru, etc) are pre-generated web sites, > created by some application they have in house (hence the cryptic url). > > So when you click around, you are interacting with a page that was > generated, along with all of the links. Think of the extra garble as your > session state that gets stored in the page you download to your computer vs. > being stored in memory on the server. > > Another example is JSF. JSF allows you to store your state client side or > server side. If it's client side, your buttons, etc become POSTs instead of > GETs in order to get around the URL length limit. Also, hidden fields are > written out with your objects serialized into a string that you repost next > time you click a link on the page. > > > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: Monday, June 28, 2004 8:51 AM > To: [EMAIL PROTECTED] > Subject: [OT] Anatomy of a long URL > > I'm not sure the subject of this email is indicative of my question, but I > have always wondered why amazon, sun, and some financial > institutions, > use long URL's for invoking actions. My only guess, since I've only worked > at small companies where all the applications pretty much > run on > one machine, is that the URL contains either encoded/sensitive information > or contains session information. I'm just wondering why > the heck does > it look so darn complex. > > For example, I just downloaded Sun's J2EE 1.4 SDK > > http://192.18.97.53/ECom/EComTicketServlet/BEGINjsecom16c.sun.com-9660%3A40e > 01d9a%3A3099733a3e651ac9/-2147483648/428874567/1/483962/ > 483914/428874567/2ts+/westCoastFSEND/j2eesdk-1.4_01-oth-JPR/j2eesdk-1.4_01-o > th-JPR:1/j2eesdk-1_4_01-windows.exe > > > after the "/-" then there appears to be some random numbers delimited by > forward slashes. > Is this some technique for sharing sessions across different applications? > > My apologies if this is one of those things that "everone" know's about > except me. > I really wasnn't sure how to google on this topic either, so if there is > some general > documentation I missed, please point me to it. > > > robert > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Anatomy of a long URL
It all kind of depends... most of the content is pregenerated such as in Amazon. Amazon uses what is called the ART1 algorithm to categorize users. These categories (java geek, linux guru, etc) are pre-generated web sites, created by some application they have in house (hence the cryptic url). So when you click around, you are interacting with a page that was generated, along with all of the links. Think of the extra garble as your session state that gets stored in the page you download to your computer vs. being stored in memory on the server. Another example is JSF. JSF allows you to store your state client side or server side. If it's client side, your buttons, etc become POSTs instead of GETs in order to get around the URL length limit. Also, hidden fields are written out with your objects serialized into a string that you repost next time you click a link on the page. -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 8:51 AM To: [EMAIL PROTECTED] Subject: [OT] Anatomy of a long URL I'm not sure the subject of this email is indicative of my question, but I have always wondered why amazon, sun, and some financial institutions, use long URL's for invoking actions. My only guess, since I've only worked at small companies where all the applications pretty much run on one machine, is that the URL contains either encoded/sensitive information or contains session information. I'm just wondering why the heck does it look so darn complex. For example, I just downloaded Sun's J2EE 1.4 SDK http://192.18.97.53/ECom/EComTicketServlet/BEGINjsecom16c.sun.com-9660%3A40e 01d9a%3A3099733a3e651ac9/-2147483648/428874567/1/483962/ 483914/428874567/2ts+/westCoastFSEND/j2eesdk-1.4_01-oth-JPR/j2eesdk-1.4_01-o th-JPR:1/j2eesdk-1_4_01-windows.exe after the "/-" then there appears to be some random numbers delimited by forward slashes. Is this some technique for sharing sessions across different applications? My apologies if this is one of those things that "everone" know's about except me. I really wasnn't sure how to google on this topic either, so if there is some general documentation I missed, please point me to it. robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Anatomy of a long URL
I'm not sure the subject of this email is indicative of my question, but I have always wondered why amazon, sun, and some financial institutions, use long URL's for invoking actions. My only guess, since I've only worked at small companies where all the applications pretty much run on one machine, is that the URL contains either encoded/sensitive information or contains session information. I'm just wondering why the heck does it look so darn complex. For example, I just downloaded Sun's J2EE 1.4 SDK http://192.18.97.53/ECom/EComTicketServlet/BEGINjsecom16c.sun.com-9660%3A40e01d9a%3A3099733a3e651ac9/-2147483648/428874567/1/483962/ 483914/428874567/2ts+/westCoastFSEND/j2eesdk-1.4_01-oth-JPR/j2eesdk-1.4_01-oth-JPR:1/j2eesdk-1_4_01-windows.exe after the "/-" then there appears to be some random numbers delimited by forward slashes. Is this some technique for sharing sessions across different applications? My apologies if this is one of those things that "everone" know's about except me. I really wasnn't sure how to google on this topic either, so if there is some general documentation I missed, please point me to it. robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using set-property in forward tag
Then just add it on to the ActionForward returned from the Action ... You can use the following method to do this: protected ActionForward appendParam( String name, String value, ActionForward forward) { StringBuffer path = new StringBuffer(forward.getPath()); boolean isQuery = (path.indexOf("?") >= 0); if (isQuery) path.append("&"); else path.append('?'); path.append(name); path.append('='); path.append(value); return new ActionForward(path.toString(), forward.getRedirect()); } If you place this method in a BaseAction, then you can call this in your ActionB's execute method ... public ActionForward execute(...) { // stuff here ActionForward forward = mapping.findForward("success"); forward = appendParam("foo","bar",forward); return forward; } Does that help? Bill Siggelkow nikhil walvekar wrote: Hi, But my value will be dynamic in nature. Nikhil --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > Hi Nikhil, It sounds like what you really want to do is set add a request parameter name-value pair to the query string of the URL. If so, then you can add these values directly in the definition of the foward and still set redirect = "true" ... The example below passes two parameters to ActionA -- foo=bar, and baz=blob -- note the use of & to avoid XML confusion. The element is used to set a property on the ForwardConfig object. Typically you only need to do this if you are providing a custom implementation of the ActionForward object. nikhil walvekar wrote: Hi, all forward element is defined as following description?, set-property*)> actualy i want to pass some values to forward but with redirect true. e.g.Action A expects one parameter.. I want to forward to action A from action B but with redirect true option. due to redirect=true i can not set required property from action B in request and try to read in action A. Forward tag can have sub elements one of which is set-property. Please help me, how can i use set-property in forward tag. Nikhil. Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Nikhil Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there anyway an Action can dynamically return to a page based on input?
No if you are creating a new ActionForward object you can do without puting it in struts-config.xml Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com [EMAIL PROTECTED] 06/28/2004 06:23 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc Subject RE: Is there anyway an Action can dynamically return to a page based on input? But I guess there should be an entry in Struts config for that path . Biswajit Basak Tata Consultancy Services Plot B-1, Block EP & GP Sector - V, Salt Lake Electronics Complex Kolkata - 700 091,West Bengal India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com [EMAIL PROTECTED] 06/28/2004 05:30 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject RE: Is there anyway an Action can dynamically return to a page based on input? I guess you can try instantiting a new ActionForward object with the path where you want to go to. new ActionForward(); Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Guillermo Meyer" <[EMAIL PROTECTED]> 06/28/2004 07:52 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc Subject RE: Is there anyway an Action can dynamically return to a page based on input? You are needing something like a "navigation stack", doesn't you? If so, let me know. We are working in an open source non intrusive struts solution of a navigation stack. Cheers. Guillermo. -Original Message- From: Pietro Dansk [mailto:[EMAIL PROTECTED] Sent: Viernes, 25 de Junio de 2004 05:54 p.m. To: Struts Users Mailing List Subject: Is there anyway an Action can dynamically return to a page based on input? I have a form which appears on multiple pages. The form leads to an action which changes a simple property. After doing this, I want the action to simply lead back to the individual page from which it came. I can't register a single "input" within the action tag of the struts-config.xml file (because there are multiple actions from which it could possibly come). Therefore, it doesn't seem like I can use the mapping.findInputForward() method. I want this form to simply return to the page or action that it was previously at. What is the most elegant way to do this? --Pietro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NTE2EE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NTAD3A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NTE352 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using set-property in forward tag
Hi, But my value will be dynamic in nature. Nikhil --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > Hi Nikhil, >It sounds like what you really want to do is set > add a request > parameter name-value pair to the query string of the > URL. If so, then > you can add these values directly in the definition > of the foward and > still set redirect = "true" ... The example below > passes two parameters > to ActionA -- foo=bar, and baz=blob -- note the use > of & to avoid > XML confusion. > > type="com.foo.MyAction"> > path="/ActionA.do?foo=bar&baz=blob"/> > > > The element is used to set a property > on the > ForwardConfig object. Typically you only need to do > this if you are > providing a custom implementation of the > ActionForward object. > > nikhil walvekar wrote: > > Hi, all > > > > forward element is defined as following > > > > description?, > > set-property*)> > > > > actualy i want to pass some values to forward but > with > > redirect true. > > > > e.g.Action A expects one parameter.. > > > > I want to forward to action A from action B but > with > > redirect true option. due to redirect=true i can > not > > set required property from action B in request and > try > > to read in action A. > > > > Forward tag can have sub elements one of which is > > set-property. > > > > Please help me, how can i use set-property in > forward > > tag. > > > > Nikhil. > > > > > > > > > Yahoo! India Matrimony: Find your partner online. > http://yahoo.shaadi.com/india-matrimony/ > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > = Nikhil Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to populate fields in a form with data retrieved from a database table...
Dear Mr Labs: Perhaps you do a little more "research"? Seriously, I am not sure what problem you are having. I suggest you use the classic DAO (data access object) pattern to encapsulate your database access. Have the DAO return a Customer business object. You can then populate your CustomerForm using straight setters ... customerForm.setName(customer.getName()); or you could use the BeanUtils.copyProperties() BeanUtils.copyProperties(customer, customerForm); Research labs wrote: //***Please note that I am using DispatchAction not Action*** Please tell me how to populate fields in a form with data retrieved from a database table. Please note that I am particular about how to do this using Struts tags etc. //***Please also note that I am using DispatchAction not Action*** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to reuse the same FormBean with different actions?
Thanks! - Original Message - From: "Robert Taylor" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Asif Rahman" <[EMAIL PROTECTED]> Sent: Friday, June 25, 2004 4:21 PM Subject: RE: Is it possible to reuse the same FormBean with different actions? > Use different action mappings with same form bean. > Each action mapping can have a different input attribute value > for validation. > > robert > > > -Original Message- > > From: Asif Rahman [mailto:[EMAIL PROTECTED] > > Sent: Friday, June 25, 2004 3:52 PM > > To: Struts Users Mailing List > > Subject: Is it possible to reuse the same FormBean with different > > actions? > > Importance: High > > > > > > I have a few jsp pages that use almost the same information. I am using a formbean for one of them right now for > > validation. Of course I'd like to re-use the this same bean with the other jsp pages too since the info is so similar. > > But here's the catch, theres only one "input" field in an action mapping, meaning it will always send the user back to > > the same jsp page if validation fails, rather than different ones. Is there some other element in the action mapping I > > can set to get around this? I can always have 2 or 3 formbeans and copy properties from one to the other, but that > > doesnt seem like a very good solution to me. Does anyone have any ideas? > > > > -Asif > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Struts, XDoclet, and Maven...
I second that ! --b Navjot Singh wrote: i agree with rick here. I also tried using struts-config.xml using xdoclet. In the end it turns out to be a futile exercise. Moreover, using modules makes working with xdoclet more cumbersome. It's EASY to write the config yourself. Some may say that it will be useful to generate the Struts form class and it's tags in struts-config.xml FROM the entity bean you just created. But ,tell me frankly, how many times we have forms that correspond one-to-one with our entity schema. Use xdoclet only where it makes sense to use. my 2 cents navjot singh Rick Reumann wrote: Andy Akins wrote: but I'm fairly new to Maven but have coded two simple struts apps with it - and XDoclet is brand new to me. I'm looking to combine all of the above (and eventually Hibernate - but that's for a later day). I don't see what advantage using XDoclet with Struts is? If someone can show me how it helps I'd love to see it. On this one project I inherited, it uses XDoclet with Struts and it makes things worse. For example, I like having a nice config file that I can modify (strut-config), yet with XDoclet, the struts config action mappings are generated by action mapping definitions defined at the top of the actual Action opbjects. That makes no sense to me. Now in order to change a return value, you have to modify source code versus just modifying a config file. I can see the benefit for XDoclet in other projects (ie EJB code generation) but for Struts I still haven't found where it helps, but I'm willing to be enlightened:) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB + Struts + Hibernate
Spring is ultra cool. The most usefull thing that I'm doing with it is using it's built in hibernate support rather than creating and having to manage my own session factory code. It also allows u to manage your transactions in the xml config file and use aspect oriented programming for stuff like security or performance monitoring the guy who started it is called Rod Johnson and he's a real enterprise java guru. It also allows IOC ( inversion of control ) which minus all the bullshit and hype words allows you to break your application into really small completely independant components which allows you to really easily switch things like persistance layers, unit test without loads of hassle, use mock objects during development etc etc. Basically it turns everything into ultra loosely coupled beans In short the struts --> spring --> hibernate works like a dream and if you don't like any component it is very easy to switch them out. --b Michael McGrady wrote: What's so special about SPRING? I am always interested in application frameworks. Can anyone give a quick synopsis of the pluses and minuses? Micahel At 07:42 AM 6/27/2004, Mark Lowe wrote: +1 You'll want to look at spring whether you want to use EJB or Hibernate. On 27 Jun 2004, at 16:02, Bryan Hunt wrote: I don't believe it is unless you feel that the application will need to be distributed across a cluster. I use the (excellent) spring framework ( springframework.org ) so that I can plug into a EJB layer if necessary in the future. --b Irfandhy Franciscus wrote: Hi, Does any of you guys has eve developed Web Apps using Struts and hibernate ? If you have, do you think EJB is a necessary layer on top of hibernate ? Thanks in advance ^^ Regards, Irfandhy Franciscus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there anyway an Action can dynamically return to a page based on input?
But I guess there should be an entry in Struts config for that path . Biswajit Basak Tata Consultancy Services Plot B-1, Block EP & GP Sector - V, Salt Lake Electronics Complex Kolkata - 700 091,West Bengal India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com [EMAIL PROTECTED] 06/28/2004 05:30 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject RE: Is there anyway an Action can dynamically return to a page based on input? I guess you can try instantiting a new ActionForward object with the path where you want to go to. new ActionForward(); Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Guillermo Meyer" <[EMAIL PROTECTED]> 06/28/2004 07:52 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc Subject RE: Is there anyway an Action can dynamically return to a page based on input? You are needing something like a "navigation stack", doesn't you? If so, let me know. We are working in an open source non intrusive struts solution of a navigation stack. Cheers. Guillermo. -Original Message- From: Pietro Dansk [mailto:[EMAIL PROTECTED] Sent: Viernes, 25 de Junio de 2004 05:54 p.m. To: Struts Users Mailing List Subject: Is there anyway an Action can dynamically return to a page based on input? I have a form which appears on multiple pages. The form leads to an action which changes a simple property. After doing this, I want the action to simply lead back to the individual page from which it came. I can't register a single "input" within the action tag of the struts-config.xml file (because there are multiple actions from which it could possibly come). Therefore, it doesn't seem like I can use the mapping.findInputForward() method. I want this form to simply return to the page or action that it was previously at. What is the most elegant way to do this? --Pietro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NTE2EE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NTAD3A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to populate fields in a form with data retrieved from a database table...
//***Please note that I am using DispatchAction not Action*** Please tell me how to populate fields in a form with data retrieved from a database table. Please note that I am particular about how to do this using Struts tags etc. //***Please also note that I am using DispatchAction not Action*** Process flow User presses "get customer" button in customer.jsp, customer.jsp calls, customerAction.getCustomer, customerAction.getCustomer method executes dbInterface.getCustomer. JSP FILES: == customer.jsp: = <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> ... : : : ... function set(target) {document.forms[0].methodToExecute.value=target;} Register Customer Get Customer Save Changes struts-config.xml file: === http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> Action Class: = import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.DynaActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.actions.DispatchAction; import java.util.ArrayList; import java.util.Iterator; //***Please note that I am using DispatchAction not Action*** public class CustomerAction extends DispatchAction { public ActionForward getCustomer(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { )); CustomerForm customerForm = (CustomerForm) form; copyBeanDataToForm(customerForm, dbInterface.getCustomer( getDataSource(request), customerForm ) ); return mapping.findForward("success"); } ... ... } //***Please note that I am using DispatchAction not Action*** ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using set-property in forward tag
Hi Nikhil, It sounds like what you really want to do is set add a request parameter name-value pair to the query string of the URL. If so, then you can add these values directly in the definition of the foward and still set redirect = "true" ... The example below passes two parameters to ActionA -- foo=bar, and baz=blob -- note the use of & to avoid XML confusion. The element is used to set a property on the ForwardConfig object. Typically you only need to do this if you are providing a custom implementation of the ActionForward object. nikhil walvekar wrote: Hi, all forward element is defined as following actualy i want to pass some values to forward but with redirect true. e.g.Action A expects one parameter.. I want to forward to action A from action B but with redirect true option. due to redirect=true i can not set required property from action B in request and try to read in action A. Forward tag can have sub elements one of which is set-property. Please help me, how can i use set-property in forward tag. Nikhil. Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : Struts, XDoclet, and Maven...
I wouldn't argue against the points Rick is making, particularly the benefit of central place for configuration information as opposed to marking it out all over the shop. I will throw one thing out there though. When you have lots of Action Mappings and subsequent Action classes that are in a state of change and development being able to add/delete/change targets in the execute method and guarantee the consistency with the struts-config.xml at the top of the same file can have some use. Matt -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 10:26 PM To: Struts Users Mailing List Subject: Re: RE : Struts, XDoclet, and Maven... Marco Mistroni wrote: > I m doing it coz I m lazy and I prefer that someone else > Generates configuration files for me.. But what aspect of configuration is it saving you time with? You still have to code all the parameters for your action mapping in the Action class, so what's the difference time-wise if you code them there or in the struts-config? What's sort of ironic is when Struts came out one of the benefits was touted about how you had a central place to do your configuration and you weren't having to harcode fowards in your controllers. XDoclet with Struts sets you back to the old way of doing things, imo. (Once again, no knock on XDoclet, it's a great tool, I just find its worth with Struts limited at best). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to populate fields in a form with data retrieved from a database table...
//***Please note that I am using DispatchAction not Action*** Please tell me how to populate fields in a form with data retrieved from a database table. Please note that I am particular about how to do this using Struts tags etc. //***Please also note that I am using DispatchAction not Action*** Process flow User presses "get customer" button in customer.jsp, customer.jsp calls, customerAction.getCustomer, customerAction.getCustomer method executes dbInterface.getCustomer. JSP FILES: == customer.jsp: = <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> ... : : : ... function set(target) {document.forms[0].methodToExecute.value=target;} Register Customer Get Customer Save Changes struts-config.xml file: === http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> Action Class: = import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.DynaActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.actions.DispatchAction; import java.util.ArrayList; import java.util.Iterator; //***Please note that I am using DispatchAction not Action*** public class CustomerAction extends DispatchAction { public ActionForward getCustomer(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { )); CustomerForm customerForm = (CustomerForm) form; copyBeanDataToForm(customerForm, dbInterface.getCustomer( getDataSource(request), customerForm ) ); return mapping.findForward("success"); } ... ... } //***Please note that I am using DispatchAction not Action*** ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Struts, XDoclet, and Maven...
Marco Mistroni wrote: I m doing it coz I m lazy and I prefer that someone else Generates configuration files for me.. But what aspect of configuration is it saving you time with? You still have to code all the parameters for your action mapping in the Action class, so what's the difference time-wise if you code them there or in the struts-config? What's sort of ironic is when Struts came out one of the benefits was touted about how you had a central place to do your configuration and you weren't having to harcode fowards in your controllers. XDoclet with Struts sets you back to the old way of doing things, imo. (Once again, no knock on XDoclet, it's a great tool, I just find its worth with Struts limited at best). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there anyway an Action can dynamically return to a page based on input?
I guess you can try instantiting a new ActionForward object with the path where you want to go to. new ActionForward(); Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Guillermo Meyer" <[EMAIL PROTECTED]> 06/28/2004 07:52 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc Subject RE: Is there anyway an Action can dynamically return to a page based on input? You are needing something like a "navigation stack", doesn't you? If so, let me know. We are working in an open source non intrusive struts solution of a navigation stack. Cheers. Guillermo. -Original Message- From: Pietro Dansk [mailto:[EMAIL PROTECTED] Sent: Viernes, 25 de Junio de 2004 05:54 p.m. To: Struts Users Mailing List Subject: Is there anyway an Action can dynamically return to a page based on input? I have a form which appears on multiple pages. The form leads to an action which changes a simple property. After doing this, I want the action to simply lead back to the individual page from which it came. I can't register a single "input" within the action tag of the struts-config.xml file (because there are multiple actions from which it could possibly come). Therefore, it doesn't seem like I can use the mapping.findInputForward() method. I want this form to simply return to the page or action that it was previously at. What is the most elegant way to do this? --Pietro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NTE2EE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there anyway an Action can dynamically return to a page based on input?
You are needing something like a "navigation stack", doesn't you? If so, let me know. We are working in an open source non intrusive struts solution of a navigation stack. Cheers. Guillermo. -Original Message- From: Pietro Dansk [mailto:[EMAIL PROTECTED] Sent: Viernes, 25 de Junio de 2004 05:54 p.m. To: Struts Users Mailing List Subject: Is there anyway an Action can dynamically return to a page based on input? I have a form which appears on multiple pages. The form leads to an action which changes a simple property. After doing this, I want the action to simply lead back to the individual page from which it came. I can't register a single "input" within the action tag of the struts-config.xml file (because there are multiple actions from which it could possibly come). Therefore, it doesn't seem like I can use the mapping.findInputForward() method. I want this form to simply return to the page or action that it was previously at. What is the most elegant way to do this? --Pietro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting Java Code in JSP to JSTL
> >9. if ( prevArticle != null ) && ( !article.equals( > >prevArticle ) ) {} > > think, this is slightly different; the EL expression will be false for prevArticle=="" (java syntax) in EL you don't have to take care that prevArticle is not null to prevent a runtimeException. So if it aligns with your intention (it will also be true, iff one in article,prevArticle is null) hope i didn't confuse anything axel > > Good Luck! > > Bill Siggelkow > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple submit buttons/one form
just don't forget to keep the messages unique per form had once delete property and delete main entries in one form, so the message shouldn't be 'delete' for both of them... ciao, Axel On 2004-06-28 at 14:56:32 +1200, [EMAIL PROTECTED] wrote: > There is a nice solution described here > > http://husted.com/struts/tips/003.html > > using the LookupDispatchAction action. > > Cheers, Martin > > > > Eric Schneider <[EMAIL PROTECTED]> > 28/06/2004 14:47 > Please respond to > "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > To > "Struts Users Mailing List" <[EMAIL PROTECTED]> > cc > > Subject > multiple submit buttons/one form > > > > > > > Hi, > > What is best approach using Struts for a forms that have multiple > submit buttons. Is it possible to bind actions to submit buttons > instead of forms? Ideally, I'd like each submit button to execute > different actions. > > Looking at the docs, a solution hasn't jumped out at me. This is > something that must be common, no? > > Thanks, > Eric > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB + Struts + Hibernate
+1 If your interfaces are in place you can pretty much change the persistence layer to whatever you like very quickly. I'll check ibatis 2 out if it does mean editing lots of xml files :o) On 28 Jun 2004, at 10:54, <[EMAIL PROTECTED]> wrote: On 04/06/28 8:55, "Mark Lowe" <[EMAIL PROTECTED]> wrote: The only thing thats stopped me using ibatis is that there's no xdoclet template thus the need to edit and maintain a bunch of mapping files, "YAWN". iBatis has the DAO framework so you could switch from persistence layer with relative ease. You can use Hibernate and ibatis... no mapping needed (check ibatis 2.0) More, if you start developing and realize that you made the wrong choice for persistence (slow performance, change of requirements) then you can still move with a reduced cost (only the DAO implementation is affected). Pedro Salgado Mark On 28 Jun 2004, at 02:11, Vic Cekvenich wrote: EJB is heavy, therefore slow and less scaleable. So in order to support a heavy transaction load, you would avoid it. (and I think the reason somone mentioned iBatis is that it's popular and scaleable, more so that Hibrenate becuase it's lower to the metal (SQL)) .V Irfandhy Franciscus wrote: . I am just scared that it would not be able to handle heavy concurrent transaction without EJB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB + Struts + Hibernate
On 04/06/28 8:55, "Mark Lowe" <[EMAIL PROTECTED]> wrote: > The only thing thats stopped me using ibatis is that there's no > xdoclet template thus the need to edit and maintain a bunch of mapping > files, "YAWN". > iBatis has the DAO framework so you could switch from persistence layer with relative ease. You can use Hibernate and ibatis... no mapping needed (check ibatis 2.0) More, if you start developing and realize that you made the wrong choice for persistence (slow performance, change of requirements) then you can still move with a reduced cost (only the DAO implementation is affected). Pedro Salgado > Mark > > On 28 Jun 2004, at 02:11, Vic Cekvenich wrote: > >> EJB is heavy, therefore slow and less scaleable. So in order to >> support a heavy transaction load, you would avoid it. >> >> (and I think the reason somone mentioned iBatis is that it's popular >> and scaleable, more so that Hibrenate becuase it's lower to the metal >> (SQL)) >> >> .V >> >> >> Irfandhy Franciscus wrote: >> . I am just >>> scared that it would not be able to handle heavy concurrent >>> transaction without EJB. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : Struts, XDoclet, and Maven...
Hello, Well, I agree with u, but it depends on how u generate The struts-config and other config files.. U can still write ur own action-mapping file and make xdoclet Merge it (I m doing it for action-forms for example)... I m doing it coz I m lazy and I prefer that someone else Generates configuration files for me.. If u (like me) hate changing code for changing a simple Parameter, as I said u may want to look at merge facilities Of XDoclet. My 2 cents Regards marco -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: 27 June 2004 22:13 To: Struts Users Mailing List Subject: Re: RE : Struts, XDoclet, and Maven... Andy Akins wrote: >>> but I'm fairly new to Maven but have coded two simple struts >>> apps with >>> it - and XDoclet is brand new to me. I'm looking to combine >>> all of the >>> above (and eventually Hibernate - but that's for a later day). I don't see what advantage using XDoclet with Struts is? If someone can show me how it helps I'd love to see it. On this one project I inherited, it uses XDoclet with Struts and it makes things worse. For example, I like having a nice config file that I can modify (strut-config), yet with XDoclet, the struts config action mappings are generated by action mapping definitions defined at the top of the actual Action opbjects. That makes no sense to me. Now in order to change a return value, you have to modify source code versus just modifying a config file. I can see the benefit for XDoclet in other projects (ie EJB code generation) but for Struts I still haven't found where it helps, but I'm willing to be enlightened:) -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: EJB + Struts + Hibernate
Hi, I have. but I m not using EJB on top...just straight Hibernate Frankly, it depends on your type of app... For example, If u want to use the session façade, you will have A session EJB that hides the entity EJB. If u r not happy using entity EJB, U would replace entity code with hibernate code...and the struts app wont know it My app is so small that I did not need a session façade..so I m using A sort of business delegate to hide hibernate code... My 2 cents marco -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Irfandhy Franciscus Sent: 27 June 2004 12:33 To: [EMAIL PROTECTED] Subject: EJB + Struts + Hibernate Hi, Does any of you guys has eve developed Web Apps using Struts and hibernate ? If you have, do you think EJB is a necessary layer on top of hibernate ? Thanks in advance ^^ Regards, Irfandhy Franciscus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB + Struts + Hibernate
The only thing thats stopped me using ibatis is that there's no xdoclet template thus the need to edit and maintain a bunch of mapping files, "YAWN". Mark On 28 Jun 2004, at 02:11, Vic Cekvenich wrote: EJB is heavy, therefore slow and less scaleable. So in order to support a heavy transaction load, you would avoid it. (and I think the reason somone mentioned iBatis is that it's popular and scaleable, more so that Hibrenate becuase it's lower to the metal (SQL)) .V Irfandhy Franciscus wrote: . I am just scared that it would not be able to handle heavy concurrent transaction without EJB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]