Re: Labels in struts 1.2

2011-06-13 Thread Jari Fredriksson
The 3rd URL works, two first seem to be stale. -- Q: How do you play religious roulette? A: You stand around in a circle and blaspheme and see who gets struck by lightning first. signature.asc Description: OpenPGP digital signature

Re: Labels in struts 1.2

2011-06-13 Thread Jari Fredriksson
13.6.2011 13:53, Pankaj Gupta kirjoitti: > Hi All, > > Need quick help. I need to display label with tool tip. > But not sure, if strust 1.2 has any label UI, which can be used. > > Appreciate your help. I have used something called "wz_tooltip.js", a javascript tool. It worked like charm with

Re: JPA with Struts 1

2011-01-11 Thread Jari Fredriksson
On 11.1.2011 18:07, Anjib Mulepati wrote: > Can I use JPA with Struts 1? > > If yes is there any good tutorial I can look into? > I have used it so that I manipulated all JPA objects in a EJB 3.x Session bean, which was called from Structs Actions. Session bean Dependency Injection does not wor

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Jari Fredriksson
20.10.2009 21:19, Mike Baranski kirjoitti: > So, I want to ship 2 versions (or more) of my views. > > The will be in > /pages/jsps/theme1/x.jsp > and > /pages/jsps/theme2/x.jsp > > I want the user to be allowed to set the theme, and my result tag in the xml > be something like: > > /pages/jsps

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Jari Fredriksson
21.10.2009 5:22, Tommy Pham kirjoitti: > If you're using S2, you could always return the 'theme1' or 'theme2' result > in your action class and have the mapping for it. That's absolutely a disgusting idea, think about 10 themes, and add to that user installable themes... A switch() at end of e

Re: struts 1.2 - HttpServletRequest.getRemoteUser() returns NULL

2009-10-14 Thread Jari Fredriksson
15.10.2009 7:05, Sandeep Shenvi kirjoitti: Hi, We are developing a web application with Single Sign On (SSO) feature using struts 1.2 and are using tomcat 6.0 container for deployment. We want to achieve a scenario similar to Windows Authentication. For this we want to know the user (user nam

Re: Form doesn't clear

2009-04-20 Thread Jari Fredriksson
> Hi, > Using Struts 1.3, Tomcat 6. > > I have the two following problems: > > 1. I have a screen where I enter some text and call a > struts action to insert it into the database. The action > calls a DAO to do that. > When the screen returns, the values I entered in the text > fields are still

Re: [S1] Global Error Page: Exception available?

2008-08-28 Thread Jari Fredriksson
> Heya! > > Does Struts save the exception anywhere in the request > before loading a global-error-page? > > I would not like to catch exceptions in my Action and > save the error message, and I guess that is a common > problem. > > So is there any way I can print the > Exception.getMessage()

[S1] Global Error Page: Exception available?

2008-08-27 Thread Jari Fredriksson
Heya! Does Struts save the exception anywhere in the request before loading a global-error-page? I would not like to catch exceptions in my Action and save the error message, and I guess that is a common problem. So is there any way I can print the Exception.getMessage() in the global error p

Re: Validator Comparing 2 Date Fields

2006-03-20 Thread Jari Fredriksson
starki78 wrote: Hi, I've a short question. Is it possible to compare two fields which contain date-values. I would like to check if a start-date is older than an end-date. This should be a common problem. How to implement this? Thanks a lot Starky Convert the values to Java Dates and make th

Re: Passing value from one form to another

2006-03-15 Thread Jari Fredriksson
Yariel Ramos Moreno wrote: Hi: I have a form with a text area (input) and whe I submit it, I need to show this value in the input field of another form. How can I do this?? One solution is to use common form bean for both forms, and keeping that in session scope maybe. I'm pretty new to st

Re: Opening a MS Word from JSP/HTML

2006-02-20 Thread Jari Fredriksson
Anjishnu Bandyopadhyay wrote: Hi all, I have a static MS Word document, which I want to open on click of a hyperlink in my JSP page. I am trying like: window.open('abc.doc','',600,600); But the Word doc is not properly opening. In IE, the document opens in the browser itself. In Mozilla,

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Jari Fredriksson
Swapnil Patil wrote: Hi, I modify my Javascript like follows: function goURL(tmp){ document.forms[0].action=eval("/Log/log.do?action=First"); document.forms[0].submit(); } Is eval really needed? . Check whether you really need /Log in contexet path? Try wih following function. function goURL(

Re: Spawning a new window from Action.execute

2006-02-16 Thread Jari Fredriksson
Tom Ansley wrote: Yes, I use javascript for the exact problem you mention. Here is the code I use for the different possible formats: That way the Form gets not submitted, and the bean does not have the latest data on form. It may not always be a problem, but I see it not perfect.. But i

Spawning a new window from Action.execute

2006-02-13 Thread Jari Fredriksson
Hello, new user here. New with struts, but looks good so far. I have one special need now, though.. Would like to open something in a new window, after getting the data into form bean, and validated it. This may not be a struts specific problem, but in case someone has ideas for it. Specif