Reload Action Classes
Hi, Iam using Tomcat 4.1.26 for my webapplication. All the actions classes are present in WEB-INF/classes folder. I have made the webapplication reloadable by using attribute reloadable="true" in server.xml file. Whenever I recompile the Action classes the server throws ERROR 503 on subsequent requests. What should I do to make the Action classes reloadable so that I dont have to restart my tomcat server for each and every modification in my action classes. Thanks for your Help --Yoge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: non-default init-params and default ActionServlet
That is exactly what I'm trying to do, but when I try getInitParameterNames, I get an empty enumeration, and if I read the javadocs correctly, it is because if I use a default ActionServlet, then only the init-params mentioned in the javadocs are available, so my custom init-params are not there. I'm using Tomcat 5.0.18, if that makes a difference, and it's possible i'm doing something else wrong, but the app seems to load fine, the contextlistener gets called, but when I try to get the initparams within contextInitialized, I get only an empty enumeration. thanks, n. Hubert Rabago wrote: I might be missing something here, but why not get it inside the servlet context initialized handler method? public void contextInitialized(ServletContextEvent event) { System.out.println("[contextInitialized] inside contextInitialized()"); System.out.println(" +-> context=" + event.getServletContext()); ServletContext context = event.getServletContext(); Enumeration enumeration = context.getInitParameterNames(); while (enumeration.hasMoreElements()) { String name = (String) enumeration.nextElement(); String value = context.getInitParameter(name); System.out.println("init param: [" + name + "=" + value + "]"); } } public void contextDestroyed(ServletContextEvent event) { System.out.println("[contextDestroyed] inside contextDestroyed()"); System.out.println(" +-> context=" + event.getServletContext()); } --- exnihilo <[EMAIL PROTECTED]> wrote: I need the variables in a ServletContextListener that gets invoked once on startup and once on shutdown of the application, and don't need them anywhere else. I used to have a subclassed ActionServlet, where I did initialization and shutdown using a couple of init-params in the web.xml, but then I realized that using the default ActionServlet and using a ServletContextListener was cleaner, except that now the init-params no longer work. Ideally, I would like something as simple as including them in the web.xml.. Does anybody know the justification for preventing non-default init-params from being seen when using the default ActionServlet? It seems like a very easy solution to a very common need. thanks, n. Hubert Rabago wrote: Where do you need the values? There are a lot of options, including using servlet context variables and a simple Struts plugin. --- exnihilo <[EMAIL PROTECTED]> wrote: hi, I have 2 init-params that I need to do pass into my struts app (that are only used in a listener that gets called upon webapp startup and shutdown). I did the obvious and included them in the web.xml, but it seems that the default ActionServlet does not pick up any other init-params than the ones it expects (if I read the javadocs correctly), and that I need to subclass ActionServlet if I want to use other init-params than the default ones. Are there other options? It seems like overkill in this case, because the default ActionServlet is totally sufficient for my needs in all other regards. There is a probably a much better solution that I am not finding. Any ideas or pointers to more info? thanks, n. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - 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: non-default init-params and default ActionServlet
I might be missing something here, but why not get it inside the servlet context initialized handler method? public void contextInitialized(ServletContextEvent event) { System.out.println("[contextInitialized] inside contextInitialized()"); System.out.println(" +-> context=" + event.getServletContext()); ServletContext context = event.getServletContext(); Enumeration enumeration = context.getInitParameterNames(); while (enumeration.hasMoreElements()) { String name = (String) enumeration.nextElement(); String value = context.getInitParameter(name); System.out.println("init param: [" + name + "=" + value + "]"); } } public void contextDestroyed(ServletContextEvent event) { System.out.println("[contextDestroyed] inside contextDestroyed()"); System.out.println(" +-> context=" + event.getServletContext()); } --- exnihilo <[EMAIL PROTECTED]> wrote: > I need the variables in a ServletContextListener that gets invoked once > on startup and once on shutdown of the application, and don't need them > anywhere else. I used to have a subclassed ActionServlet, where I did > initialization and shutdown using a couple of init-params in the > web.xml, but then I realized that using the default ActionServlet and > using a ServletContextListener was cleaner, except that now the > init-params no longer work. Ideally, I would like something as simple as > including them in the web.xml.. > > Does anybody know the justification for preventing non-default > init-params from being seen when using the default ActionServlet? It > seems like a very easy solution to a very common need. > > thanks, > > n. > > Hubert Rabago wrote: > > >Where do you need the values? There are a lot of options, including using > >servlet context variables and a simple Struts plugin. > > > >--- exnihilo <[EMAIL PROTECTED]> wrote: > > > > > >>hi, > >> > >>I have 2 init-params that I need to do pass into my struts app (that are > >>only used in a listener that gets called upon webapp startup and > >>shutdown). I did the obvious and included them in the web.xml, but it > >>seems that the default ActionServlet does not pick up any other > >>init-params than the ones it expects (if I read the javadocs correctly), > >>and that I need to subclass ActionServlet if I want to use other > >>init-params than the default ones. > >> > >>Are there other options? It seems like overkill in this case, because > >>the default ActionServlet is totally sufficient for my needs in all > >>other regards. There is a probably a much better solution that I am not > >>finding. > >> > >>Any ideas or pointers to more info? > >> > >>thanks, > >> > >>n. > >> > >> > >> > >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: non-default init-params and default ActionServlet
I need the variables in a ServletContextListener that gets invoked once on startup and once on shutdown of the application, and don't need them anywhere else. I used to have a subclassed ActionServlet, where I did initialization and shutdown using a couple of init-params in the web.xml, but then I realized that using the default ActionServlet and using a ServletContextListener was cleaner, except that now the init-params no longer work. Ideally, I would like something as simple as including them in the web.xml.. Does anybody know the justification for preventing non-default init-params from being seen when using the default ActionServlet? It seems like a very easy solution to a very common need. thanks, n. Hubert Rabago wrote: Where do you need the values? There are a lot of options, including using servlet context variables and a simple Struts plugin. --- exnihilo <[EMAIL PROTECTED]> wrote: hi, I have 2 init-params that I need to do pass into my struts app (that are only used in a listener that gets called upon webapp startup and shutdown). I did the obvious and included them in the web.xml, but it seems that the default ActionServlet does not pick up any other init-params than the ones it expects (if I read the javadocs correctly), and that I need to subclass ActionServlet if I want to use other init-params than the default ones. Are there other options? It seems like overkill in this case, because the default ActionServlet is totally sufficient for my needs in all other regards. There is a probably a much better solution that I am not finding. Any ideas or pointers to more info? thanks, n. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: non-default init-params and default ActionServlet
Where do you need the values? There are a lot of options, including using servlet context variables and a simple Struts plugin. --- exnihilo <[EMAIL PROTECTED]> wrote: > hi, > > I have 2 init-params that I need to do pass into my struts app (that are > only used in a listener that gets called upon webapp startup and > shutdown). I did the obvious and included them in the web.xml, but it > seems that the default ActionServlet does not pick up any other > init-params than the ones it expects (if I read the javadocs correctly), > and that I need to subclass ActionServlet if I want to use other > init-params than the default ones. > > Are there other options? It seems like overkill in this case, because > the default ActionServlet is totally sufficient for my needs in all > other regards. There is a probably a much better solution that I am not > finding. > > Any ideas or pointers to more info? > > thanks, > > n. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get application.getRealPath()
I got it.. its like HttpSession session = request.getSession(); session.getServletContext().getRealPath("/") ; -- Raman - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, February 21, 2004 4:00 AM Subject: Re: How to get application.getRealPath() > request.getRequestURL() > > - Original Message - > From: "Raman" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, February 20, 2004 9:48 PM > Subject: How to get application.getRealPath() > > > Hi All, > > Can any body tell me how can i get > application.getRealPath() value > in my Action's execute method. > > My problem is I want to get present physical path of my application. > > Pls help me.. > > -- Raman > > > - > 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 get application.getRealPath()
request.getRequestURL() - Original Message - From: "Raman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 9:48 PM Subject: How to get application.getRealPath() Hi All, Can any body tell me how can i get application.getRealPath() value in my Action's execute method. My problem is I want to get present physical path of my application. Pls help me.. -- Raman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Perform date validation only if field required (requiredIf/validWhen)
Hi, I have three radio buttons in a form, --- o Today o Tomorrow o From this date: [ ] --- I am currently using requiredIf and date validation on the date textarea . The date entry is only required if the correct radio button is selected and the date validation makes sure this is in the right format. This works fine, until the user enters an invalid date that doesn't pass date validation and *then* select's one of the other radio buttons, and submits. The requiredIf passes fine (not required), but the date validation is still perfomed and returns the page to the user. Is it possible to perform date validation only if requiredif decides the fields are required? That is, don't test things that aren't required, without: * extra javascript in the page * without using custom validation java-code (the rest of the form's validation works great) I have looked at validWhen (and am not aversed to going to the nightly-build), but can't see the solution there either. Any help would be appreciated, Ivan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Extra Lines in Compiled JSP
Thanks to everyone and for their comments. What I was seeing were several blank lines at the top of my rendered page - lines that I could not account for in the html code. After scratching my head for a few days, it occurred to me that the number of blank lines being rendered were the same number of lines as my <% taglib %>'s - in this case seven lines. Opening up the compiled JSP I found where it was putting seven out.write() statements. I know the browser should ignore successive white space like this, but in my case it wasn't (this is an IE 6 browser). We're running Tomcat 5.0.18 and J2SDK 1.4.2. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Piper, James D CECOM SEC EPS > [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 3:48 PM > To: 'Adam Hardy'; Struts Users Mailing List > Subject: RE: Extra Lines in Compiled JSP > > > Why do you have this problem with extra lines in your html > generated by the > <%@ %> section of your jsp and I do not - I use JBOSS and > WebLogic both -- > never saw this problem? > > - Jim > > > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 3:42 PM > To: Struts Users Mailing List > Subject: Re: Extra Lines in Compiled JSP > > > Perhaps it was in the taglibs-user mailing list where I dreamt it? > > Maybe I'm searching for the wrong key-words - I've looked for 'white > space' and 'blank lines' but not found anything. Perhaps it > was even on > this list? > > Check this link for a filter solution: > > http://www.mail-archive.com/[EMAIL PROTECTED]/ms > g03824.html > > On 02/20/2004 08:14 PM Gopalakrishnan, Jayesh wrote: > > I am talking abt generated output(HTML/csv/email/whatever). If > > the question was abt generated java code, nobody should care. > > > > The generated output contains newlines for every <% %> enclosure > > in the JSP. And if you are generating anything other > > than HTML output, thats likely to cause a problem. > > > > We did this for our export to exel feature... > > > > cheers > > -jayash > > > > > > > > -Original Message- > > From: Thad Humphries [mailto:[EMAIL PROTECTED] > > Sent: Friday, February 20, 2004 11:05 AM > > To: Struts Users Mailing List > > Subject: Re: Extra Lines in Compiled JSP > > > > > > Why care about how generated code looks? This approach > makes the code you > > > maintain harder to read. > > > > On Friday 20 February 2004 14:01, Gopalakrishnan, Jayesh wrote: > > > >>I must have had the same dream !! > >>I remember that tomcat config thing..and not too > >>long ago. I am surprised you couldn't find it. > >> > >>We had to do something like this though, for weblogic. > >> > >><%@ taglib uri="xxx" prefix="bean" > >>%><%@ taglib uri="/display" prefix="display" > >>%><%@ taglib uri="xxx" prefix="html" > >>%><%@ taglib uri="xxx" prefix="nested" > >>%><%@ taglib uri="xxx" prefix="tiles" > >>%><%@ page language="java" > >>%><%@ page contentType="text/html; charset=UTF-8" > >>%><% your code continues.%> > >>... > > > > > > > > > - > > 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 1.1 + tomcat 5.0.16 + java 1.4.2 > Linux 2.4.20 Debian > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get application.getRealPath()
Hi All, Can any body tell me how can i get application.getRealPath() value in my Action's execute method. My problem is I want to get present physical path of my application. Pls help me.. -- Raman
RE: Extra Lines in Compiled JSP
Why do you have this problem with extra lines in your html generated by the <%@ %> section of your jsp and I do not - I use JBOSS and WebLogic both -- never saw this problem? - Jim -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 3:42 PM To: Struts Users Mailing List Subject: Re: Extra Lines in Compiled JSP Perhaps it was in the taglibs-user mailing list where I dreamt it? Maybe I'm searching for the wrong key-words - I've looked for 'white space' and 'blank lines' but not found anything. Perhaps it was even on this list? Check this link for a filter solution: http://www.mail-archive.com/[EMAIL PROTECTED]/msg03824.html On 02/20/2004 08:14 PM Gopalakrishnan, Jayesh wrote: > I am talking abt generated output(HTML/csv/email/whatever). If > the question was abt generated java code, nobody should care. > > The generated output contains newlines for every <% %> enclosure > in the JSP. And if you are generating anything other > than HTML output, thats likely to cause a problem. > > We did this for our export to exel feature... > > cheers > -jayash > > > > -Original Message- > From: Thad Humphries [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 11:05 AM > To: Struts Users Mailing List > Subject: Re: Extra Lines in Compiled JSP > > > Why care about how generated code looks? This approach makes the code you > maintain harder to read. > > On Friday 20 February 2004 14:01, Gopalakrishnan, Jayesh wrote: > >>I must have had the same dream !! >>I remember that tomcat config thing..and not too >>long ago. I am surprised you couldn't find it. >> >>We had to do something like this though, for weblogic. >> >><%@ taglib uri="xxx" prefix="bean" >>%><%@ taglib uri="/display" prefix="display" >>%><%@ taglib uri="xxx" prefix="html" >>%><%@ taglib uri="xxx" prefix="nested" >>%><%@ taglib uri="xxx" prefix="tiles" >>%><%@ page language="java" >>%><%@ page contentType="text/html; charset=UTF-8" >>%><% your code continues.%> >>... > > > > - > 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 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] CachedRowSet - Table View
Has anyone tried implementing the CachedRowSet for displaying data in tables on a web page? If so, please pass on the benefit of your experience. I'd be interested if anyone has a great way for displaying hundreds of rows of data from an RDBMS on a web page. It would be great if there was an exisitng framework for sorting and pagination. Thx. Mike PS. I'm really not trying to polute the Stuts list with an off-topic issue. I think this is an issue that other readers of this list will be interested in, and I think this list has some of the most advanced J2EE architects available. __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Extra Lines in Compiled JSP
Good afternoon... I had a similar issue generating XML files. I realise white-space shouldn't be an issue in XML but it was for our browser. Perhaps you are having a similar issue in your case, so this might help. When I followed convention and put the <%@ ... %> directives first, and then my line the browser couldn't validate the XML because it didn't start on the first character of the first line (i.e.: because of all the blank lines). The solution was to ignore the convention and start my file with and then put my <%@ ... %> directives and then put the rest of my JSP. Perhaps you could start your JSP page with and the put the page and taglib directives? In what way is your HTML code being screwed up? Eric Schultz Technical Leader Conseiller Technique Elix Specialist in interactive business solutions Specialiste en solutions d'affaires interactives 14 Commerce Place, 5th floor Nun's Island, QC H4E 1T5 t: 514 768-1000 f: 514 768-7680 -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: February 20, 2004 11:07 To: '[EMAIL PROTECTED]' Subject: Extra Lines in Compiled JSP Hi All, I should know how to fix this, but am at a loss. At the top of my JSP I have the following lines: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean" %> <%@ taglib uri="/display" prefix="display" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; prefix="nested" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles" %> <%@ page language="java" %> <%@ page contentType="text/html; charset=UTF-8" %> When I look at the compiled JSP, there are seven blank lines (i.e. out.write("\r\n"); ). Is there anyway to have the JSP compiler (were running Tomcat 5.0.18 Stable) NOT generate these lines? I guess they come from the <% %> sources lines, but it really screws up my generated HTML code Thanks! Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Animated .GIF's
I wouldn't use hide show by way of css for this. Use an old fashioned image swap with the transparent gif. Unless you need the image positioning over the top of anything (if its a form you'll need to hide that to c/o z-indexing and forms). In short don't hide-show but swap. On 20 Feb 2004, at 19:28, Jerry Jalenak wrote: I've been trying to find an answer to this via google for awhile now, but can't seem to find any info on my problem. I'm hoping someone might be able to shed some light on this for me. I've got a simple animated .gif (Loading Data... kind of thing) that I need to display whenever my submit button is clicked. Until the submit button is clicked though, I hide the image When the user clicks the submit button, I use javascript to change the style to "display:inline". The image appears, but the animation doesn't seem to work. If I load the image without the "display:none" or even with "display:inline", the animation works fine. It only seems to fail when the initial display setting is 'none'. What gives? Am I just missing an additional setting? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [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]
How to get requested URL with tiles
Using titles to setup a website, I would like to know how I can get the requested URL in a JSP page. Simply my question is, how can I get the requested URL ... '/Rewards.do' instead of the template jsp? request.getServletPath() will just return template_sidebar.jsp, I need to differentiate between page. I would like to use one header for a lot of pages, the header has a navigation bar of a couple images... and I want to display a 'highlighted' image for when the current page corresponding to that image is clicked. In order to do so, I need to put code like... if (currentpage == "RewardsView") img src="rewards_highlighted.gif" else img src="rewards_not_highlighted.gif" I'm sure plenty of people have done this, and of course I would not like to create 6 different headers, one for each navigation item. Any ideas? Whenever someone goes to http://localhost/Rewards.do I want to display the highlighted gif. This would be easy if request.getServletPath() would return /Rewards.do, but it returns /template/template_sidebar.jsp, so I cannot differentiate between any pages that use the same template. Is there a way to get the requested URL? Or does anyone know of a way to differentiate between the page? In the struts config I have... In the tiles config I have...
RE: [OT] Animated .GIF's
Hi Jerry, I have recently worked on the same problem but I was handling it differently but pretty much the same stuff. I don't have a direct answer to your question regarding the image animation suspending and I ended up changing my business logic to queue the transaction and report confirmation by email rather than waiting for the transaction to complete on a progress page. I read an article on this once that called these type of transactions TCP(time consuming process) or something like that, and there are several ways to handle them. In my case I had an application running within an IFrame where one of my Actions performed a TCP. What I did was have the request POST to an Action that placed a transactionBean in the session then forward to a "please wait page" with a progress.gif and in JavaScript set the page to refresh in Xsec to another Action that would actualy process the transactionBean. So while the user was waiting they saw my progress.gif and friendly message. Well my progress.gif was working great and then my requirments changed and I had to display the pages within an new browser window. Guess what broke, my progress.gif would no longer strob, as soon as the browser refreshed the animation would stop. The only thing I changed was the fact that the application was being displayed in an IFrame. I tried to fix it several ways including putting the progress.gif in a page alone and displaying it in an IFrame with no success. I had to move on and removed the progress.gif and endedup not needing it anyway as I mentioned earlier. I am not sure why it was working in the IFrame or if it was just a bug in the browser that ignored the frames action?? But I do know how I will do it next time if I realy have too. I would have my Action launch a thread to process the transactionBean. Bind the transactionBean to the session and add a couple methods to indicate progress status. My Action would then forward to the "please wait page". The please wait page would refresh itself every Xsec checking the status of the transactionBean in the session and either display the please wait and progress.gif or redirect to the confirmation page. Depending on how big the images are you often hardly notice the refresh. With this you could even display a progress indicator that was reflecting the actual process. As you can see it seems like overkill and that is why I have either removed the progress.gif or changed my process to accommodate usablity issues. But this bugged me too for a while. HTH, Greg > -Original Message- > From: Colin Kilburn [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 2:05 PM > To: Struts Users Mailing List > Subject: Re: [OT] Animated .GIF's > > Jerry, > > Here's the whole page, it expects an image called progress.gif. > > > > > .floater { >visibility: visible; > } > .hider { >visibility: hidden; > } > > > > >function progressBar(elementName) { > var element = document.getElementById(elementName); > element.className = 'floater'; >} > > > > > > > border="0" alt="Hang Tight!"> > > > > onClick="progressBar('progress');"> > > > > > > HTH, > Colin > > > Jerry Jalenak wrote: > > >Colin - > > > >Can you post your ... code? I just tried to wrap my > in > >one and it still doesn't work > > > >Jerry Jalenak > >Development Manager, Web Publishing > >LabOne, Inc. > >10101 Renner Blvd. > >Lenexa, KS 66219 > >(913) 577-1496 > > > >[EMAIL PROTECTED] > > > > > > > > > >>-Original Message- > >>From: Colin Kilburn [mailto:[EMAIL PROTECTED] > >>Sent: Friday, February 20, 2004 12:42 PM > >>To: Struts Users Mailing List > >>Subject: Re: [OT] Animated .GIF's > >> > >> > >>Jerry, > >> > >>I was just toying with something similar yesterday. My image was > >>inside a div, though, and the animation works fine. ... i.e. > >>I changed > >>the display attribute on the div, not the image. I'm also using > >>mozilla on mandrake 9. Not sure about how it behaves in IE. > >> > >>HTH, > >>Colin > >> > >>Jerry Jalenak wrote: > >> > >> > >> > >>>I've been trying to find an answer to this via google for > >>> > >>> > >>awhile now, but > >> > >> > >>>can't seem to find any info on my problem. I'm hoping > >>> > >>> > >>someone might be able > >> > >> > >>>to shed some light on this for me. > >>> > >>>I've got a simple animated .gif (Loading Data... kind of > >>> > >>> > >>thing) that I need > >> > >> > >>>to display whenever my submit button is clicked. Until the > >>> > >>> > >>submit button is > >> > >> > >>>clicked though, I hide the image > >>> > >>>>>>style="display:none;"> > >>> > >>>When the user clicks the submit button, I use javascript to > >>> > >>> > >>change the style > >> > >> > >>>to "display:inline". The image appears, but the animation > >>> > >>> > >>doesn't seem to > >> > >> > >>>work. If I load the image withou
Re: Analysis and Design using RUP/UML for Struts/HTML/Java Script application
On Thursday 19 February 2004 15:17, Sreenivasa Chadalavada wrote: > All, Hi, > We will be working on a big project that uses Struts/HTML/Java Script > as the front end. Same business as usual. > We use Rational Rose to support analysis and design activities. ArcStyler, among other tools. Including Notepad | Kate. > From your experience (using Struts) what artifacts/deliverables can > be used to document > the Presentation Tier? How do we depict the design in Struts? Are > there any tools that help > design the system? Well, I was taught applying UML by drawing hand-drawn sketches with a pencil. Considering tools, there's an abundance of them around, some better-suited, some not. Personally, I don't like Rose that much, it's too cluttered for me, and I can always tell a typical C++ program at first sight. Well, RR is still the leading tool in this direction, so forget about my personal tastes. Considering Struts: Struts implements several design patterns you may easily 'depict' in any tool. Starting from the 'overall' MVC2 idiom (technically, that's not a Pattern), it's entirely upon you far you will go into modelling the details. One thing you should keep in mind, though, is that the entire Client (as you mentioned JavaScript) | Web tier is just another client, talking to a Model (handling the business logic) which may be finally talking to a Resource | Persistence layer in the end, but you don't know for real. Because: each of the 'master' layers may know it's successor, but not the other way round. That said, if you're really asking for a list of Design Patterns implemented in Struts for further depiction, there's a brief explanation of the general background plus a list of the ones used in Struts in Appendix A in 'Struts in Action' (Ted Husted et al.); a book you should own (and have read twice, at least) before doing anything in the Struts or MVC2 direction. > Please let me know if you know of a SDLC process that addresses > analysis/design of Struts > based application. Now I'm confused, as I was when I was finding the RUP in the subject line. Well, to share the my (limited) general understanding: a process is a term dealing with how to organize things best, in a stage | time-based view. Or: who should be doing what, and at which stage of the project (when). That's what the RUP, among other process models, is about. What you asked, then, was not about *when* things should be done, or by *whom*, but - could be I didn't really understood the problem - *how* a problem should be practically addressed (using Struts). Well, actually, there is no process that 'addresses analysis/design of Struts based application', including the RUP. Asking for such a thing usually shows that one hasn't completely understood the overall context. But certainly, I just misinterpreted the question. > Thanks and Regards, > Sree/- HTH, -- Chris, who just successfully installed Oracle 10g under SuSE Linux 9.0; on his old HP E60 server :-) Yeah! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extra Lines in Compiled JSP
Perhaps it was in the taglibs-user mailing list where I dreamt it? Maybe I'm searching for the wrong key-words - I've looked for 'white space' and 'blank lines' but not found anything. Perhaps it was even on this list? Check this link for a filter solution: http://www.mail-archive.com/[EMAIL PROTECTED]/msg03824.html On 02/20/2004 08:14 PM Gopalakrishnan, Jayesh wrote: I am talking abt generated output(HTML/csv/email/whatever). If the question was abt generated java code, nobody should care. The generated output contains newlines for every <% %> enclosure in the JSP. And if you are generating anything other than HTML output, thats likely to cause a problem. We did this for our export to exel feature... cheers -jayash -Original Message- From: Thad Humphries [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 11:05 AM To: Struts Users Mailing List Subject: Re: Extra Lines in Compiled JSP Why care about how generated code looks? This approach makes the code you maintain harder to read. On Friday 20 February 2004 14:01, Gopalakrishnan, Jayesh wrote: I must have had the same dream !! I remember that tomcat config thing..and not too long ago. I am surprised you couldn't find it. We had to do something like this though, for weblogic. <%@ taglib uri="xxx" prefix="bean" %><%@ taglib uri="/display" prefix="display" %><%@ taglib uri="xxx" prefix="html" %><%@ taglib uri="xxx" prefix="nested" %><%@ taglib uri="xxx" prefix="tiles" %><%@ page language="java" %><%@ page contentType="text/html; charset=UTF-8" %><% your code continues.%> ... - 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 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
non-default init-params and default ActionServlet
hi, I have 2 init-params that I need to do pass into my struts app (that are only used in a listener that gets called upon webapp startup and shutdown). I did the obvious and included them in the web.xml, but it seems that the default ActionServlet does not pick up any other init-params than the ones it expects (if I read the javadocs correctly), and that I need to subclass ActionServlet if I want to use other init-params than the default ones. Are there other options? It seems like overkill in this case, because the default ActionServlet is totally sufficient for my needs in all other regards. There is a probably a much better solution that I am not finding. Any ideas or pointers to more info? thanks, n. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How populate a form
How can I populate a form fields (bean/jsp) inside the action, this action is a someQueryAction and forward for a edit record page with all form fields values with results values of database query. obrigado Daniel S.
RE: Struts and I8N looking for a good combination
You should consider using a database implementation of Struts' internal MessageResources component. That let's you keep your text in the database, supports i18n without changing anything in your Struts app (except one line in the struts-config), and provides the ability to change content on the fly (although this last part is up to you). -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Linus Nikander > Sent: Friday, February 20, 2004 3:52 AM > To: [EMAIL PROTECTED] > Subject: Struts and I8N looking for a good combination > > > Is there any (preferably GPL:ed or equivalent) framework out there for > internationalization of all texts on a site ? In particular I'm > looking for > something that integrates well with struts. > > I know I can use different resource-files for different languages > in Struts. > The problem is that using files for internationalizations quickly becomes > hard to handle, particularly as the amount of text and languages > increases. > I also want to be able to dynamically update text content when the site is > up and running (very hard to accomplish using textfiles). > > Anyone have any recommendations / experiences ? > > //Linus Nikander - [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: Extra Lines in Compiled JSP
I am talking abt generated output(HTML/csv/email/whatever). If the question was abt generated java code, nobody should care. The generated output contains newlines for every <% %> enclosure in the JSP. And if you are generating anything other than HTML output, thats likely to cause a problem. We did this for our export to exel feature... cheers -jayash -Original Message- From: Thad Humphries [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 11:05 AM To: Struts Users Mailing List Subject: Re: Extra Lines in Compiled JSP Why care about how generated code looks? This approach makes the code you maintain harder to read. On Friday 20 February 2004 14:01, Gopalakrishnan, Jayesh wrote: > I must have had the same dream !! > I remember that tomcat config thing..and not too > long ago. I am surprised you couldn't find it. > > We had to do something like this though, for weblogic. > > <%@ taglib uri="xxx" prefix="bean" > %><%@ taglib uri="/display" prefix="display" > %><%@ taglib uri="xxx" prefix="html" > %><%@ taglib uri="xxx" prefix="nested" > %><%@ taglib uri="xxx" prefix="tiles" > %><%@ page language="java" > %><%@ page contentType="text/html; charset=UTF-8" > %><% your code continues.%> >... - 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] Animated .GIF's
Jerry, Here's the whole page, it expects an image called progress.gif.
.floater {
visibility: visible;
}
.hider {
visibility: hidden;
}
function progressBar(elementName) {
var element = document.getElementById(elementName);
element.className = 'floater';
}
HTH, Colin Jerry Jalenak wrote: Colin - Can you post your ... code? I just tried to wrap my in one and it still doesn't work Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Colin Kilburn [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 12:42 PM To: Struts Users Mailing List Subject: Re: [OT] Animated .GIF's Jerry, I was just toying with something similar yesterday. My image was inside a div, though, and the animation works fine. ... i.e. I changed the display attribute on the div, not the image. I'm also using mozilla on mandrake 9. Not sure about how it behaves in IE. HTH, Colin Jerry Jalenak wrote: I've been trying to find an answer to this via google for awhile now, but can't seem to find any info on my problem. I'm hoping someone might be able to shed some light on this for me. I've got a simple animated .gif (Loading Data... kind of thing) that I need to display whenever my submit button is clicked. Until the submit button is clicked though, I hide the image When the user clicks the submit button, I use javascript to change the style to "display:inline". The image appears, but the animation doesn't seem to work. If I load the image without the "display:none" or even with "display:inline", the animation works fine. It only seems to fail when the initial display setting is 'none'. What gives? Am I just missing an additional setting? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [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] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [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: Extra Lines in Compiled JSP
Why care about how generated code looks? This approach makes the code you maintain harder to read. On Friday 20 February 2004 14:01, Gopalakrishnan, Jayesh wrote: > I must have had the same dream !! > I remember that tomcat config thing..and not too > long ago. I am surprised you couldn't find it. > > We had to do something like this though, for weblogic. > > <%@ taglib uri="xxx" prefix="bean" > %><%@ taglib uri="/display" prefix="display" > %><%@ taglib uri="xxx" prefix="html" > %><%@ taglib uri="xxx" prefix="nested" > %><%@ taglib uri="xxx" prefix="tiles" > %><%@ page language="java" > %><%@ page contentType="text/html; charset=UTF-8" > %><% your code continues.%> >... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Extra Lines in Compiled JSP
I must have had the same dream !! I remember that tomcat config thing..and not too long ago. I am surprised you couldn't find it. We had to do something like this though, for weblogic. <%@ taglib uri="xxx" prefix="bean" %><%@ taglib uri="/display" prefix="display" %><%@ taglib uri="xxx" prefix="html" %><%@ taglib uri="xxx" prefix="nested" %><%@ taglib uri="xxx" prefix="tiles" %><%@ page language="java" %><%@ page contentType="text/html; charset=UTF-8" %><% your code continues.%> hth -jayash -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 9:19 AM To: Struts Users Mailing List Subject: Re: Extra Lines in Compiled JSP Maybe I just dreamt this but I thought I remember one of the tomcat committers saying here that they had added a config option to remove these blank lines around JSP & taglib tags, and set the configuration option by default to false/off, because it violates the JSP spec. I just quickly searched the archives and found no reference to it. Sorry, must have been a dream after all. (nice dream though) On 02/20/2004 05:15 PM Guillermo Meyer wrote: > I had this problem that produced me a CSV file with blank lines at top. > I solved it by removing al in the file, I mean, JSP tags > (including <%@ tags, etc) are all concatenated without break lines. > You will get the ugliest JSP page you have ever seen from developer > perspective, but this solved my problem. > > Cheers. > Guillermo. > > -Original Message- > From: Jerry Jalenak [mailto:[EMAIL PROTECTED] > Sent: Viernes, 20 de Febrero de 2004 01:07 p.m. > To: '[EMAIL PROTECTED]' > Subject: Extra Lines in Compiled JSP > > > Hi All, > > I should know how to fix this, but am at a loss. At the top of my JSP I > have the following lines: > > <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; > prefix="bean" %> <%@ taglib uri="/display" prefix="display" %> <%@ > taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> > <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; > prefix="nested" %> > <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"; > prefix="tiles" %> <%@ page language="java" %> <%@ page > contentType="text/html; charset=UTF-8" %> > > When I look at the compiled JSP, there are seven blank lines (i.e. > out.write("\r\n"); ). Is there anyway to have the JSP compiler (were > running Tomcat 5.0.18 Stable) NOT generate these lines? I guess they > come from the <% %> sources lines, but it really screws up my > generated HTML code > > > Thanks! > > Jerry Jalenak > Development Manager, Web Publishing > LabOne, Inc. > 10101 Renner Blvd. > Lenexa, KS 66219 > (913) 577-1496 > > [EMAIL PROTECTED] > > > This transmission (and any information attached to it) may be > confidential and is intended solely for the use of the individual or > entity to which it is addressed. If you are not the intended recipient > or the person responsible for delivering the transmission to the > intended recipient, be advised that you have received this transmission > in error and that any use, dissemination, forwarding, printing, or > copying of this information is strictly prohibited. If you have received > this transmission in error, please immediately notify LabOne at the > following email address: [EMAIL PROTECTED] > > > - > 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] > > -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
RE: Logic:iterate Exception
I forgot to add, parms is a bean declared as such: and is used all over this JSP. I don't get it. :-> -Original Message- :-> From: Randy Dillon :-> Sent: Friday, February 20, 2004 12:48 PM :-> To: 'Struts Users Mailing List' :-> Subject: Logic:iterate Exception :-> :-> :-> I have logic that looks like this: :-> :-> <% int n = 0; :->String strCat = ( (String[]) parms.get("cboCategory") )[n]; :->out.println(strCat + strCat + strCat); :-> %> :-> name="parms" property="cboCategory" > :-> , :-> <%strCat=( (String[]) parms.get("cboCategory") )[n];%> :-> :-> <%=strCat%> :-> :-> :-> The scriptlets are strictly for debugging purposes, because :-> the :-> javax.servlet.jsp.JspException: Cannot find bean cat in scope page :-> at :-> org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:717) :-> at :-> org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:290) :-> at _pages._product._orderdetail._jspService(orderdetail.jsp:48) :-> :-> Otherwise, everthing in the code block above works. In :-> fact, the code block (minus the scriptlets) was copied from :-> another page where it works without fail. Isn't the :-> parms.get(...) doing the same thing as the ...> combined with the ? :->
RE: [OT] Animated .GIF's
Colin - Can you post your ... code? I just tried to wrap my in one and it still doesn't work Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Colin Kilburn [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 12:42 PM > To: Struts Users Mailing List > Subject: Re: [OT] Animated .GIF's > > > Jerry, > > I was just toying with something similar yesterday. My image was > inside a div, though, and the animation works fine. ... i.e. > I changed > the display attribute on the div, not the image. I'm also using > mozilla on mandrake 9. Not sure about how it behaves in IE. > > HTH, > Colin > > Jerry Jalenak wrote: > > >I've been trying to find an answer to this via google for > awhile now, but > >can't seem to find any info on my problem. I'm hoping > someone might be able > >to shed some light on this for me. > > > >I've got a simple animated .gif (Loading Data... kind of > thing) that I need > >to display whenever my submit button is clicked. Until the > submit button is > >clicked though, I hide the image > > > > >style="display:none;"> > > > >When the user clicks the submit button, I use javascript to > change the style > >to "display:inline". The image appears, but the animation > doesn't seem to > >work. If I load the image without the "display:none" or even with > >"display:inline", the animation works fine. It only seems > to fail when the > >initial display setting is 'none'. What gives? Am I just missing an > >additional setting? > > > >Thanks. > > > >Jerry Jalenak > >Development Manager, Web Publishing > >LabOne, Inc. > >10101 Renner Blvd. > >Lenexa, KS 66219 > >(913) 577-1496 > > > >[EMAIL PROTECTED] > > > > > >This transmission (and any information attached to it) may > be confidential and > >is intended solely for the use of the individual or entity > to which it is > >addressed. If you are not the intended recipient or the > person responsible for > >delivering the transmission to the intended recipient, be > advised that you > >have received this transmission in error and that any use, > dissemination, > >forwarding, printing, or copying of this information is > strictly prohibited. > >If you have received this transmission in error, please > immediately notify > >LabOne at the following email address: > [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] > > This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logic:iterate Exception
I have logic that looks like this: <% int n = 0; String strCat = ( (String[]) parms.get("cboCategory") )[n]; out.println(strCat + strCat + strCat); %> , <%strCat=( (String[]) parms.get("cboCategory") )[n];%> <%=strCat%> The scriptlets are strictly for debugging purposes, because the combined with the ?
Re: [OT] Animated .GIF's
Jerry, I was just toying with something similar yesterday. My image was inside a div, though, and the animation works fine. ... i.e. I changed the display attribute on the div, not the image. I'm also using mozilla on mandrake 9. Not sure about how it behaves in IE. HTH, Colin Jerry Jalenak wrote: I've been trying to find an answer to this via google for awhile now, but can't seem to find any info on my problem. I'm hoping someone might be able to shed some light on this for me. I've got a simple animated .gif (Loading Data... kind of thing) that I need to display whenever my submit button is clicked. Until the submit button is clicked though, I hide the image When the user clicks the submit button, I use javascript to change the style to "display:inline". The image appears, but the animation doesn't seem to work. If I load the image without the "display:none" or even with "display:inline", the animation works fine. It only seems to fail when the initial display setting is 'none'. What gives? Am I just missing an additional setting? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [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]
[OT] Animated .GIF's
I've been trying to find an answer to this via google for awhile now, but can't seem to find any info on my problem. I'm hoping someone might be able to shed some light on this for me. I've got a simple animated .gif (Loading Data... kind of thing) that I need to display whenever my submit button is clicked. Until the submit button is clicked though, I hide the image When the user clicks the submit button, I use javascript to change the style to "display:inline". The image appears, but the animation doesn't seem to work. If I load the image without the "display:none" or even with "display:inline", the animation works fine. It only seems to fail when the initial display setting is 'none'. What gives? Am I just missing an additional setting? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Extra Lines in Compiled JSP
is it windows that has the eol be crlf and unix uses just cr? Somthing like that I think... try looking at your jsp file in a hex editor and see if it is crlf and if so change it to be just cr. Be careful moving file back and forth between windows and unix, there is a unix util called dos2unix and one called unix2dos that is suppose to do this kind of fixing for you. When ftp'ing files around use the type=ascii feature and supposedly it will automatically take care of this conversion for you when trasnfering files between windows and unix. - Jim -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 11:34 AM To: 'Struts Users Mailing List' Subject: RE: Extra Lines in Compiled JSP Thanks for the reply. I strung out the taglib defn's and reduced the number of out.writes from seven to one. It's better, but still not perfect. Seems like the jsp compiler should be smart enough to recognize that it doesn't need to generate anything for these kinds of lines. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 10:15 AM > To: Struts Users Mailing List > Subject: Re: Extra Lines in Compiled JSP > > > Try this: > <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; > prefix="bean" > %><%@ taglib uri="/display" prefix="display" > %><%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; > prefix="html" > %><%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; > prefix="nested" > %><%@ taglib > uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles" > %><%@ page language="java" > %><%@ page contentType="text/html; charset=UTF-8" %> > > The idea being you try to contain the \r\n inside the tags > and outside the > template text. > > --- Jerry Jalenak <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I should know how to fix this, but am at a loss. At the > top of my JSP I > > have the following lines: > > > > > > When I look at the compiled JSP, there are seven blank lines (i.e. > > out.write("\r\n"); ). Is there anyway to have the JSP > compiler (were > > running Tomcat 5.0.18 Stable) NOT generate these lines? I > guess they come > > from the <% %> sources lines, but it really screws up > my generated HTML > > code > > > > > > Thanks! > > > > Jerry Jalenak > > Development Manager, Web Publishing > > LabOne, Inc. > > 10101 Renner Blvd. > > Lenexa, KS 66219 > > (913) 577-1496 > > > > [EMAIL PROTECTED] > > > > > > This transmission (and any information attached to it) may > be confidential > > and > > is intended solely for the use of the individual or entity > to which it is > > addressed. If you are not the intended recipient or the > person responsible > > for > > delivering the transmission to the intended recipient, be > advised that you > > have received this transmission in error and that any use, > dissemination, > > forwarding, printing, or copying of this information is strictly > > prohibited. > > If you have received this transmission in error, please > immediately notify > > LabOne at the following email address: > [EMAIL PROTECTED] > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > __ > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > http://antispam.yahoo.com/tools > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make readonly in Select Box
Seems to me that this violates good UI design. I mean, what purpose does a Select Box have if you can't select anything. If I rememember my UI theory correctly, the selections should be displayed in a form such as static text that makes it clear that they aren't changeable. I might use a table (single column to mimic the layout of the Select) and display static text in it for the selected items. :-> -Original Message- :-> From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] :-> Sent: Friday, February 20, 2004 10:11 AM :-> To: [EMAIL PROTECTED] :-> Subject: Re: How to make readonly in Select Box :-> :-> :-> :-> We are achieving the same using disabled property. First :-> you need to check for the mode if it is edit then make your :-> select box is disabled with the selected value (you might :-> be having this already selected value in some where :-> session.). If you need to retrieve the value in this :-> edit mode retrieve it from the already stored value (session). :-> :-> otherwise as meeru suggested display it in a readonly textbox. :-> :-> Thanks, :-> Srini :-> :-> :-> >>> [EMAIL PROTECTED] 02/20/04 09:38AM >>> :-> Hi, :-> :-> I want to make readyonly in Select Box. If i gave :-> readonly="true". :-> There is no property :-> called readonly..What i have to do for that one :-> :-> :-> :-> Marketing :-> :-> :-> Human Resource :-> :-> :-> Administration :-> :-> :-> :-> Bye :-> Ram :-> :-> :-> :-> - :-> 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]
Validator Order with custom validations
Hi All, I have the following setup for validating certain fields. I have written a custom validator for validating certain date logic. validation-rules.xml validator.xml datePatternStrict MM/dd/ secondProperty presentationEnd datePatternStrict MM/dd/ secondProperty presentationStart and on my jsp Ok this works like a charm, if i submit the form without any values i get a javascript popup alert saying presentationStart is required, presentationEnd is required. However, when i put a value in presentationStart and submit i dont get a js popup for presentationEnd, however the validation runs and i get a server side error saying presentationEnd is required. So my question is when you put in a custom validator for one of the fields why doesnt it evaluate the required validation (javascript) for the 2nd field? is this a bug? Any help would be appreciated. If i remove my custom validator(xxxDates) from both fields, the js required pop up runs smoothly for the 2nd field if the first one is not null. So to recap when you put in a custom validator for one of the fields the validator doesn't run through the rest of the fields until it has performed the serverside validation on the custom validator for the 1st field. I am using struts 1.1 with validator as plug-in Ameer - Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want.
Re: Extra Lines in Compiled JSP
Maybe I just dreamt this but I thought I remember one of the tomcat committers saying here that they had added a config option to remove these blank lines around JSP & taglib tags, and set the configuration option by default to false/off, because it violates the JSP spec. I just quickly searched the archives and found no reference to it. Sorry, must have been a dream after all. (nice dream though) On 02/20/2004 05:15 PM Guillermo Meyer wrote: I had this problem that produced me a CSV file with blank lines at top. I solved it by removing al in the file, I mean, JSP tags (including <%@ tags, etc) are all concatenated without break lines. You will get the ugliest JSP page you have ever seen from developer perspective, but this solved my problem. Cheers. Guillermo. -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Viernes, 20 de Febrero de 2004 01:07 p.m. To: '[EMAIL PROTECTED]' Subject: Extra Lines in Compiled JSP Hi All, I should know how to fix this, but am at a loss. At the top of my JSP I have the following lines: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean" %> <%@ taglib uri="/display" prefix="display" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; prefix="nested" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles" %> <%@ page language="java" %> <%@ page contentType="text/html; charset=UTF-8" %> When I look at the compiled JSP, there are seven blank lines (i.e. out.write("\r\n"); ). Is there anyway to have the JSP compiler (were running Tomcat 5.0.18 Stable) NOT generate these lines? I guess they come from the <% %> sources lines, but it really screws up my generated HTML code Thanks! Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - 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] -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reset method in Form Bean
We had same issues like this in the beginning I remember and we have started calling reset explicitly on each ADD \ EDIT \ CANCAL \ DELETE in Action. >>> [EMAIL PROTECTED] 02/20/04 11:04AM >>> the scope for my form bean is in 'Request Scope' -Original Message- From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 9:55 PM To: [EMAIL PROTECTED] Subject: Re: Reset method in Form Bean what is the scope your FormBean ??? >>> [EMAIL PROTECTED] 02/20/04 10:32AM >>> Hi, I am having jsp page , which contains a text box for searching. Here i am having form bean for getting and setting value. In this form bean, i use the Reset method for reseting the values for each request. But it is not at all reseting the values each time. The previous value is displayed if we visis the page again. Even if we logged out and login the same value is appearing... Any idea? Help needed Ram - 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: Reset method in Form Bean
the scope for my form bean is in 'Request Scope' -Original Message- From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 9:55 PM To: [EMAIL PROTECTED] Subject: Re: Reset method in Form Bean what is the scope your FormBean ??? >>> [EMAIL PROTECTED] 02/20/04 10:32AM >>> Hi, I am having jsp page , which contains a text box for searching. Here i am having form bean for getting and setting value. In this form bean, i use the Reset method for reseting the values for each request. But it is not at all reseting the values each time. The previous value is displayed if we visis the page again. Even if we logged out and login the same value is appearing... Any idea? Help needed Ram - 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: Extra Lines in Compiled JSP
Thanks for the reply. I strung out the taglib defn's and reduced the number of out.writes from seven to one. It's better, but still not perfect. Seems like the jsp compiler should be smart enough to recognize that it doesn't need to generate anything for these kinds of lines. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 10:15 AM > To: Struts Users Mailing List > Subject: Re: Extra Lines in Compiled JSP > > > Try this: > <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; > prefix="bean" > %><%@ taglib uri="/display" prefix="display" > %><%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; > prefix="html" > %><%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; > prefix="nested" > %><%@ taglib > uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles" > %><%@ page language="java" > %><%@ page contentType="text/html; charset=UTF-8" %> > > The idea being you try to contain the \r\n inside the tags > and outside the > template text. > > --- Jerry Jalenak <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I should know how to fix this, but am at a loss. At the > top of my JSP I > > have the following lines: > > > > > > When I look at the compiled JSP, there are seven blank lines (i.e. > > out.write("\r\n"); ). Is there anyway to have the JSP > compiler (were > > running Tomcat 5.0.18 Stable) NOT generate these lines? I > guess they come > > from the <% %> sources lines, but it really screws up > my generated HTML > > code > > > > > > Thanks! > > > > Jerry Jalenak > > Development Manager, Web Publishing > > LabOne, Inc. > > 10101 Renner Blvd. > > Lenexa, KS 66219 > > (913) 577-1496 > > > > [EMAIL PROTECTED] > > > > > > This transmission (and any information attached to it) may > be confidential > > and > > is intended solely for the use of the individual or entity > to which it is > > addressed. If you are not the intended recipient or the > person responsible > > for > > delivering the transmission to the intended recipient, be > advised that you > > have received this transmission in error and that any use, > dissemination, > > forwarding, printing, or copying of this information is strictly > > prohibited. > > If you have received this transmission in error, please > immediately notify > > LabOne at the following email address: > [EMAIL PROTECTED] > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > __ > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > http://antispam.yahoo.com/tools > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reset method in Form Bean
what is the scope your FormBean ??? >>> [EMAIL PROTECTED] 02/20/04 10:32AM >>> Hi, I am having jsp page , which contains a text box for searching. Here i am having form bean for getting and setting value. In this form bean, i use the Reset method for reseting the values for each request. But it is not at all reseting the values each time. The previous value is displayed if we visis the page again. Even if we logged out and login the same value is appearing... Any idea? Help needed Ram - 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]
find ActionConfig
Hallo, is there any more effectively way to get the path from ActionConfig as this?: ActionServlet aServlet = super.getServlet(); ModuleConfig mConfig = aServlet.getModuleConfig(request); ActionConfig aConfig = new ActionConfig(); String path = aConfig.setModuleConfig(mConfig).getPath(); Thanks Jiri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reset method in Form Bean
Hi, I am having jsp page , which contains a text box for searching. Here i am having form bean for getting and setting value. In this form bean, i use the Reset method for reseting the values for each request. But it is not at all reseting the values each time. The previous value is displayed if we visis the page again. Even if we logged out and login the same value is appearing... Any idea? Help needed Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Extra Lines in Compiled JSP
I had this problem that produced me a CSV file with blank lines at top. I solved it by removing al in the file, I mean, JSP tags (including <%@ tags, etc) are all concatenated without break lines. You will get the ugliest JSP page you have ever seen from developer perspective, but this solved my problem. Cheers. Guillermo. -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Viernes, 20 de Febrero de 2004 01:07 p.m. To: '[EMAIL PROTECTED]' Subject: Extra Lines in Compiled JSP Hi All, I should know how to fix this, but am at a loss. At the top of my JSP I have the following lines: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean" %> <%@ taglib uri="/display" prefix="display" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; prefix="nested" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles" %> <%@ page language="java" %> <%@ page contentType="text/html; charset=UTF-8" %> When I look at the compiled JSP, there are seven blank lines (i.e. out.write("\r\n"); ). Is there anyway to have the JSP compiler (were running Tomcat 5.0.18 Stable) NOT generate these lines? I guess they come from the <% %> sources lines, but it really screws up my generated HTML code Thanks! Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - 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: Extra Lines in Compiled JSP
Try this: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean" %><%@ taglib uri="/display" prefix="display" %><%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %><%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; prefix="nested" %><%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles" %><%@ page language="java" %><%@ page contentType="text/html; charset=UTF-8" %> The idea being you try to contain the \r\n inside the tags and outside the template text. --- Jerry Jalenak <[EMAIL PROTECTED]> wrote: > Hi All, > > I should know how to fix this, but am at a loss. At the top of my JSP I > have the following lines: > > > When I look at the compiled JSP, there are seven blank lines (i.e. > out.write("\r\n"); ). Is there anyway to have the JSP compiler (were > running Tomcat 5.0.18 Stable) NOT generate these lines? I guess they come > from the <% %> sources lines, but it really screws up my generated HTML > code > > > Thanks! > > Jerry Jalenak > Development Manager, Web Publishing > LabOne, Inc. > 10101 Renner Blvd. > Lenexa, KS 66219 > (913) 577-1496 > > [EMAIL PROTECTED] > > > This transmission (and any information attached to it) may be confidential > and > is intended solely for the use of the individual or entity to which it is > addressed. If you are not the intended recipient or the person responsible > for > delivering the transmission to the intended recipient, be advised that you > have received this transmission in error and that any use, dissemination, > forwarding, printing, or copying of this information is strictly > prohibited. > If you have received this transmission in error, please immediately notify > LabOne at the following email address: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to make readonly in Select Box
We are achieving the same using disabled property. First you need to check for the mode if it is edit then make your select box is disabled with the selected value (you might be having this already selected value in some where session.). If you need to retrieve the value in this edit mode retrieve it from the already stored value (session). otherwise as meeru suggested display it in a readonly textbox. Thanks, Srini >>> [EMAIL PROTECTED] 02/20/04 09:38AM >>> Hi, I want to make readyonly in Select Box. If i gave readonly="true". There is no property called readonly..What i have to do for that one Marketing Human Resource Administration Bye Ram - 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: Accessing static field using EL
This is a very FAQ. You should read the JSTL specification. The EL can only reference standard JavaBean properties, collections, and maps. If you only have a couple of constants to reference, I would put them into session or application properties in your application init logic. If you have many constants, you might consider having a class use reflection to grab all the constants in a class and put them into a hashmap, keyed by the variable name. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eric Seynaeve Sent: Friday, February 20, 2004 1:25 AM To: [EMAIL PROTECTED] Subject: Accessing static field using EL I have problems accessing a static field using the Struts Expression Language. The goal is to put the names of all the form bean instance names, ... in static String fields and use those fields throughout as much files as possible. This to eliminate frantic debugging sessions due to typo's . This is a code snippet: public class SessionNumberForm extends AbisDynaActionForm { public static final String SESSION_NUMBER = "sessionNr"; ... } Here I try to access the field: but it gives following error: [ServletException in:/WEB-INF/tiles/index.jsp] No getter method for property ${SessionNumberForm.SESSION_NUMBER} of bean org.apache.struts.taglib.html.BEAN' How could this field be accessed? 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]
Extra Lines in Compiled JSP
Hi All, I should know how to fix this, but am at a loss. At the top of my JSP I have the following lines: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean" %> <%@ taglib uri="/display" prefix="display" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; prefix="nested" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles" %> <%@ page language="java" %> <%@ page contentType="text/html; charset=UTF-8" %> When I look at the compiled JSP, there are seven blank lines (i.e. out.write("\r\n"); ). Is there anyway to have the JSP compiler (were running Tomcat 5.0.18 Stable) NOT generate these lines? I guess they come from the <% %> sources lines, but it really screws up my generated HTML code Thanks! Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make readonly in Select Box
Use logic tags, and check if in edit mode then display the value using bean write, else display the drop down Ramachandran <[EMAIL PROTECTED]> wrote:If i make it as disable means, i was not able to retrieve the value na. For me now, If a user goes for a Edit Page, what he chooses while add should be displayed but in readonly mode... So shall i can use disable here? -Original Message- From: Nguyen, Hien [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 9:14 PM To: 'Struts Users Mailing List' Subject: RE: How to make readonly in Select Box But select has 'disabled' as an attribute (http://www.w3.org/TR/html401/interact/forms.html#h-17.6) so I think you can use 'disabled' to make it read-only. -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 10:39 AM To: 'Struts Users Mailing List' Subject: RE: How to make readonly in Select Box > I want to make readyonly in Select Box. If i gave > readonly="true". There is no property called readonly..What i > have to do for that one HTML Select groups don't have a "readonly" property, that's why the Struts tag doesn't have it. -- Tim Slattery [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] - Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want.
RE: How to make readonly in Select Box
If i make it as disable means, i was not able to retrieve the value na. For me now, If a user goes for a Edit Page, what he chooses while add should be displayed but in readonly mode... So shall i can use disable here? -Original Message- From: Nguyen, Hien [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 9:14 PM To: 'Struts Users Mailing List' Subject: RE: How to make readonly in Select Box But select has 'disabled' as an attribute (http://www.w3.org/TR/html401/interact/forms.html#h-17.6) so I think you can use 'disabled' to make it read-only. -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 10:39 AM To: 'Struts Users Mailing List' Subject: RE: How to make readonly in Select Box > I want to make readyonly in Select Box. If i gave > readonly="true". There is no property called readonly..What i > have to do for that one HTML Select groups don't have a "readonly" property, that's why the Struts tag doesn't have it. -- Tim Slattery [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: How to make readonly in Select Box
Then what i have to do it for making as read only. For example in Edit page they should not able to chhose the drop down. But add page thay can... Help please Bye Ram -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 9:09 PM To: 'Struts Users Mailing List' Subject: RE: How to make readonly in Select Box > I want to make readyonly in Select Box. If i gave > readonly="true". There is no property called readonly..What i > have to do for that one HTML Select groups don't have a "readonly" property, that's why the Struts tag doesn't have it. -- Tim Slattery [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 make readonly in Select Box
Hi Ramachandran: So maybe you could force the issue by using Javascript: write an onChange method to ensure the selection is always what you want it to be..? (I assume by a "read-only" drop-down you mean you want what you have selected to not be deselected by the user..?) Geeta "Slattery, Tim - BLS" wrote: > > I want to make readyonly in Select Box. If i gave > > readonly="true". There is no property called readonly..What i > > have to do for that one > > HTML Select groups don't have a "readonly" property, that's why the Struts > tag doesn't have it. > > -- > Tim Slattery > [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 make readonly in Select Box
As you said, there is no property called "readonly" for select box why don't you try with "disabled" of course you need to be careful when you submit the page and try to retrieve the value from disabled select box. >>> [EMAIL PROTECTED] 02/20/04 09:38AM >>> Hi, I want to make readyonly in Select Box. If i gave readonly="true". There is no property called readonly..What i have to do for that one Marketing Human Resource Administration Bye Ram - 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 make readonly in Select Box
But select has 'disabled' as an attribute (http://www.w3.org/TR/html401/interact/forms.html#h-17.6) so I think you can use 'disabled' to make it read-only. -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 10:39 AM To: 'Struts Users Mailing List' Subject: RE: How to make readonly in Select Box > I want to make readyonly in Select Box. If i gave > readonly="true". There is no property called readonly..What i > have to do for that one HTML Select groups don't have a "readonly" property, that's why the Struts tag doesn't have it. -- Tim Slattery [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 make readonly in Select Box
> I want to make readyonly in Select Box. If i gave > readonly="true". There is no property called readonly..What i > have to do for that one HTML Select groups don't have a "readonly" property, that's why the Struts tag doesn't have it. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to make readonly in Select Box
Hi, I want to make readyonly in Select Box. If i gave readonly="true". There is no property called readonly..What i have to do for that one Marketing Human Resource Administration Bye Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in join of hibernate
You would probably have better luck on the hibernate list. >>> [EMAIL PROTECTED] 02/20/04 7:50 AM >>> Friends, When i do this: select m.name, dm.name from com.MasterTable as m join com.DetailAndMaster as dm i get this: outer or full join must be followed by path expression - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error in join of hibernate
Friends, When i do this: select m.name, dm.name from com.MasterTable as m join com.DetailAndMaster as dm i get this: outer or full join must be followed by path expression Anybody could help me? Does this work or not? My config files are in the end of this e-mail. att, Paulo Marcio Config files: hibernate.properties hibernate.cglib.use_reflection_optimizer=false hibernate.cgf.xml http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd";> org.firebirdsql.jdbc.FBDriver jdbc:firebirdsql://localhost/c:/StrutsHibernateExample/db/HIBERNATE.GDB sysdba masterkey 5 100 1 12 10 100 1 12 10 net.sf.hibernate.dialect.FirebirdDialect true false MasterTable.hbm.xml http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";> DetailAndMasterTable.hbm.xml http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";> DetailTable2.hbm.xml http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";>
RE: html:text question
> how can i add the test value to the html:text like below > property="testers.testerName"/> > You can't nest tags, but you can use the "el" version of the Struts html tags: -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NullPointer when clicking link
When I push a html:link on my jsp, I get the following problem : [2/20/04 15:17:07:904 CET] 37edae9b WebGroup E SRVE0026E: [Servlet Error]-[action]: java.lang.NullPointerException at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:784) at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:364) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1481) I checked my struts-config, I use the right action call, the right actionForm. This is a part of my form declaration in my struts-config : EmptyForm extends DynaValidatorForm Anyone know what I'm doing wrong ? Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect problem
Hi Koen, Geeta's earlier solution shd work... Or Try this, we had a similar problem sometime n solved with these line... response.setHeader("Cache-control","private,no-cache"); response.setHeader("Expires","-1000"); response.setHeader("pragma","no-cache"); cio Raj - Original Message - From: Geeta Ramani To: Struts Users Mailing List Sent: Friday, February 20, 2004 6:45 PM Subject: Re: redirect problem Hi Koen: Try adding the foll. lines at the top of your (resultant) jsp: <% response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setIntHeader("Expires", 0); %> This *may* do the trick.. (I *hate* browser cache problems..(:(..) Regards, Geeta koen boutsen wrote: > Hi > I use a menu in my application. When a user clicks on a menu item, the browser > returns to a cached file, and does not do the action that is behind the menu item. > I thought I could solve this by making the forwards in the strutsconfig 'redirect = true'. > This way, cliking a menu item does go to the action, but in the > browser, it always goes back to the page with the previous content. > When I refresh the page, the correct content appears (without any action on the server.) > I use Websphere as application server and netscape en IE as browser. > > Can anyone explain me what really happens and how I can resolve this. > > Any help is very appreciated > > Koen Boutsen > > > Find what you are looking for with the Lycos Yellow Pages > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 > > - > 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: redirect problem
Geeta, I tried this, but that did not resolve the problem. Could it be a application server cash problem ? Koen -- - Original Message - DATE: Fri, 20 Feb 2004 08:15:16 From: "Geeta Ramani" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Cc: >Hi Koen: > >Try adding the foll. lines at the top of your (resultant) jsp: > ><% >response.setHeader("Cache-Control", "no-cache"); > response.setHeader("Pragma", "no-cache"); > response.setIntHeader("Expires", 0); >%> > >This *may* do the trick.. (I *hate* browser cache problems..(:(..) >Regards, >Geeta > >koen boutsen wrote: > >> Hi >> I use a menu in my application. When a user clicks on a menu item, the browser >> returns to a cached file, and does not do the action that is behind the menu item. >> I thought I could solve this by making the forwards in the strutsconfig 'redirect = >> true'. >> This way, cliking a menu item does go to the action, but in the >> browser, it always goes back to the page with the previous content. >> When I refresh the page, the correct content appears (without any action on the >> server.) >> I use Websphere as application server and netscape en IE as browser. >> >> Can anyone explain me what really happens and how I can resolve this. >> >> Any help is very appreciated >> >> Koen Boutsen >> >> >> Find what you are looking for with the Lycos Yellow Pages >> http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 >> >> - >> 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] > > Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect problem
Hi Koen: Just realised, my earlie solution may result in the annoying alert (in IE) about whether or not you want to refresh the page. So how about "fooling" the browser into thinking this is a "new" page? Attach a random number to the end of the url of your forwarded jsp (like myPage.jsp?id=somelargerandomnumber). You will have to make this change to the forward in your action, btw.. I remember reading this technique somewhere and thinking it a clever solution - except I didn't try it out ..! Good luck - hope something works for you: life is too short to spend it solving browser-caching issues..:) Geeta Geeta Ramani wrote: > Hi Koen: > > Try adding the foll. lines at the top of your (resultant) jsp: > > <% > response.setHeader("Cache-Control", "no-cache"); > response.setHeader("Pragma", "no-cache"); > response.setIntHeader("Expires", 0); > %> > > This *may* do the trick.. (I *hate* browser cache problems..(:(..) > Regards, > Geeta > > koen boutsen wrote: > > > Hi > > I use a menu in my application. When a user clicks on a menu item, the browser > > returns to a cached file, and does not do the action that is behind the menu item. > > I thought I could solve this by making the forwards in the strutsconfig 'redirect > > = true'. > > This way, cliking a menu item does go to the action, but in the > > browser, it always goes back to the page with the previous content. > > When I refresh the page, the correct content appears (without any action on the > > server.) > > I use Websphere as application server and netscape en IE as browser. > > > > Can anyone explain me what really happens and how I can resolve this. > > > > Any help is very appreciated > > > > Koen Boutsen > > > > > > Find what you are looking for with the Lycos Yellow Pages > > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 > > > > - > > 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: redirect problem
Hi Koen: Try adding the foll. lines at the top of your (resultant) jsp: <% response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setIntHeader("Expires", 0); %> This *may* do the trick.. (I *hate* browser cache problems..(:(..) Regards, Geeta koen boutsen wrote: > Hi > I use a menu in my application. When a user clicks on a menu item, the browser > returns to a cached file, and does not do the action that is behind the menu item. > I thought I could solve this by making the forwards in the strutsconfig 'redirect = > true'. > This way, cliking a menu item does go to the action, but in the > browser, it always goes back to the page with the previous content. > When I refresh the page, the correct content appears (without any action on the > server.) > I use Websphere as application server and netscape en IE as browser. > > Can anyone explain me what really happens and how I can resolve this. > > Any help is very appreciated > > Koen Boutsen > > > Find what you are looking for with the Lycos Yellow Pages > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 > > - > 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]
redirect problem
Hi I use a menu in my application. When a user clicks on a menu item, the browser returns to a cached file, and does not do the action that is behind the menu item. I thought I could solve this by making the forwards in the strutsconfig 'redirect = true'. This way, cliking a menu item does go to the action, but in the browser, it always goes back to the page with the previous content. When I refresh the page, the correct content appears (without any action on the server.) I use Websphere as application server and netscape en IE as browser. Can anyone explain me what really happens and how I can resolve this. Any help is very appreciated Koen Boutsen Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
automatic submission of jsp
Hi, I have an application with authentication done using j_security_check. My scenario is, when i sign-up a new user to my application, i have to automatically submit the login.jsp from an Action class. How can this be done. radha. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:text question
answer, U cant nest tags! either use html-el for getting the value or use scriptlets - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 4:35 PM Subject: html:text question > Question, > how can i add the test value to the html:text like below > > > > > but this is not working, any idea ? > thks > > > > > > - > 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]
html:text question
Question, how can i add the test value to the html:text like below but this is not working, any idea ? thks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Client Side Validation Question
Hi, I have a little problem with validation. I have a form with a field that show the property de a bean in a session scope. If the field is empty at the load of the page the validation works right, but if the property have any value at the load the validation (required) fail. I think that cause is the render of the to: and the value is not null. If the form field is cleared in the screen is empty but code fail to validate. Are there a workaround for this? Thanks in advance. -- Juan Carlos Paramá - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem to use
Hello Claudia, is there a "global.ldstelle=Deckstelle" line in your aplication.property after "global.ldstelle=breeding station"? It would overwrite the first entry. *** CW> Hallo, CW> I hava a Problem to use . CW> When I use a Browser with language arabien perhaps, my applikation CW> must use the default value from the CW> aplication.property. But it shows some values from the CW> aplication.property and some from the aplication.property_de. CW> The Browser shows me: CW> CW> CW>LNo. CW>name CW>Deckstelle CW>SSS/PS CW>> CW>programs forbreeding showjumpers CW> CW> And the Source Code is: CW> CW> CW>> CW>> CW>> CW>> CW>> CW> CW> CW> and the application.property: CW> global.ldstelle=breeding station CW> liste.lnr=LNo. CW> selform.lname=name CW> seite.phs=programs forbreeding showjumpers CW> liste.pblb=SSS/PS CW> and the application.property_de: CW> global.ldstelle=Deckstelle CW> liste.lnr=Nr. CW> selform.lname=Name CW> seite.phs=Programm forHannoveranerSpringzucht CW> liste.pblb=SSS/PS CW> You see, the result is a mix of both application.property CW> What can be wrong? CW> Thanks Claudia CW> - CW> To unsubscribe, e-mail: [EMAIL PROTECTED] CW> For additional commands, e-mail: CW> [EMAIL PROTECTED] Regards, Dirk +--- Quality leads ---+ | Dirk Markert [EMAIL PROTECTED] | | Dr. Markert Softwaretechnik AG | | Joseph-von-Fraunhofer-Str. 20 | | 44227 Dortmund | +-->>> to success! <<-+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing static field using EL
I have problems accessing a static field using the Struts Expression Language. The goal is to put the names of all the form bean instance names, ... in static String fields and use those fields throughout as much files as possible. This to eliminate frantic debugging sessions due to typo's . This is a code snippet: public class SessionNumberForm extends AbisDynaActionForm { public static final String SESSION_NUMBER = "sessionNr"; ... } Here I try to access the field: but it gives following error: [ServletException in:/WEB-INF/tiles/index.jsp] No getter method for property ${SessionNumberForm.SESSION_NUMBER} of bean org.apache.struts.taglib.html.BEAN' How could this field be accessed? Thanks, Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem to use
Hallo, I hava a Problem to use . When I use a Browser with language arabien perhaps, my applikation must use the default value from the aplication.property. But it shows some values from the aplication.property and some from the aplication.property_de. The Browser shows me: LNo. name Deckstelle SSS/PS programs forbreeding showjumpers And the Source Code is: and the application.property: global.ldstelle=breeding station liste.lnr=LNo. selform.lname=name seite.phs=programs forbreeding showjumpers liste.pblb=SSS/PS and the application.property_de: global.ldstelle=Deckstelle liste.lnr=Nr. selform.lname=Name seite.phs=Programm forHannoveranerSpringzucht liste.pblb=SSS/PS You see, the result is a mix of both application.property What can be wrong? Thanks Claudia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts and I8N looking for a good combination
Is there any (preferably GPL:ed or equivalent) framework out there for internationalization of all texts on a site ? In particular I'm looking for something that integrates well with struts. I know I can use different resource-files for different languages in Struts. The problem is that using files for internationalizations quickly becomes hard to handle, particularly as the amount of text and languages increases. I also want to be able to dynamically update text content when the site is up and running (very hard to accomplish using textfiles). Anyone have any recommendations / experiences ? //Linus Nikander - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic Textboxes Problem
Look at the posts on nesting beans, indexed properties and such like. I haven't looked but Niall's post yesterday I believe covers this sort of problem. The basic idea is that you have a bean/actionform per row. On 20 Feb 2004, at 04:41, Vishal Arora wrote: Hi, My problem is that on my page i have fixed number of columns(e.g say 5) but no of rows are dynamic soo how can i construct a bean with the help of DynaActionForm... do anyone has any code ..say example it would be very benificial for me. Thanks , Vishal - 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: Eclipse + Tomcat plugin question
still trying... my folder structure is like this: c:\development\-eclipse \-tomcat how do i check the working dir ? --- Andrew Hill <[EMAIL PROTECTED]> wrote: > Maybe its a working directory thing? > > I know when I use sysdeo 2.2.1 (2.2 is buggy) with > Eclipse 2.1 the working > directory will be c:\eclipse (cos thats where my > eclipse is), so any code in > the webapp that makes the assumption that its > working directory is the > tomcat bin folder has problems. > > (In some cases I have sidestepped the issue by > copying the things its > looking for from bin to my eclipse folder. Yucky but > it lets me run under > eclipse and debug at least!... ) > > -Original Message- > From: lixin chu [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 17 February 2004 19:05 > To: [EMAIL PROTECTED] > Subject: Eclipse + Tomcat plugin question > > > Hi , > sorry if this is not the right forum for this > question: > > I am using Eclipse 3.0M6, Tomcat 5.0.18 and Sysdeo > plugin for Tomcat 2.2.1, and Struts 1.1. > > everything works fine until I wanted to use Log4J in > my code. When I start Tomcat from within Eclipse, it > reports missing log4j.jar in Tomcat\bin; but after > adding log4j-1.2.8.jar, new error msg saying that > missing log4j-core.jar. > > I do not know why I need this as I thought there is > only one log4j jar file. > > but googled and there is a log4j-core.jar but again, > a > new error came out saying that somethign to do with > tomcat\conf\server.xml. > > lost now. > > appreciate your help ! > li xin > > __ > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing > online. > http://taxes.yahoo.com/filing.html > > - > 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!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]