Re: call a struts action from an axis service

2006-09-28 Thread Antonio Petrelli
Patrice Le Cozler ha scritto: My business logic is not in actions but is not struts-independant since it uses datasources initialized during struts servlet loading. Is there a way to get theses datasources and more generally get struts config from another servlet inside the same webapp ? For

RE: [OT] Paging at the database level

2006-09-28 Thread David Friedman
Valuelist (http://valuelist.sourceforge.net) is one paging table tag library which has supported database side paging since April/06. There are some notes about it on their front page. Regards, David -Original Message- From: Thomas Joseph [mailto:[EMAIL PROTECTED] Sent: Friday, September

Re: How do i know if exits errors in any scope?

2006-09-28 Thread Venkata Phani Kumar
Hi Ramos, You can check errors present using validator tld as You can get property specific errors using - Original Message - From: "Yariel Ramos Moreno" <[EMAIL PROTECTED]> To: Sent: Friday, September 29, 2006 12:59 AM Subject: How do i know if exits errors in any scope? How do i

Re: How to restrict the user to modify the address bar url

2006-09-28 Thread sowjanya chimmani
As my application is intranet application all my users may not disable the javascript so can u please provide the code for accomplishing the above task On 9/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: These can be done with Javascripts... This is client level settings... Some people

Re: How to restrict the user to modify the address bar url

2006-09-28 Thread paz . periasamy
These can be done with Javascripts... This is client level settings... Some people disable Javascripts. So the solution might not be solid. Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software Engineer, HCL Australia Services Pty. Ltd. Off : +61-3-9618-4085 Mob : +61

How to restrict the user to modify the address bar url

2006-09-28 Thread sowjanya chimmani
Hi all, I want a solution for restricting the user from enternng the text into the address bar and this has to be done programatically -- sowjanya

[OT] Paging at the database level

2006-09-28 Thread Thomas Joseph
Hi All, I require that my application should have the ability for paging the results obtained in a query, typically after a search. There are many solutions like DisplayTag, that help for paging at the View level. i.e, whole of the resultset is transferred as a bean to the view, and the paging

Regarding the bean:include Tag

2006-09-28 Thread Chetan Pandey
Hi All: I am trying to use Where the forward is described in the List of Global Forwards in the following manner: This is failing repeatedly. I am getting the following exception: javax.servlet.jsp.JspException: Exception reading resource http://localhost:8080/lms/

Re: index value in custom validation message ?

2006-09-28 Thread Niall Pemberton
Not sure if I understand what the issue is. In validator terms there is no requirement that what you define in a element be anything other than a regular java bean. So as I understand it you have an ActionForm which has a property for the collection of PERSON objects - say called "people", with

Re: [help] struts 1.2.9 exposing struts resource bundle to jstl

2006-09-28 Thread Wendy Smoak
On 9/28/06, Garner Shawn <[EMAIL PROTECTED]> wrote: I want to be able to refer to the struts resource bundle using the fmt:message tag. I've been looking at the reference and I'm not sure the JSTL LocalizationContext is interchangeable with a MessageResources. Is there an easy way to do this?

Re: [help] struts 1.2.9 exposing struts resource bundle to jstl

2006-09-28 Thread Don Brown
The easiest way is to just load the bundle via JSTL in the page. The messages properties file will be in the same format as recognized by JSTL. The disadvantage of this approach is you are loading the messages twice (once for Struts, once for JSTL) and doesn't work if your messages are from anot

Re: alert window without evenhnadler

2006-09-28 Thread Uday Chandra Karrothi
I need to make a descision based on the value of a variable in the form bean. So i am thinking that cannot be accessed before the page gets loaded? Thanks Uday On 9/28/06, Chris Pratt <[EMAIL PROTECTED]> wrote: You can put it in the onload event of the body. That gets called as soon as everyt

[help] struts 1.2.9 exposing struts resource bundle to jstl

2006-09-28 Thread Garner Shawn
I want to be able to refer to the struts resource bundle using the fmt:message tag. I've been looking at the reference and I'm not sure the JSTL LocalizationContext is interchangeable with a MessageResources. Is there an easy way to do this? --

Re: alert window without evenhnadler

2006-09-28 Thread Chris Pratt
You can put it in the onload event of the body. That gets called as soon as everything is loaded. (*Chris*) On 9/28/06, Uday Chandra Karrothi <[EMAIL PROTECTED]> wrote: Is there a way we can place it in such a way that the alert is after all the page is completely loaded. I am using tiles. So

Re: alert window without evenhnadler

2006-09-28 Thread Uday Chandra Karrothi
Is there a way we can place it in such a way that the alert is after all the page is completely loaded. I am using tiles. So i might have to place that after the footer? . I do not want to define another footer for just this page. Thanks for your help Stephan. Uday On 9/28/06, Uday Chandra Karro

Validate a multiple html:select with validator framework

2006-09-28 Thread Heidy Gutiérrez Guzmán
I have a multiple html:select and i need to validate it with validator framework. The attribute in the ActionForm is an array of strings. private String[] subtemas= new String[]{} The validation that i'm using is required.This validation works with others form fields This is the code of html

Re: alert window without evenhnadler

2006-09-28 Thread Uday Chandra Karrothi
Hi Stephan, Thanks for the reply. I feel liek i do not know any html at all!. I thought all javascript needed an eventhandler. I guess not. Thank you once again. Uday On 9/28/06, Stephan Koops <[EMAIL PROTECTED]> wrote: Hello, try on the jsp: alert("Info to show"); Stephan Uday Chandra

Re: alert window without evenhnadler

2006-09-28 Thread Stephan Koops
Hello, try on the jsp: alert("Info to show"); Stephan Uday Chandra Karrothi schrieb: Hi guys, I am doing validation and since that validation is complicated. I am submitting the page. and then i want to display the result. Now the problem is i need an event to through an alert window. i c

alert window without evenhnadler

2006-09-28 Thread Uday Chandra Karrothi
Hi guys, I am doing validation and since that validation is complicated. I am submitting the page. and then i want to display the result. Now the problem is i need an event to through an alert window. i cannot say alert(""); in the jsp. Can i use soemthing lie <% JDialog temp = new Jdialog() %>

Html option:collection error

2006-09-28 Thread mosho
Hello Everyone, I have weird problem with tag. I am trying to populate the mutli select box using collection. It works some times and some times I get this exception: [ServletException in:/wspb_drivers.jsp] Failed to obtain specified collection' If I start the project again,I don't get this ex

RE: Variable name for errors

2006-09-28 Thread David Pinho \(Hexadecimal\)
It's defined by org.apache.struts.Globals.ERROR_KEY David -Original Message- From: Heidy Gutiérrez Guzmán [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 28 de Setembro de 2006 17:44 To: Struts Users Mailing List Subject: Variable name for errors Hi all: How do I know the name for the sc

RE: index value in custom validation message ?

2006-09-28 Thread Tejesh Shetty
Niall, Struts extends looks promising..getting the index value works when that field actually extends from some other form.. I have a form with collection of 'PERSON' in it. And every person has property like first name, last name, ssn. Now I want to validate if ssn for all the 'PERSON's are en

Re: compile getDataSource error in Action

2006-09-28 Thread Christopher Goldman
On Fri, 2006-09-29 at 00:03 +0800, red phoenix wrote: > I use JDK1.6 and Struts1.3.5,I use Javac to compile a Action file,like > follows: > javac xxxAction.java > but when I compile it,it raise follows error: > > xxxAction.java:31: Can't find symbol > symbol: method getDataSource(javax.servlet.ht

Re: compile getDataSource error in Action

2006-09-28 Thread Wendy Smoak
On 9/28/06, red phoenix <[EMAIL PROTECTED]> wrote: I use JDK1.6 and Struts1.3.5,I use Javac to compile a Action file,like follows: javac xxxAction.java but when I compile it,it raise follows error: xxxAction.java:31: Can't find symbol symbol: method getDataSource(javax.servlet.http.HttpServletR

Re: alternative

2006-09-28 Thread Yariel Ramos Moreno
Thanks everybody for your comments. I can't use AJAX now 'cause the time is short and the amount of changes will be a lot, but I will try uitags (I have seen the demo and I liked it). Thanks very much! __ XIII Convención Científica de Ingeniería y Arquite

Variable name for errors

2006-09-28 Thread Heidy Gutiérrez Guzmán
Hi all: How do I know the name for the scope attribute used when there are errors, specifically when those errors are generated from validator framework. Regards...

How do i know if exits errors in any scope?

2006-09-28 Thread Yariel Ramos Moreno
How do i know if exits errors in any scope? __ XIII Convención Científica de Ingeniería y Arquitectura 28/noviembre al 1/diciembre de 2006 Cujae, Ciudad de la Habana, Cuba http://www.cujae.edu.cu/eventos/convencion

Re: call a struts action from an axis service

2006-09-28 Thread Patrice Le Cozler
My business logic is not in actions but is not struts-independant since it uses datasources initialized during struts servlet loading. Is there a way to get theses datasources and more generally get struts config from another servlet inside the same webapp ? On 9/28/06, Antonio Petrelli <[EMAIL P

compile getDataSource error in Action

2006-09-28 Thread red phoenix
I use JDK1.6 and Struts1.3.5,I use Javac to compile a Action file,like follows: javac xxxAction.java but when I compile it,it raise follows error: xxxAction.java:31: Can't find symbol symbol: method getDataSource(javax.servlet.http.HttpServletRequest, java.lang.String) location: class xxxAction

Re: call a struts action from an axis service

2006-09-28 Thread Antonio Petrelli
Patrice Le Cozler ha scritto: Hi, Here is my (axis newbie) problem: I developed a struts webapp that insert data to a database using ibatis. Now I want to add some kind of webservice connector that does the same job. I think the best way to do that would be to find a way of calling the struts

call a struts action from an axis service

2006-09-28 Thread Patrice Le Cozler
Hi, Here is my (axis newbie) problem: I developed a struts webapp that insert data to a database using ibatis. Now I want to add some kind of webservice connector that does the same job. I think the best way to do that would be to find a way of calling the struts action from within the axis servi

exists any way to know when validator framework turn on?

2006-09-28 Thread yamilka vallejo ramos
Hi Do exists any way to know when validator framework turn on? I think i could ask by a var in the session or something like that. Thanks for any help you could give me

Re: Forward to action without jsp

2006-09-28 Thread Venkata Phani Kumar
- Original Message - From: "Andy.de" <[EMAIL PROTECTED]> To: Sent: Thursday, September 28, 2006 6:25 PM Subject: Forward to action without jsp > > Hi all, > how can i forward to an action without input (jsp) ? > The path attribute of action tag in struts-config must point to jsp's. To

RE: Forward to action without jsp

2006-09-28 Thread Andy.de
Hi Eric, your point 2. in my application is a button on a previous page (i have several buttons) The button is evaluated by an EventActionDispatcher and the according execute() forwards to the action to fill the bean. public ActionForward editObject(ActionMapping mapping,

Re: Forward to action without jsp

2006-09-28 Thread Frank W. Zammetti
On Thu, September 28, 2006 10:07 am, Andy.de wrote: > Hi Wendy, > i have an action 'load object from database', on execute() the form bean > is filled with values from database. On success i want to forward to the > jsp > to > display the object. The user can change the values and submit the jsp,

RE: Forward to action without jsp

2006-09-28 Thread Givler, Eric
oops! return mapping.findForward("success"); -Original Message- From: Givler, Eric [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 10:23 AM To: Struts Users Mailing List Subject: RE: Forward to action without jsp I'm not sure I understand what's wrong with this: 1. The loa

RE: Forward to action without jsp

2006-09-28 Thread Givler, Eric
I'm not sure I understand what's wrong with this: 1. The load object from database is in the action's execute. 2. The menu choice is: Edit My Profile (for example), which invokes the action from #1 public ActionForward execute( ) throws ... { String userId = request.getParame

Re: Forward to action without jsp

2006-09-28 Thread Andy.de
Wendy Smoak-3 wrote: > > On 9/28/06, Andy.de <[EMAIL PROTECTED]> wrote: > >> how can i forward to an action without input (jsp) ? > > I'm not sure what you're asking. What do you want the user to be able to > do? > > In general, any URL that maps to an Action will execute the action, > whet

Re: Forward to action without jsp

2006-09-28 Thread Wendy Smoak
On 9/28/06, Andy.de <[EMAIL PROTECTED]> wrote: how can i forward to an action without input (jsp) ? I'm not sure what you're asking. What do you want the user to be able to do? In general, any URL that maps to an Action will execute the action, whether or not there is any 'input' (request pa

Forward to action without jsp

2006-09-28 Thread Andy.de
Hi all, how can i forward to an action without input (jsp) ? The path attribute of action tag in struts-config must point to jsp's. To prepopulate a form bean i must use an action, read data from database to fill the form bean and forward to the jsp to display the formular already filled out. But

Issue with Validator DTD location

2006-09-28 Thread Asish_Thomas
Hi, I am running my Struts web app on WSAD 5.1.1. I get compilation and run-time 'File Not Found' errors when the app looks up my validator_1_1_3.dtd and validator_1_1.dtd files. The exact error is: java.io.FileNotFoundException: C:\Program Files\IBM\WebSphere Studio\Application Developer IE\WEB-

Re: multiple module 403 forward

2006-09-28 Thread Martin Gainty
Many Thanks, M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, ple

RE: global exceptions, key?

2006-09-28 Thread Givler, Eric
Here's the steps I did to test this, which worked: 1. modify struts-config.xml for an exception handler: 2. Force an exception in some action: try { int i = 1/ 0; } catch ( Exception ex ) { throw new ServletException("general failure error reading drive C"); } 3. Add entry to re

[Struts2] problem with links and Firefox

2006-09-28 Thread Labey Sébastien
Hi, I have a strange problem : I have 2 links in my page to change the locale. The "english" and the "french" link are not build the same way (for tests...) but the 2 solutions give the url that I want in the end. <%/* anglais */%> en

RE: global exceptions, key?

2006-09-28 Thread Andy.de
Givler, Eric wrote: > > I'm pretty sure the error.message1 key which is looked up in the resource > file can be displayed in the resulting jsp with: > > > Hi Eric, thats what i tried but it don't work Regards, Andy -- View this message in context: http://www.nabble.com/global-exceptions%2

Re: alternative

2006-09-28 Thread Mikolaj Rydzewski
Yariel Ramos Moreno wrote: Any help is welcome, If you don't want go AJAX, then try uitags.sf.net. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature

[tiles] Re: can i access tile definition name directly in browser

2006-09-28 Thread Antonio Petrelli
Vinod Kumar ha scritto: Hi, Can I access a tile definition name like "loginPage" as below directly in the browser. No, at least not directly, but you can define an attribute in the layout page, e.g.: and doing: HTH Antonio