Re: getDataSource() in JSP

2004-10-07 Thread brenmcguire
getDataSource is a protected method inside the class Action, so you cannot use it directly. Anyway I suggest to copy the code from the source of Action, because it simply takes an object (i.e. the DataSource) from the application scope. Ciao Antonio Petrelli Shailender Jain wrote: Hello, I want

Re: Page Navigation in Struts

2004-10-07 Thread brenmcguire
Found on SourceForge: http://valuelist.sourceforge.net/ It has nothing to do with Struts, it is usable in simple JSP pages. Ciao Antonio Petrelli Shabada, Gnaneshwer wrote: Hello All, I am planning to implement a Page Navigation functionality to navigate through search results in my project. I

Inserting a BLOB

2004-10-07 Thread Arundhati Kalia
Hi All, Can anyone please guide me to the most efficient way of inserting a BLOB in Oracle database thro Java ? TIA Arundhati - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts and XML

2004-10-07 Thread Tito Eritja
Anyone knows some document or book of struts and XML? We are working in application done with struts, but we have a provider that gives us some xml response that we have to parse with xslt. We would like to use the generated html with an ActionForm. Is it possible? Thanks in advance. tito --

Struts and XML

2004-10-07 Thread Tito Eritja
Anyone knows some document or book of struts and XML? We are working in application done with struts, but we have a provider that gives us some xml response that we have to parse with xslt. We would like to use the generated html with an ActionForm. Is it possible? Thanks in advance. tito --

RE: cleaning session

2004-10-07 Thread Paul McCulloch
That isn't the purpose of the (confusingly named) reset method. Reset is there to, typically, deal with the html forms submit checkbox fields (they don't submit anything if they are null). Paul -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, October

R: Inserting a BLOB

2004-10-07 Thread Amleto Di Salle
Hi, This is an example. Note the SQL statements. Furthermore, if you have a table with data and after you want to add a NULL BLOB column you have a problem in order to update the old rows. You have to delete these rows and re-insert using the empty_blob function. You cannot update the old rows,

RE: cleaning session

2004-10-07 Thread Paul McCulloch
What a nonsense sentence! What I meant to say was: That isn't the purpose of the (confusingly named) reset method. Reset is there to, typically, deal with the way html forms submit checkbox fields (they don't submit anything if they are null). Paul -Original Message- From: Paul

RE: Struts and XML

2004-10-07 Thread Yoni . RACHOVITCH
Hi, Have a look to the struts-example.war file from the jakarta-struts package It is struts-mailreader.war in the struts 1.2.4 that one deals with data stored in a XML database (database.xml). then this xml file is open, read, updated and finally closed by the application. good example.

RE: Internationalizing a Struts project

2004-10-07 Thread Hiran.Chaudhuri
Hi, Jason. Have you tried using setCharacterEncoding(...)? For me on Tomcat 4.1.30 it showed no result at all, and other solutions available on the web state that setCharacterEncoding should work but has problems on many servlet containers. Therefore all I found refers to creating new strings

RE: [OT] free javascript htmlEditor

2004-10-07 Thread VAN BROECK Jimmy
I've tried out the htmlarea in a php project and is pretty decent. It works with additional plugins you can install. Only minpoint is that it works on textarea's and it does the conversion after the page is loaded, so you can sometimes see the switch. Also standard way it works on all the

RE: cleaning session

2004-10-07 Thread Freddy Villalba A.
Hi, I have never implemented anything like this (with Struts), but this is the first thing I can think of... Assuming your wizard is one-way (by this, I mean you have a linear graph - 1-2-3... -, no bifurcations and /or intersections and / or parallelism), you could define your workflow by

Browser page break with ms/word myme

2004-10-07 Thread Paulo Alvim
Hi! I've read that the easier way to print using page break and Browser is to send the ordinary text/html contents with proprietary MS-Word's page break tags and tell the Browser to open that html using MS-Word. (In this case, we know the users will have Word installed). I couldn't make the

html:link parameter passing

2004-10-07 Thread M. Onur Tokan
hi, I have a arraylist of BolgeDTO in request scope. I am iterating this arraylist in the code below. The problem is I want to add a edit button on the column. And I want to pass the whole properties to the next form so The form will contain the data from the selected row. I look at the html:link

Re: Internationalizing a Struts project

2004-10-07 Thread Jason Lea
Yes, I use the setCharacterEncoding(...) in a filter on Tomcat 4.1.28 to handle UTF-8 encoded pages (mainly for communicating in Japanese, which should be a good a test as any for UTF-8). I set the encoding to UTF-8 on each page as Craig suggested so the browser knows the encoding, and use a

[Fwd: Error 500 on Websphere - Missing message for key header.title]

2004-10-07 Thread Simon Charette
Hi I'm trying to install on WAS 5.1 a struts application developped on apache tomcat. The application does work on tomcat but on websphere I keep getting the following error: Error 500: Missing message for key header.title I made sure my struts-config.xml contained message-resources

Re: [OT] free javascript htmlEditor

2004-10-07 Thread Amit Gupta
Plz visit my homepage. if you find pWYSIWYG interesting , Then I may send you code. Amit Gupta Mobile: 91-9891062552 Email: [EMAIL PROTECTED] http://amit-gupta.prudence-india.com A request - given the barrage of spam these days, there is a non-zero probability that I accidentally delete

Re: Session authentication - Struts or ServletFilter

2004-10-07 Thread andy wix
Hi, That source forge Security Filter stuff looks pretty good, but I only have a basic requirement (nothing so posh as realms). I can't seem to get my (very basic) filter to work with Struts though. I have the following in my doFilter method: HttpServletRequest req = (HttpServletRequest)

html:link parameter passing

2004-10-07 Thread M. Onur Tokan
hi, I have a arraylist of BolgeDTO in request scope. I am iterating this arraylist in the code below. The problem is I want to add a edit button on the column. And I want to pass the whole properties to the next form so The form will contain the data from the selected row. I look at the html:link

Re: cleaning session

2004-10-07 Thread Erik Weber
This is similar to what I usually implement. I have been gradually developing a session manager or perhaps a session janitor that watches/tracks workflow and cleans up stuff from memory (session) that isn't needed anymore. It could be a filter or a custom request processor in the world of

RE: Internationalizing a Struts project

2004-10-07 Thread Hiran.Chaudhuri
Hi, Jason. Before I had tried to use request.setCharacterEncoding(UTFß8) in a JSP (independent from Struts) and that did not work. Now I tried using a filter, as you suggest, and it works like a charm. No more need to patch RequestUtils, and I can also monitor and write warnings if the

RE: cleaning session

2004-10-07 Thread Hiran.Chaudhuri
Hi, Erik and Freddz. I like the idea of having a wizard whose data gets cleaned as soon as it's scope is left. How about this: Have all resources for one wizard in a URL subdirectory. Have a similar naming convention for the resources the wizard leaves in the session. If a http request comes

Re: Internationalizing a Struts project

2004-10-07 Thread Graeme
On Thu, 7 Oct 2004, Jason Lea wrote: snip/ There used to be a good resource *Struts i18n* http://www.anassina.com/struts/i18n/i18n.html by Aaron Rustad. which was at http://www.anassina.com/struts/i18n/i18n.html But it no longer appears to exist that showed some easy steps to make everything

Re: cleaning session

2004-10-07 Thread Erik Weber
Yeah, similar naming convention is the key to making it easier on yourself. Also, as I tried to suggest once before (in a riddle -- a single key can open many doors -- ha ha ha grasshoppah), you can store references to many objects under a single attribute key (using structured/nested beans,

OT: jstl equivalent of logic:present

2004-10-07 Thread Zoran Avtarovski
I'm trying to find a way to use the isUserInRole method with the c:if tag. I tried c:if test=${pageContext.getRequest().isUserInRole(admin)} But you can't use the isUserInRole method as an expression. I'd rather not have to cast the role into a page context string to test. Using the

Re: bouncing address (if this is you at standardbank.co.az, PLEASE correct it)

2004-10-07 Thread Erik Weber
Wendy Smoak wrote: From: David G. Friedman [EMAIL PROTECTED] Sorry to post Off Topic mid-week but I've posted a few times lately and I'm starting to severly dislike this error message from some unknown subscribe at standarbank.co.az. Any list managers out there who could take a look

RE: bouncing address (if this is you at standardbank.co.az, PLEASE correct it)

2004-10-07 Thread Hiran.Chaudhuri
-Original Message- I reported it to [EMAIL PROTECTED] yesterday. Thank you. The person has been notified and will be unsubscribed soon if it doesn't stop happening. In my opinion it has been long enough (I think 48 hours is more than fair). I vote that the user be

Re: bouncing address (if this is you at standardbank.co.az, PLEASE correct it)

2004-10-07 Thread Darryl Pierce
On Thursday 07 October 2004 07:42 am, [EMAIL PROTECTED] wrote: BTW, how did you notify the person? Most probably you've got only the bouncing mail address... Do a whois on the domain and email either the administrative or technical contact. -- /** * @author Darryl L. Pierce [EMAIL

Re: Error 500 on Websphere - Missing message for key header.title]

2004-10-07 Thread Martin Gainty
From struts-user mail archives courtesy of Oleg V Alexeev Remove resources from classpath and place it to the WEB-INF/classes directory. For example WEB-INF classes ApplicationResources.properties

RE: Inserting a BLOB

2004-10-07 Thread Kailash Vasani
Checkout the Oracle documentation -Original Message- From: Arundhati Kalia [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 12:51 PM To: [EMAIL PROTECTED] Subject: Inserting a BLOB Hi All, Can anyone please guide me to the most efficient way of inserting a BLOB in Oracle

RE: bouncing address (if this is you at standardbank.co.az, PLEASE correct it)

2004-10-07 Thread Hiran.Chaudhuri
-Original Message- From: Darryl Pierce [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 7. Oktober 2004 12:34 To: Struts Users Mailing List Subject: Re: bouncing address (if this is you at standardbank.co.az, PLEASE correct it) On Thursday 07 October 2004 07:42 am, [EMAIL

RE: cleaning session

2004-10-07 Thread Freddy Villalba A.
Well guys, although on the same direction you are pointing to, I do believe though that the more framework-independent the solution is, the better. So, my thought: Why not have a XML descriptor where you can explicitly define your wizards? In that way: (1) No matter where your resources are,

RE: cleaning session

2004-10-07 Thread Hiran.Chaudhuri
Also sounds good. Especially the decoupling of a resource location and usage is what Struts tries to do with actions and forwards etc. I see this pattern reused in your idea. Plus the possibility of sharing resources. I like this idea. Hiran - Hiran

Re: Redirecting and getting the original URL

2004-10-07 Thread Jacob Weber
Craig, Thanks...I'll give that a try. Jacob In article [EMAIL PROTECTED], Craig McClanahan [EMAIL PROTECTED] wrote: On a Servlet 2.4 container (such as Tomcat 5.x), the server will store the original path-related information as a set of request attributes with well known names:

checking for an object in a collection

2004-10-07 Thread Muhammad Momin Rashid
Hello All, I have a scenario in which I need to display (or not display) differnt parts of a jsp page depending on rules defined in a collection in scope. I was wondering what is the best way to accomplish this? All the rules defined in a collection, and the decision is made on the basis of

Agregating form beans

2004-10-07 Thread Vinicius Carvalho
I was wondering. Is it possible for a form bean to have a field that would be another form bean? I have a form, that depending on the user selection on the previous screen, it would generate n number of small forms in order for him to fill it up. So I was wondering to have something like

Re: OT: jstl equivalent of logic:present

2004-10-07 Thread Tim Penhey
Zoran Avtarovski wrote: I'm trying to find a way to use the isUserInRole method with the c:if tag. I tried c:if test=${pageContext.getRequest().isUserInRole(admin)} But you can't use the isUserInRole method as an expression. I'd rather not have to cast the role into a page context string to test.

Re: Validation in Struts for Required fields

2004-10-07 Thread Jacob Weber
One more: you need something like this in your ApplicationResources: errors.required={0} is required. In article [EMAIL PROTECTED], Caroline Jen [EMAIL PROTECTED] wrote: To add to the list: 5. the validator-rules.xml and validation.xml must be in the AppName/WEB-INF directory. 6. Make

RE: checking for an object in a collection

2004-10-07 Thread Paul McCulloch
A Map is proabably a better data structure to use than a collection. I'd consider changing the way the rules are stored, or converting the Collection to a Map in your action. Paul -Original Message- From: Muhammad Momin Rashid [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004

Re: checking for an object in a collection

2004-10-07 Thread DGraham
I may not fully understand what you're trying to do, but why not use a HashSet instead? Let the table name be the key to the rule. This may or may not be helpful: http://www.javapractices.com/Topic65.cjp. Dennis Muhammad Momin Rashid [EMAIL PROTECTED] Sent by: news [EMAIL PROTECTED]

Re: Session authentication - Struts or ServletFilter

2004-10-07 Thread Jacob Weber
I've been doing the same thing by extending RequestProcessor (or TilesRequestProcessor). The advantage of that is, depending on which method you extend, you can have access to the Struts Form and ActionMapping objects. Jacob In article [EMAIL PROTECTED], andy wix [EMAIL PROTECTED] wrote:

Re: cleaning session

2004-10-07 Thread Vinicius Carvalho
Freddy Villalba A. wrote: Well guys, although on the same direction you are pointing to, I do believe though that the more framework-independent the solution is, the better. So, my thought: Why not have a XML descriptor where you can explicitly define your wizards? In that way: (1) No matter where

Re: checking for an object in a collection

2004-10-07 Thread Miranda John Stager
Hello Muhammad, I hope that you are using custom tags for this. I would create a new custom tag to determine if the rule is present in the collection... rule:RulePresent rule=ruleKey display table x /rule:RulePresent This tag would then look in the collection for the specific rule, not by

validwhen help

2004-10-07 Thread Emmanouil Batsis
Hi, Although my validator rule is interpeted just fine, an empty string message is produced for this specific error using the html:errors tag. Can someone please tell me what am i missing? My properties file works for all other rules and has a property formname.field... Thanks, Manos field

Re: html:link parameter passing

2004-10-07 Thread Jeff Beal
For this to work, 'b' would have to be the name of a java.util.Map object; instead, it is a BolgeDTO. Use the second method discussed in the html:link/ documentation: Specify both name and property attributes - The specified property getter method will be called on the bean identified

Re: checking for an object in a collection

2004-10-07 Thread DGraham
Obviously, it's still too early for me. A HashMap is what I meant to say. Dennis [EMAIL PROTECTED] 10/07/2004 08:15 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject Re: checking for an object in a

Re: Browser page break with ms/word myme

2004-10-07 Thread Jeff Beal
CSS2 includes page-break-before and page-break-after properties. Specifying position:fixed will cause a box to repeat on every page. I am not sure if this is supported in any browser, but that's where I would start. See http://www.w3.org/TR/CSS2/page.html for details on paged media with CSS.

RES: [struts] Re: Browser page break with ms/word myme

2004-10-07 Thread Paulo Alvim
Thanks a lot, Jeff! This is exactly what I was looking for... -Mensagem original- De: news [mailto:[EMAIL PROTECTED] nome de Jeff Beal Enviada em: quinta-feira, 7 de outubro de 2004 09:41 Para: [EMAIL PROTECTED] Assunto: [struts] Re: Browser page break with ms/word myme CSS2 includes

Re: Browser page break with ms/word myme [pt_br]

2004-10-07 Thread Henrique VIECILI
Ae Paulo, experimenta fazer um servlet para retornar o html e mapeie-o com final .doc no web.xml, eu acho q o IE antes de verificar o mime-type verifica a extensão do arquivo. Eu fiz isso uma vez para gerar pdf e abrir diretamenta no adobe. Claro que não custa setar o mime-type tambem.

Re: Value of hidden field from ApplicationResources.properties?

2004-10-07 Thread Jeff Beal
I'd just use input type=hidden name=nextStep value=fmt:message key='button.validate'/. Wendy Smoak wrote: I have what must be the world's simplest form... it has a text field and a button: html-el:form action=denRegister fmt:message key=label.associationId/: br/ html-el:text

Re: Browser page break with ms/word myme [pt_br]

2004-10-07 Thread Emmanouil Batsis
Henrique VIECILI wrote: Ae Paulo, experimenta fazer um servlet para retornar o html e mapeie-o com final .doc no web.xml, eu acho q o IE antes de verificar o mime-type verifica a extensão do arquivo. Eu fiz isso uma vez para gerar pdf e abrir diretamenta no adobe. Claro que não custa setar o

Re: html:link parameter passing

2004-10-07 Thread M. Onur Tokan
Sorry for double posting. Jeff It didn't work. It causes Null pointer exception. I hava a bean named BolgeDTO with a property parameters (java.util.Map) And the code is ; html:link page=/edit.do

Re: html:link parameter passing

2004-10-07 Thread Jeff Beal
I don't see where 'p' is initialized to a Map in your Java code. Somewhere, you need to have Map p = new java.util.HashMap(). M. Onur Tokan wrote: Sorry for double posting. Jeff It didn't work. It causes Null pointer exception. I hava a bean named BolgeDTO with a property parameters

Re: cleaning session

2004-10-07 Thread Erik Weber
I think a good place to start would be to start a list of situations or use cases encountered where this type of device was implemented or needed (not just with wizards, but with session attributes in general I think). Then we could look at the list after a while and see what all or many of

Re: [validator] dependent field

2004-10-07 Thread Emmanouil Batsis
One day later, I figured it out. One must split the validators to multiple struts.validator tags, each one having it's own msgkey... Emmanouil Batsis wrote: Consider two fields, type and time. The first mandatory, the second dependent on the value of the first. What I'm trying to do enforce a

RE: Anyone succeeded using validator in struts1.2.4 ?

2004-10-07 Thread yacout dadoun
When trying html:messages id=error/ %= error % /html:messages I get an error saying the end tag lt;html:messages is unbalanced From: David G. Friedman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Anyone

Re: Anyone succeeded using validator in struts1.2.4 ?

2004-10-07 Thread Emmanouil Batsis
yacout dadoun wrote: When trying html:messages id=error/ typo:-^ the tag must not close there I get an error saying the end tag lt;html:messages is unbalanced From: David G. Friedman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To:

Re: html:link parameter passing

2004-10-07 Thread M. Onur Tokan
Ohhh my god! It works. thanks a lot. Do you think it's a good practice? On Thu, 07 Oct 2004 09:26:50 -0400, Jeff Beal [EMAIL PROTECTED] wrote: I don't see where 'p' is initialized to a Map in your Java code. Somewhere, you need to have Map p = new java.util.HashMap(). M. Onur Tokan

RES: [struts] Re: Browser page break with ms/word myme [pt_br]

2004-10-07 Thread Paulo Alvim
Obrigado Henrique, A solução do CSS2 do [EMAIL PROTECTED] funcionou e me atende bem...disponha! -Mensagem original- De: Emmanouil Batsis [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 7 de outubro de 2004 09:56 Para: Struts Users Mailing List Assunto: [struts] Re: Browser page break

Re: cleaning session

2004-10-07 Thread Erik Weber
Vinicius Carvalho wrote: Freddy Villalba A. wrote: Well guys, although on the same direction you are pointing to, I do believe though that the more framework-independent the solution is, the better. So, my thought: Why not have a XML descriptor where you can explicitly define your wizards? In

Colspan html attribute equivalent in jsf

2004-10-07 Thread babloosony
Hi, In jsf, if i am using h:panelGrid to draw a table with 2 columns, then in first row i want to club the 2 columns into one (like using colspan=2 html attribute) and in remaining rows i want to have 2 columns. how can i achieve this using jsf tag h:panelGrid ?? Thanks Regards, Kumar.

Re: Anyone succeeded using validator in struts1.2.4 ?

2004-10-07 Thread yacout dadoun
Oh yes thanks Now if we come to our initial problem when i ommit entering a value to an input, the messages displayed is null and not input required. Should i change the application.properties and replace errors.required=.. by messages.required=... ? From: Emmanouil Batsis [EMAIL PROTECTED]

Enhanced client side validation

2004-10-07 Thread mike . dunn
We have a requirement to validate (using Javascript) beans whose properties can be of type Map, List, [], or any simple type. Furthermore, Maps, Lists, and []s can be arbitrarily nested. We have found that the validator only supports simple properties (on the client). We modified it last year to

Problem sharing Tiles between applications

2004-10-07 Thread Brown, Robert
Greetings: Perhaps you can help me with a real problem I am having using Tiles. I have an understanding of how to use Tiles; I have several pages that use several parts of JSPs, as illustrated by the example below: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert

RE: cleaning session

2004-10-07 Thread Freddy Villalba A.
There is another typical example: You have a search screen. after performing a search, you select one of the items in order to... say... edit it. You go to the edition screen (form) and, once you've concluded working with that item (typically: saved, deleted or canceled), you return to the search

Re: cleaning session

2004-10-07 Thread Vinicius Carvalho
Erik Weber wrote: Vinicius Carvalho wrote: Freddy Villalba A. wrote: Well guys, although on the same direction you are pointing to, I do believe though that the more framework-independent the solution is, the better. So, my thought: Why not have a XML descriptor where you can explicitly define

Re: cleaning session

2004-10-07 Thread Erik Weber
Vinicius Carvalho wrote: Erik Weber wrote: Vinicius Carvalho wrote: Freddy Villalba A. wrote: Well guys, although on the same direction you are pointing to, I do believe though that the more framework-independent the solution is, the better. So, my thought: Why not have a XML descriptor where

Re: cleaning session

2004-10-07 Thread Erik Weber
Yes, that is a good example. My only requirement here is that no one from STANDARDS BANK may ever make use of it. :) Erik Freddy Villalba A. wrote: There is another typical example: You have a search screen. after performing a search, you select one of the items in order to... say... edit it.

RE: cleaning session

2004-10-07 Thread Hiran.Chaudhuri
Don't put this example under Apache License then. ;-) Or have it patented (with the new patent laws in Europe no problem). Hiran (getting offtopic) - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax

grab form bean was Re: form reset

2004-10-07 Thread roy-strutsuser
Hey guys, Thanks for the response on my first question. Turns out I'm an idiot and was pre-filling a form element via the value parameter of a html-el... tag. However this now leads to a second question. How do I grab the form bean and the fields? I'd like to print the value of a form field

Re: grab form bean was Re: form reset

2004-10-07 Thread wiwit_tjahjana
If you have a request- or session-scoped regular formBean called myform, a simple call like this will output the value of property myfield c:out value=${myform.myfield} / But with dynaBean, you have to qualify the property name with map: c:out value=${myform.map.myfield} / Hope that helps! wiwit

[OT] Site map generator

2004-10-07 Thread Durham David R Jr Contr 805 CSPTS/SCE
I'm looking for something that dynamically generates a site map. Simply spidering pages is not going to work. Basically, I'm looking for something that uses a configuration to generate HTML/CSS or and Image/Map combination. Obviously free would be preferred, but something that costs money is

[validator] How to submit only when ther are no eror

2004-10-07 Thread yacout dadoun
Hi, I'm using struts1.2.4, using validator, how can i submit teh oage, which neans call my bean setter only when therer are norerror genrated by my validator? i guess it'll be done in teh Action java file but how? it always set the entered values even whne teh input is empty and wich imy

tool to produce a sitemap from struts-config

2004-10-07 Thread Emmanouil Batsis
I remember someone posted about a tool that reads struts-config and produces some kind of sitemap but i cant find it by searching... can someone please refresh my memory? Thanks, Manos - To unsubscribe, e-mail: [EMAIL

RE: [validator] How to submit only when ther are no eror

2004-10-07 Thread Barnett, Brian W.
One way to accomplish this is with client side validation. This is dependent on scripting being enabled on the browser however. html:form action=/foo onsubmit=return validateFooForm(this); ... /html:form html:javascript formName = fooForm/ -Original Message- From: yacout dadoun

RE: [validator] How to submit only when ther are no eror

2004-10-07 Thread yacout dadoun
Thanks, but is there a way to do that using jsp jstl no struts tags ? From: Barnett, Brian W. [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: [validator] How to submit only when ther are no eror Date: Thu, 7

Re: tool to produce a sitemap from struts-config

2004-10-07 Thread Niall Pemberton
http://struts.sourceforge.net/strutsdoc/ - Original Message - From: Emmanouil Batsis [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, October 07, 2004 4:53 PM Subject: tool to produce a sitemap from struts-config I remember someone posted about a tool

Re: tool to produce a sitemap from struts-config

2004-10-07 Thread Xavier Noria
On Oct 7, 2004, at 17:53, Emmanouil Batsis wrote: I remember someone posted about a tool that reads struts-config and produces some kind of sitemap but i cant find it by searching... can someone please refresh my memory? Maybe you mean VisualStruts? http://visualstruts.sourceforge.net/ --

RE: [validator] How to submit only when ther are no eror

2004-10-07 Thread Barnett, Brian W.
Yes, you can manually do everything that the Struts tag and the validation.xml file is doing for you. form name=fooForm method=post action=/do/foo onsubmit=return validateFooForm(this); ... /form Then you would have to write a validateFooForm javascript function that validates the fields of

Re: Session authentication - Struts or ServletFilter

2004-10-07 Thread Sandro Duarte
Try this: if (null == user) { session.invalidate(); res.sendRedirect(/login.jsp); } else { chain.doFilter(request, response); } I was having some trouble with my auth filter until I realized this problem: you should continue de filter chain only if everything is ok. Sandro On Thu, 07 Oct

Re: Session authentication - Struts or ServletFilter

2004-10-07 Thread Sean Schofield
You cannot map 100% of your web application (as it seems your are doing) to the filter, because the login page you are redirecting to would itself require login. Also, your 404 mentions /do/processLogin but your filter is redirecting to /login.jsp. I'm a bit confused by that. Maybe if you

Re: Periods in form attribute names prevents retrieval

2004-10-07 Thread Jeff Beal
Have you tried html:text name=profile.account property=name/? -- Jeff Laurent Duperval wrote: Hello, In my jsp, I have code like this: ... ... ... html:text name=profile property=account.name value=Foo / ... ... ... This generates: tdinput type=text name=profile.name value=Foo/td

RE: Displaytags or ValueListHandler

2004-10-07 Thread Chris Bredesen
We use displaytag and it is dynamite. It is fast and has lots of features. I haven't written one single TABLE since discovering it. It even allows you to specify a message to display when the list is empty; saves you from having to put that logic in the page. ValueList looked a bit more

parameter passing to /html:link

2004-10-07 Thread Phani
I need to display all the elements in the map, the key value pairs. Till here it's fine. Evrything works fine except the html:link tag. When I click on view, the key of the map has to be passed as parameter. I am not able to get the syntax right for passing the parameter. Thanks. Here is my

RE: Displaytags or ValueListHandler

2004-10-07 Thread Chris Bredesen
This is OT, I will reply directly. -Chris -Original Message- From: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 3:51 PM To: 'Struts Users Mailing List' Subject: RE: Displaytags or ValueListHandler But looks like ValueList tag actually uses

RE: Displaytags or ValueListHandler

2004-10-07 Thread Shabada, Gnaneshwer
Forgot to metion if DisplayTag or valueList support adding a row to the table on the same page. I mean I have a table of results displayed using (lets's say) displayTag and also have another set of text boxes out of the table where I can enter data and it is added to the database and also to the

Re: parameter passing to /html:link

2004-10-07 Thread Wendy Smoak
From: Phani [EMAIL PROTECTED] I need to display all the elements in the map, the key value pairs. Till here it's fine. Evrything works fine except the html:link tag. html:link onclick=Javascript:doView(); name=map paramId=filename paramName=key View /html:link

Re: OT: jstl equivalent of logic:present

2004-10-07 Thread Jason Lea
I couldn't find a way in JSTL/EL using the standard tags. So it looks like we need a tag with that ability. In that case it probably doesn't matter if you use the logic tag or the other suggestion of the request tag. I see that the logic tag allows you to check for more than 1 role eg

Re: parameter passing to /html:link

2004-10-07 Thread Varun Garg
Use the a href and build the link manually or create an extension of the html:link tag. Thanks, Varun --- Phani [EMAIL PROTECTED] wrote: I need to display all the elements in the map, the key value pairs. Till here it's fine. Evrything works fine except the html:link tag. When I click

Re: getDataSource() in JSP

2004-10-07 Thread Jonathan Wright
Your DataSources are stored in the application context. Use your implicit pageContext reference to get a reference to the servlet / application context, then get your data source using (DataSource)ctx.getAttribute(dataSource); Jonathan Wright - Original Message - From: Shailender Jain

Re: How work to DynaValidatorForm and java.sql.Date

2004-10-07 Thread Pedro Salgado
On 7/10/04 1:00 am, Gabriel França Campolina [EMAIL PROTECTED] wrote: Hi Folks, I have the problem when i submit a field text that was mapping to java.sql.date in format dd/MM/, I received null value, what´s my problem?? only this value I don't received the other fields(String) i receved

Re: parameter passing to /html:link

2004-10-07 Thread Jeff Beal
I think you're also missing one of href, action, page, or forward. See http://struts.apache.org/userGuide/struts-html.html#link for details. While I'm at it, I'm not sure about the use of a JavaScript onclick handler with the html:link tag. I don't think that will do what you want it to do.

Re: parameter passing to /html:link

2004-10-07 Thread Jeff Beal
Oops! Forgot the paramId attribute on html:link; include paramId=filename. html:link page=varAttributes.do?action=view paramId=filename paramName=map paramProperty=keyView/html:link Jeff Beal wrote: html:link page=varAttributes.do?action=view paramName=map paramProperty=keyView/html:link

Re: parameter passing to /html:link

2004-10-07 Thread Phani
That works, Thanks Jeff. --- Jeff Beal [EMAIL PROTECTED] wrote: Oops! Forgot the paramId attribute on html:link; include paramId=filename. html:link page=varAttributes.do?action=view paramId=filename paramName=map paramProperty=keyView/html:link Jeff Beal wrote:

Re: tool to produce a sitemap from struts-config

2004-10-07 Thread Martin Gainty
Would this be Transform XML to HTML? Martin- - Original Message - From: Emmanouil Batsis [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, October 07, 2004 11:53 AM Subject: tool to produce a sitemap from struts-config I remember someone posted about a