RE: Last Page Regenration

2006-11-09 Thread Chetan Pandey
Use Filters. On every page a User visits make it visit a Filter. Record the page when it is visited and store it in the DB. That what when he logs in fetch this value and send User to this page. Make sure you put your Filter Info in web.xml in the following manner: filter

How to use Jboss datasource in struts-config.xml

2006-11-09 Thread Venkata Phani Kumar
Hi, I have created a datasource which will bind to a jndi name. Now i want to use the same datasource in my struts application. For this i need to mention the same jndi name in my struts-config.xml. can any body help me out how to mention the jndi name in struts-config.xml Thanks

confused with redirects

2006-11-09 Thread Rahul Patel
Hi All, I have a very confusing issue at hand that I have been trying to solve for a couple of days. I have a Struts-based application where my index.jsp has only one line html:redirect forward=welcome/ Further, once the user logs in, he is forwarded to applications based on his feature

Re: confused with redirects

2006-11-09 Thread James Mitchell
Please reply with the entire index.jsp content and tell us what version of Struts you are using. I assume 1.2.x, and so I'm not sure what html:redirect is. -- James Mitchell 678.910.8017 On Nov 9, 2006, at 6:36 AM, Rahul Patel wrote: Hi All, I have a very confusing issue at hand

Re: confused with redirects

2006-11-09 Thread Rahul Patel
I am using Struts 1.1. Also, I might have typed in the wrong tag - it is supposed to be logic:redirect My index.jsp just has the following line (and the declaration for the tag library) logic:redirect forward=welcome/ I have a menu containing links to forward the user to. e.g. one link

Re: confused with redirects

2006-11-09 Thread James Mitchell
;) I thought so. So, all the following are true: - you are testing this on your local machine (your browser is hitting your own machine) - you have enabled cookies on your machine (if not, make sure all urls are rewritten correctly, before you click on them) - you have a global forward

Re: How to use Jboss datasource in struts-config.xml

2006-11-09 Thread Antonio Petrelli
Venkata Phani Kumar ha scritto: Hi, I have created a datasource which will bind to a jndi name. Now i want to use the same datasource in my struts application. For this i need to mention the same jndi name in my struts-config.xml. can any body help me out how to mention the jndi name in

Tiles +GetTag +Tomcat 5.? problem

2006-11-09 Thread Eduardo Simioni
Hi all, I'm facing a problem with Tiles GetTag on recent Tomcat versions (couldn't find the exact version, but is the one packaged with Sun Application Server EE 8). I have (among others) a tiles:get name=menu / tag. That menu can be present or not as it is programmatically inserted. If it's

RE: [Struts 2] execute() method not firing in Action

2006-11-09 Thread Wesley Wannemacher
Hello, [Ted Husted wrote:] Valiation isn't passing. That's why input is being returned, and why the Action class is never invoked. If the messages are not displaying, the most likely cause is that a property is being validated that is not present on the page (so there is no where to display

Re: [Struts 2] execute() method not firing in Action

2006-11-09 Thread Ted Husted
On 11/9/06, Wesley Wannemacher [EMAIL PROTECTED] wrote: Once again I am humbled by your mystical kung-fu. I looked at my -validation.xml file, and sure enough, I had mystyped one of the form field names. Just a simple matter of been there, did that :) Being new to Struts, now I'm sort of

Re: Cannot Retrieve Request Parameter

2006-11-09 Thread Robert Harrison
Chris, Thanks for your suggestions/questions. Here is a truncated version of makeparms. private StringBuffer makeParms(UserVO userVO, CreditCardForm creditCardForm, ResourceBundle props) { // variables for cc vendor String separator = new String(); StringBuffer parms = new

Re: Tiles +GetTag +Tomcat 5.? problem

2006-11-09 Thread Antonio Petrelli
Eduardo Simioni ha scritto: Hi all, I'm facing a problem with Tiles GetTag on recent Tomcat versions (couldn't find the exact version, but is the one packaged with Sun Application Server EE 8). I have (among others) a tiles:get name=menu / tag. That menu can be present or not as it is

[OT][ANN] REMINDER: JAVAWUG BOF 23 / Skills Matter Sun London / 15 Sept 2006 @ 18:30 / Open Space Discussion

2006-11-09 Thread Peter . Pilgrim
Hi I would like to formally announce that ``JAVAWUG'' (Java Web User Group) is holding the Twenty Third Birds-of-Feather at the Skills Matter's London Office on Wednesday, 15th Novemeber 2006 from 18:30. +-+--+ | TWO QUESTIONS | Open

Re: Cannot Retrieve Request Parameter

2006-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Harrison wrote: Here is a truncated version of makeparms. String separator = new String(); StringBuffer parms = new StringBuffer(); String desc = props.getString(credit.card.description); String cost

Re: Cannot Retrieve Request Parameter

2006-11-09 Thread Robert Harrison
Chris, Thanks for your generosity. I'll give your suggestions a whirl. Bob On 11/9/06, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Harrison wrote: Here is a truncated version of makeparms. String separator = new

[OT] Deploy Images externally from application

2006-11-09 Thread AQureshi
Hello, I have an application which contains a bunch of images for products whose filenames come from the database. Right now the images are stored inside the WAR file when deploying the application, which is fine but the problem is that when they become part of the CVS code repository it

Select Multiples Check Box

2006-11-09 Thread Daniel Chacón Sánchez
hi all! I have a question, I'm using struts. html:select ... html:option Ihave an object of pacients,I show them on a JSP,then I need to select some of them (by checkbox) andthen submit the form. In the action i need toknow whichpatients where selected.The object of patients is an

Re: Select Multiples Check Box

2006-11-09 Thread Daniel Chacón Sánchez
If someone explain how to do this with a multiple select and with checkboxs better for me :-) 2006/11/9, Daniel Chacón Sánchez [EMAIL PROTECTED]: hi all! I have a question, I'm using struts. html:select ... html:option I have an object of pacients, I

Nested Tiles

2006-11-09 Thread Elie Ciment
I saw a post on the mailing list archives regarding nested tiles. I see that they have been added over the years, and wanted to know how to implement them in the JSP page. For example, if I have a subMenu in the Tiles, then how do I then get the contents of the subMenu in the JSP page using

Input and results on the same JSP

2006-11-09 Thread Prakash Inuganti -X \(pinugant - Digital-X, Inc. at Cisco\)
Hi, I am trying to display entry and results on the same screen. The idea is like this. I have a textarea where some values can be entered. On submitting this data, the same form refreshes displaying the data in a table. Can this be done? I create a bean with the values entered in textarea and

Validation problem

2006-11-09 Thread Li
Hi all, I met very wired problem. A have a DynaValidatorForm which is assigned to an action. When I didnt put this form to validation.xml. It works fine. When I put this into validation.xml in order to validate Empty Entry Situation It throws exception: javax.servlet.ServletException:

Re: Tiles +GetTag +Tomcat 5.? problem

2006-11-09 Thread Chris Pratt
Make sure you define the menu attribute to by type=string, it seems to be assuming that menu is type=page. (*Chris*) On 11/9/06, Antonio Petrelli [EMAIL PROTECTED] wrote: Eduardo Simioni ha scritto: Hi all, I'm facing a problem with Tiles GetTag on recent Tomcat versions (couldn't find

RE: Confused by issue with being directed to index.jsp

2006-11-09 Thread Patel, Rahul
Thanks Laurie! That was it. I had a busy box in a javascript on the page and the src property of the images in there was set to '' (i.e. blank). Thanks a lot. -Rahul -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, November 08, 2006

Re: Input and results on the same JSP

2006-11-09 Thread Angelo zerr
Hi Prakash, If you can display the value of the textarea at readonly, you can use FormView. This taglib is enable to manage state in your JSP for your form HTML elements. Eg : generate textarea value=INPUT_VALUE /textarea (at READ-WRITE state) and INPUT_VALUE (at READ_ONLY state). You manage

Re: Input and results on the same JSP

2006-11-09 Thread Jeremiah Johnson
A table of form elements mapped to the same property as other items on the form may be a problem (even if disabled). Other then that I can't think of an issue. Is there a specific problem? Jeremiah Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco) wrote: Hi, I am trying to display

RE: Input and results on the same JSP

2006-11-09 Thread Wesley Wannemacher
I've done this sort of AJAX-y in the past... You have 2 DIVs one that contains the form you want, then another DIV that contains the data table. Then you create a Javascript global variable that acts as a switch to indicate which div should be visible. Then, instead of having your form post

Struts 2 and JSTL

2006-11-09 Thread Asthana, Rahul
Hi All, Is JSTL and JSTL EL the library and expression language of choice in Struts 2? I read about OGNL somewhere.What library does it use? What are its advantages over JSTL? regards Rahul

Re: Tiles +GetTag +Tomcat 5.? problem

2006-11-09 Thread Eduardo Simioni
I was reading some posts on dev list and realized that GetTag is obsolete and going to be removed soon. Well, the tag lib for tiles doesn't define attribute 'type' for get nor insert tags. So I didn't understand Chris' suggestion. If I change tiles:get name=menu / for tiles:insert

Re: Validation problem

2006-11-09 Thread Niall Pemberton
Look at where you're directing the action to go to if an error occurs - i.e. what have you specified as you're input for the action in your struts-config.xml? It looks like the error occured after validation failed and when it tried to forward to whatever was specified in the input parameter.

displaying non-localized erorr messages

2006-11-09 Thread Youssef A. Mohammed
Hi all; There is a requirement to display a message that are retrieved from the backend system without the need to localize it tin the MessageResource files. That's the backend system will return a dynamic error message ERROR 1 2 3 and I just want to display this using the html:errors tags

why Struts 2 ? ,( justified reasons to migrate)

2006-11-09 Thread Levan Dvalishvili
Hi All! I have been recently trying to come up with at least top 5 justifieable reasons , why one should consider migrating from struts 1.3 (or even 1.2.X) to struts 2,bascially , what are the gaining points that justify migration headache? Not talking about more cutting edge architecture, IOC,

Re: Tiles +GetTag +Tomcat 5.? problem

2006-11-09 Thread Chris Pratt
In your tiles definition, where you define the menu attribute, make sure that it is marked type=string. You should have something similar to: definition name=register2.pane extends=default.pane put name=pagetitle value=members type=string/ put name=body value=register2.layout

Tiles Menu Items

2006-11-09 Thread Elie Ciment
Hi, I have an issue with Struts Tiles putList items. I can get all the items in my jsp page fine, with the links and values for each menu item. The problem is, when I try to nest a putList tag within another one, to attempt to create subMenu functionality. I have no way of retrieving the

Re: Validation problem

2006-11-09 Thread Li
Hi, Niall, Problem solved. That's cuz I was trying to forward to another customized action. I had made this action as ForwardAction provided by Struts. It works now. Thanks. Sorry I was a bit rush writing the previously email so that forgot to put the version number. Regards Li On 11/10/06,

Re: Tiles +GetTag +Tomcat 5.? problem

2006-11-09 Thread Eduardo Simioni
Chris, I'm just supporting the developers team on this error, don't know much about the project. I know that nothing is being defined in the tiles definition file. Page components are being defined on the caller page, via tiles:put /, and the menu attribute is being defined programmatically. The

RE: Input and results on the same JSP

2006-11-09 Thread Prakash Inuganti -X \(pinugant - Digital-X, Inc. at Cisco\)
Hi, It was an error in my logic:iterate tag and the JSP was throwing 2006-11-09 14:11:25 ApplicationDispatcher[/ExtendedSupport] Servlet.service() for servlet jsp threw exception java.lang.NullPointerException: Null attribute name at

Fwd: RE: Input and results on the same JSP

2006-11-09 Thread Brian Holzer
**DISCLAIMER** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this

RE: RE: Input and results on the same JSP

2006-11-09 Thread Prakash Inuganti -X \(pinugant - Digital-X, Inc. at Cisco\)
Hi Brian, I am trying to do exactly what you described here. Good to know it can be done. I am reassured now in case I run into errors. Thanks Prakash From: Brian Holzer [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 3:32 PM To:

Re: RE: Input and results on the same JSP

2006-11-09 Thread robin bajaj
Hi Guys, sorry to jump in this thread. I am trying to achieve this sort of AJAX functionality at Struts 1.2.x level. Is it possible? or Do I have to upgrade to Struts 2.x for AJAX support ? Any good articles for this (preferrable Struts 1.2.x specific) ? Appreciate your help in advance, thanks,

RE: RE: Input and results on the same JSP

2006-11-09 Thread Prakash Inuganti -X \(pinugant - Digital-X, Inc. at Cisco\)
Hi Robin, I haven't used AJAX with struts yet. It would be good if anyone can point us to some articles. I heard people mention DOJO . Maybe we can start with it. Thanks Prakash -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 4:04 PM

RE: RE: Input and results on the same JSP

2006-11-09 Thread Asthana, Rahul
AJAX is very simple and does not need any special serverside support. http://www.maxkiesler.com/index.php/weblog/comments/make_an_ajax_website_in_less_than_10_minutes/ -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 4:04 PM To: Struts Users

Re: Tiles +GetTag +Tomcat 5.? problem

2006-11-09 Thread Chris Pratt
Yes, add the type=string to the tiles:put tags. (*Chris*) On 11/9/06, Eduardo Simioni [EMAIL PROTECTED] wrote: Chris, I'm just supporting the developers team on this error, don't know much about the project. I know that nothing is being defined in the tiles definition file. Page components

Re: Select Multiples Check Box

2006-11-09 Thread Daniel Chacón Sánchez
anyone?? 2006/11/9, Daniel Chacón Sánchez [EMAIL PROTECTED]: If someone explain how to do this with a multiple select and with checkboxs better for me :-) 2006/11/9, Daniel Chacón Sánchez [EMAIL PROTECTED]: hi all! I have a question, I'm using struts. html:select ...

problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread robin bajaj
Hi Everybody, - SUMMARY - Can anyone tell me as to how can I make my jsp lying in Web-inf/jsp/ folder pick the stylesheet and javascript lying in Web-inf/scripts and Web-inf/css ?? - DETAILS - I have SSL enabled my web-app this morning using SSLext release 0 . I am using Struts 1.2.x with

Re: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread Chris Pratt
Well, let's think about this for a minute. If the browser can't get at your images and css, how is it supposed to use them on the web page. And since the web server is mapped to ensure anything with a .jsp extension is processed before returning it to the browser, there's no way to get to that

Re: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread Ed Griebel
What happens when the JSP is converted to HTML, it is sent to the browser. The browser then tries to access the css and js files from the webserver, but since the HTML points to web-inf, it won't serve them. One way to do it is to create an action mapping that is just defined as a ForwardAction,

In search of a perfect AJAX solution for Struts

2006-11-09 Thread robin bajaj
Hi Guys, In search of a perfect AJAX solutions for Struts 1.2.x , I just came across this Struts HTML taglib mod. which does AJAX for you declaratively. here's the site - http://struts.sourceforge.net/ajaxtags/index.html Here's the goal (as mentioned on site) This project has the

Re: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread robin bajaj
Hi Ed, Thanks for the suggestion, I agree with you. But when I changed my JSP Web-inf/jsp/non-tiles.jsp to point to my .css and .js in your suggested way, I get weird behaviour in the browsers. In IE 6, I get a blank page *(yes a totally white blank page) In Mozilla firefox 2.0 , I get simple

Re: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread Ed Griebel
You're getting blank pages or no styles because ${context_root} is not a real variable, the string ${context_root} may even be in your generated HTML, which would be way wrong. Actually, ${context_root} was a placeholder for the correct variable that I didn't know the exact value of off the top

Fw: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread robin bajaj
Hi there, Okay, just to fix the blank pag issues in IE, I just went back to square one and just applied your suggestion of using the following snippet in my jsp , Now both IE and Firefox show simple contents without applying the stylesheets or javascript effects. script

Re: In search of a perfect AJAX solution for Struts

2006-11-09 Thread Frank W. Zammetti
FYI, support for that taglib ceased a long time ago. It has since grown up to something much bigger and better: AjaxParts Taglib (APT), a component of Java Web Parts (JWP): http://javawebparts.sourceforge.net ...and directly to the taglib:

Re: Tiles Menu Items

2006-11-09 Thread Elie Ciment
Here's a solution I thought of for the time being; if anyone else has any better way of accomplishing this, or comments, please share them with me. The following takes a putList containing items, as well as nested putLists (maximum one level of nesting for this example, but it can be extended to

Re: Fw: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread Christopher Goldman
On Thu, 2006-11-09 at 17:29 -0500, robin bajaj wrote: Hi there, Okay, just to fix the blank pag issues in IE, I just went back to square one and just applied your suggestion of using the following snippet in my jsp , Now both IE and Firefox show simple contents without applying the

RE: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread Karr, David
One strategy that might be worth pursuing is to forget the idea of moving your JSP pages out of the webroot, but just ensuring that they can't be accessed from the browser. This could be done by adding a security constraint to your web.xml for the user nobody for *.jsp. If the browser only ever

Re: Transaction control in Struts

2006-11-09 Thread Ted Husted
Generally, transactions are associated with database operations, where multiple tables need to be updated, and if any update fails, then all the updates should fail. Struts doesn't not provide a data access layer, and so transaction management has been out of scope. Typically, transactions will

Re: Select Multiples Check Box

2006-11-09 Thread Christopher Goldman
On Thu, 2006-11-09 at 15:33 -0600, Daniel Chacón Sánchez wrote: anyone?? 2006/11/9, Daniel Chacón Sánchez [EMAIL PROTECTED]: If someone explain how to do this with a multiple select and with checkboxs better for me :-) 2006/11/9, Daniel Chacón Sánchez [EMAIL PROTECTED]: hi all!

Re: Struts2 question on action with properties

2006-11-09 Thread Ted Husted
The typical approach is to place an input method on the Action that is associated to the form. To display the method, you can refer to action_input and then to submit the action you can refer to just action. If you want to avoid defining two action elements, you can use wildcards. action

[s2] Requirements

2006-11-09 Thread Dion Gillard
Is there doco somewhere on the minimum requirements for S2? e.g.: servlet 2.1 jsp 1.0 jdk 1.2 jdbc 1.2 jee 2.3 etc? -- http://www.multitask.com.au/people/dion/ Rule of Acquisition #91: Hear all, trust nothing.

Re: Losing Locale after Sesion.invalidate()

2006-11-09 Thread Chris Pratt
User evnafets over on the JSTL Forums at forum.java.sun.com tracked down the cause of the problem. In his words: The problem is JSTL is being helpful. Perhaps too helpful in this case. Basically it is looking for an exact match between ResourceBundle and your Locale settings. It will look for

Re: Deploy Images externally from application

2006-11-09 Thread AQureshi
Maybe a taglib would be a better solution? Anyone else had to do this? [EMAIL PROTECTED] wrote on 11/09/2006 10:31:49 AM: Hello, I have an application which contains a bunch of images for products whose filenames come from the database. Right now the images are stored inside the WAR

Re: Losing Locale after Sesion.invalidate()

2006-11-09 Thread Chris Pratt
Woa, that didn't work. According to a comment in the JSTL code, the Java developers don't know what their doing and the JSTL guys decided that the whole idea of a default resource bundle is non-portable. Not sure why, but that means that in order for this to work properly in both Struts and

Re: Losing Locale after Sesion.invalidate()

2006-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: The problem is JSTL is being helpful. Perhaps too helpful in this case. Basically it is looking for an exact match between ResourceBundle and your Locale settings. It will look for English first, but only find the

Re: Losing Locale after Sesion.invalidate()

2006-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: Woa, that didn't work. I didn't really expect it to... I would have expected you to get a bunch of blank messages (since application_en.properties had nothing in it). I don't think that resource bundles chain or anything

Re: Losing Locale after Sesion.invalidate()

2006-11-09 Thread Chris Pratt
It's not that I think every application should defalt to English, it's that I want the default language for MY application to be English. But to do that I have to maintain two copies of the same file. That's bad design. It also doesn't appear to understand the concept of layering. If I ask

Re: [OT] Deploy Images externally from application

2006-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Affan, [EMAIL PROTECTED] wrote: I have an application which contains a bunch of images for products whose filenames come from the database. Right now the images are stored inside the WAR file when deploying the application Ugh. We don't care

Re: Losing Locale after Sesion.invalidate()

2006-11-09 Thread Chris Pratt
They shouldn't worry about what the default language is, that's my job. My application is set up with English and French translations (since it's targeted at Canada). But if someone from China comes to my site, I don't want it to blow up and display nothing, it should default to some language,

Re: Struts2 question on action with properties

2006-11-09 Thread Ing. Andrea Vettori
Ok I understand. What I'm missing is that when the form is displayed the Action is not yet istantiated so no methods can be called. If you want to call a method of that Action you must instantiate it with the action tag. Thanks Il giorno 10/nov/06, alle ore 00:15, Ted Husted ha scritto:

Problem of File Uploading through SSL

2006-11-09 Thread Mano Chinthaka Dasanayaka
Hi All, I have encountered an issue when uploading files through SSL. I'm Using Struts 1.2, FormFiles.and it works on Fire fox. Any Idea..? Is there any IE 6.0 Settings to work this..? Thanks in Advance Mano