Re: DynaForm Beans and Indexed Text fields.

2003-08-25 Thread Joel
Mark, Thank you very much for the hints. Everything works now. I appreciate your time very much. Joel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Small request...

2003-08-25 Thread David Friedman
Keith, What are you doing? Sorting your mailbox on the 'sent' times so it shows up out of order because of the different timzones and countries of members posting to this list? I'm sorting on the 'received' time and everything is readable and makes perfect sense. Well, everything except this qu

Struts User September Meeting -> RE: [ANNOUNCE] Introduction to Hibernate by Norman Klein: 6:30pm on September 3rd in Mountain View

2003-08-25 Thread Bill Chmura
Maybe the powerpoint (uggg) slides can be posted online after... Something would be cool because I am just starting to Eye hibernate as an option > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 21, 2003 8:22 AM > To: 'Struts Users Mai

RE: Connector or Apache and Tomcat

2003-08-25 Thread David Friedman
Mohan, What are you looking to do? Write one Struts-based webapp (probably with modules) to merge and replace all of that on one IP? I'm developing the same way: 2 sites, different looks controlled with Tiles, both on one IP. The trouble is if you need SSL on multiple sites then they need their

Html-el:hidden tag!?!?!

2003-08-25 Thread Slattery, Tim - BLS
Why is it that the html-el:hidden tag has no "styleId" attribute? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: struts and flash

2003-08-25 Thread Yansheng Lin
wish I knew ActionScript well enough to write all my pages in Flash. Anyway, I found this link online: http://www.smartwebby.com/Flash_and_ASP/Flash_sends_data.asp It tells you how to send a request to an ASP page. The basic should be the same. Worth a try:). -Original Message- From:

RE: Tiles Definition problem

2003-08-25 Thread David Friedman
Bryce, You're welcome. -David -Original Message- From: Bryce Fischer [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 3:55 PM To: Struts Users Mailing List Subject: Re: Tiles Definition problem David. Thank you very much. I knew I was missing something very simple. I had 2 book

RE: Java Question

2003-08-25 Thread Syed, Nazeer
Since you have already Defined the conn and stmt you no need to defined again . public class OrgIdService implements Serializable { //Declare and initialize variables Connection conn = null; Statement stmt = null; ResultSet rs = null; ArrayList fac

Re: [OT] Re: Small request...

2003-08-25 Thread Emerson Cargnin
hi Derek, ajdust your date :) Derek Richardson wrote: > My application allows you to download files. This is done by opening a new browser window (separate from the main application) which walks the user through a wizard to select a download. In the final action of this wizard, I set the mime t

Re: [OT] Re: Small request...

2003-08-25 Thread Keith Pemberton
One person sent a post to the list with a sent date of Aug 21, 2004. This obviously hasn't happened yet. On Mon, 2003-08-25 at 15:24, Michael Ruppin wrote: > What is it that makes you think our dates & time are > not correct? > > --- Keith Pemberton <[EMAIL PROTECTED]> wrote: > > I know that thi

RE: Java Question

2003-08-25 Thread Paananen, Tero
> [javac] Compiling 2 source files to > C:\jakarta-tomcat-4.1.27\webapps\benchmark\WEB-INF\classes > [javac] > C:\jakarta-tomcat-4.1.27\webapps\benchmark\WEB-INF\src\net\reu > mann\OrgIdService.java:56: stmt is already defined in > execute(net.reumann.DataHash) > [javac]

Re: Java Question

2003-08-25 Thread Mikael Eriksson - Swedish Connection
The error messages says that stmt/rs already have been declared. This is done in these lines in the beginning of the method //Declare and initialize variables Connection conn = null; Statement stmt = null; ResultSet rs = null; Change the later lines and remove the "S

Java Question

2003-08-25 Thread Kapadia Mitesh-C23457
I've been trying to compile my BLB (Business Logic Bean) and have been getting errors during compilation. I haven't a clue as to how I could debug this. Any assistance would be appreciated. Thanks in advance. - Mitesh Error Messages during compilation: [javac] Compiling 2 source files t

reloading page from array of checkbox

2003-08-25 Thread Darrel Riekhof
I'm creating checkboxes like this: x y z I define it in my form (DynaForm) like this: This submits to the server fine, all the checkboxes have their value set in the array. However, when reloading the page with the form in the session, the checkboxes don't get set. All my other controls get

Re: html in ActionMessage resource keys?

2003-08-25 Thread Mikael Eriksson - Swedish Connection
Hi! Try to do the bean:write like this The filter="false" tells it to not replace special characters to entities. Regards Mikael At 17:04 2003-08-25 -0400, you wrote: Hi, I am wondering if html tags, such as , be used in the message resource bundle keys? I want to have some formatting for

RE: Probs migrating custom ActionMapping from 1.0.2 to 1.1

2003-08-25 Thread James Childers
Unfortunately that didn't work. I'm still getting the ClassCastException when trying to cast from ActionConfig to SecureActionMapping. Here's something very strange: If I do a log.debug(modCfg.getActionMappingClass()) guess what it returns? pkg.SecureActionMapping And yet it still bombs with

html in ActionMessage resource keys?

2003-08-25 Thread Nancy Voorhis
Hi, I am wondering if html tags, such as , be used in the message resource bundle keys? I want to have some formatting for an ActionMessage, similar to what one gets using the ActionErrors and the errors.prefix, errors.header and errors.footer keys (by default = , , respectively). When I crea

RE: using tiles...

2003-08-25 Thread David Friedman
Pady, I didn't see you set your controller line set to use a Tiles RequestProcessor such as: I had a problem a little like that over the weekend with my tiles. I put that in but forgot my TilesPlugIn. Regards, David -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Se

Re: testing

2003-08-25 Thread Emerson Cargnin
test2 Emerson Cargnin wrote: just testing... -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[OT] Re: Small request...

2003-08-25 Thread Michael Ruppin
What is it that makes you think our dates & time are not correct? --- Keith Pemberton <[EMAIL PROTECTED]> wrote: > I know that this is way off topic but it would be a > bit help for my > inbox. Could the people associated with this list > please check the > clock on there computers and set the co

Paging through DB ResultSets

2003-08-25 Thread Kapadia Mitesh-C23457
Any suggestions or ideas on how I can page through a DB ResultSet? Thanks in advance. - Mitesh

RE: Checkboxes

2003-08-25 Thread Mike Jasnowski
The attached JSP may help you, I posted it a couple weeks ago to help solve a similar problem. HTH, mike jasnowski -Original Message- From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 4:58 AM To: Struts Users Mailinglist Subject: Checkboxes Hi, I have the

Small request...

2003-08-25 Thread Keith Pemberton
I know that this is way off topic but it would be a bit help for my inbox. Could the people associated with this list please check the clock on there computers and set the correct date and time? I really would appreciate this small request. -- Keith Pemberton <[EMAIL PROTECTED]> -

Re: Tiles Definition problem

2003-08-25 Thread Bryce Fischer
David. Thank you very much. I knew I was missing something very simple. I had 2 books I had been referencing, Programming Jakarta Struts and Struts In Action. I guess I missed the forward thing in those docs. Thanks again, its working great. -- Bryce Fischer <[EMAIL PROTECTED]> --

Re: RE : RE : Validator and Dispatch Actions

2003-08-25 Thread Trent Fisher
In this case, if I have one "Save" button on my page, and want either Action A or Action B to get executed, is the preferred method to set the "action" of the form dynamically in a function, something like: fnSetAction() { myForm.action="actionA"; myForm.submit(); } Or is there a different pre

Re: Checkboxes

2003-08-25 Thread Koni Roth
Hi Filip See example on the really cool page of Matt Kruse: http://www.mattkruse.com/javascript/checkboxgroup/ Koni Filip Polsakiewicz wrote: Hi, I have the following problem: I have a list of 71 Checkboxes and want to have one checkbox to select all of them at once. This works fine but I cannot u

RE: Tiles Definition problem

2003-08-25 Thread David Friedman
Bryce, To show a tile inside an independent, externally usable JSP, you're going in the wrong direction. I also suggested this broken path so let me help you get on the right path. These below 2 lines are all you need in your index.jsp to invoke your tile. I have included some explanations below o

Re: suggestion needed

2003-08-25 Thread Koni Roth
Here some of my bookmarks http://www.reumann.net/do/struts/main http://forum.exadel.com/viewtopic.php?t=120 http://www.ninsky.com/struts/ http://jakarta.apache.org/struts/faqs/ http://husted.com/struts/resources/example-spec.html http://developer.novell.com/tech/1126.html and I would also recommen

using tiles...

2003-08-25 Thread Pady Srinivasan
Since I couldn't find a separate mailing list for Tiles, I am posting here. I started using Tiles recently ( bundled with Struts 1.1 ). I am having problem using "definitions". I get this error: javax.servlet.ServletException: Can't get definitions factory from context. at o

struts and flash

2003-08-25 Thread Daniel Blumenthal
i saw a thread on using flash with struts from about a year ago, and i was wondering what the current state of affairs was. i was a good doobie and wrote my application in pretty strict MVC form, but now i'm looking at refactoring it to use a flash front-end (with dynamic communication back to the

Re: suggestion needed

2003-08-25 Thread Koni Roth
Here are some of my bookmarks http://www.reumann.net/do/struts/main http://forum.exadel.com/viewtopic.php?t=120 http://jakarta.apache.org/struts/faqs/ http://husted.com/struts/resources/example-spec.html http://developer.novell.com/tech/1126.html and I would also recommend buying a book: http://ja

Re: ActionForm null after context restart?

2003-08-25 Thread Mark Lowe
If it works okay after restart rather than just reload, i'd suggest it would be the container not maintaining sessions across reloads. And that I guess would be the nature of your question. I know that tc 4.127 has this as a fix from 4.124. Cheers Mark On Monday, August 25, 2003, at 03:53 PM,

Checkboxes

2003-08-25 Thread Filip Polsakiewicz
Hi, I have the following problem: I have a list of 71 Checkboxes and want to have one checkbox to select all of them at once. This works fine but I cannot uncheck this checkbox if it was checked once in order to uncheck all other checkboxes. Can anybody help me on this. Any code samples would be

Re: Probs migrating custom ActionMapping from 1.0.2 to 1.1

2003-08-25 Thread Kris Schneider
For 1.1, I believe you'd use: ... The "mapping" init-parameter is deprecated in 1.1. You could also customize the actions on an individual basis with: ... Quoting James Childers <[EMAIL PROTECTED]>: > Ladies and gents, > > Having an issue with migrating our application over from

Probs migrating custom ActionMapping from 1.0.2 to 1.1

2003-08-25 Thread James Childers
Ladies and gents, Having an issue with migrating our application over from 1.0.2 to 1.1. Specifically, we have a problem in the following line from our ActionServlet: ModuleConfig modCfg = RequestUtils.getModuleConfig(request, getServletContext()); SecureActionMapping secAMapping = (SecureAction

Re: validator returns blank page

2003-08-25 Thread Koni Roth
Hi Thomas Here what I would do. struts-config.xml: LogonAction.java: ActionErrors errors = new ActionErrors(); errors = form.validate(mapping, request); // Report any errors we have discovered back to the original form if (!errors.isEmpty()) { saveErro

Re: Tiles Definition problem

2003-08-25 Thread Bryce Fischer
Thanks to everyone who responded. Everyone recommended doing this: > Try this: > > Still doesn't seem to work. I get the feeling I'm missing something so insanely stupid that its tough to figure out. I'm not sure how to get any more debug information. The only thing I'm getting on the console t

validator returns blank page

2003-08-25 Thread thomas Sontheimer
I'm attempting to use the validator with a DynaValidatorForm and it returns a blank page if I don't fill the field. And if I fill the username field I'm redirected to the good page (/index.jsp). any idea? thomas here are some parts from my code: struts-config.xml:

RE: [ANN] Model-driven Development for Struts/EJB

2003-08-25 Thread David Zygmont
Cool! I receive email in plain text, so the "Platform Independent, MetaPrograms, and Life Cycle" weren't distinguished from the rest of their paragraphs, so it reads funny. It's probably better to use a separate line as a heading in the future, similar to the Overview, but without the colon. D

RE: Struts as a framework

2003-08-25 Thread Mainguy, Mike
For those of us who think "outside the box" could you elaborate on what you are asking? My copy of struts was downloaded from the internet, it came with no box ;) -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 10:37 AM To: 'Struts Us

RE: Validator JavaScript and html:radio buttons

2003-08-25 Thread Wendy Smoak
> The Javascript checking generated by the Validator > framework doesn't give an error if neither on is > selected, however the backend will, and produce an > error I can see with the tag. IIRC, it's invalid HTML unless exactly one of the radio button options is selected. In your case I'd pre-se

Validator JavaScript and html:radio buttons

2003-08-25 Thread Matt E
Hi all. I have two radio buttons on a page, one both named "outcome" one with the value of "Accepted" and one with the value of "Rejected". In my validation.xml file, I say that outcome is required. The Javascript checking generated by the Validator framework doesn't give an error if neither on

Re: multilingual app

2003-08-25 Thread Mark Lowe
If you use *_EN.properties test.string = hello!! *_FR.properties test.string = allo!! rather than lower case will work out the box, no need to specify in struts-config just in web.xml as you perhaps have done already. The internationalization is built in. Try it out by changing your browser loca

Re: Struts as a framework

2003-08-25 Thread Jing Zhou
Struts is an open-box framework, but not a out-of-box solution :-) Jing Netspread Carrier http://www.netspread.com - Original Message - From: "Bradley Handy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 25, 2003 10:00 AM Subject: RE: Struts

Re: How to write a validator class

2003-08-25 Thread K.M.Prabhu
Thanks jeff. Jeff Kyser wrote: The validator framework is more for ensuring that the user supplies a value for the username and password. After they've successfully entered fields, it is then up to you to authenticate them against the database using whatever means you see fit. -jeff On Monday,

Design question

2003-08-25 Thread deepaksawdekar
Hi, We are developing a application which will have number of create screens, as follows : Create Technology screen, Create Project screen, Create user screen. etc Each screen will have a asssociated formbean as follows. TechnologyForm for Create Technology screen ProjectForm for Create Project

RE: suggestion needed

2003-08-25 Thread Trieu, Danny
Have you try Ted's website? http://husted.com/struts/index.html -Original Message- From: Raju BSN [mailto:[EMAIL PROTECTED] Sent: Sunday, August 24, 2003 11:00 PM To: Struts Users Mailing List Subject: suggestion needed Hi, I'm a new bee to struts. I have tried some examples and no

RE : RE : Validator and Dispatch Actions

2003-08-25 Thread thomas Sontheimer
you don't need 2 action classes. you may declare 2 actions in the struts-config.xml file using the same class. but you have to declare 2 formset tags in the validation.xml file, setting up each form name with the action path instead of the form name. in the first formset tag you define validation

[ANN] Model-driven Development for Struts/EJB

2003-08-25 Thread Todd Fuller
August 25, 2003 Alpharetta, GA - Metanology releases new Model-driven Development Environment (MDE) products Overview: MDE is a full featured, model-driven development environment that includes a UML modeler and MetaProgramTM editor that integrates with a Java IDE. MDE transforms a simple UML mo

Re: How to write a validator class

2003-08-25 Thread Jeff Kyser
The validator framework is more for ensuring that the user supplies a value for the username and password. After they've successfully entered fields, it is then up to you to authenticate them against the database using whatever means you see fit. -jeff On Monday, August 25, 2003, at 05:10 AM, K.

Re: Is singleton DAO acceptable? -- Best Practices

2003-08-25 Thread Federico Real
Hi Mick, I like your implementation od DAO , Can you send me a example for this? I would like use it. Fede - Original Message - From: "Robert Taylor" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 25, 2003 3:07 PM Subject: RE: Is singleton DA

RE: Struts as a framework

2003-08-25 Thread Bradley Handy
Struts is a *very* configurable framework. However, it's not a solution for everything, and it doesn't claim to be. FYI: The documentation generally answers these types of questions. > -Original Message- > From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] > Sent: Monday, August 25, 20

Re: ActionForm null after context restart?

2003-08-25 Thread Sasha Borodin
Howdy ya'll, I posted this Friday but no one's biting so far... Has anyone had problems with session-scoped ActionForms being null after (de)Serialization (context restart). I have confirmed that running myForm.reset(...) on my ActionForm after restart throws a NullPointerException via debugging

Re: DynaForm Beans and Indexed Text fields.

2003-08-25 Thread Mark Lowe
it should work with just.. theForm.set("pmiRanges", (ArrayList) currentRates.getPmiRanges()); You dont need session.setAttribute.. and this can lead to you thinking that's life's great when its not.. and then ... ArrayList rateList = (ArrayList) theForm.get("pmiRanges"); rates.setPmiRanges(

Re: RE : Validator and Dispatch Actions

2003-08-25 Thread Trent Fisher
This being the case, say you had a situation where your form had a few fields that would be disabled/not displayed if a user didnt have a certain access level. If you wanted 2 separate validation schemes for this form (one that has all fields being validated, one that has all fields except for

Struts as a framework

2003-08-25 Thread Mohan Radhakrishnan
Hi This is a general question to understand Struts better. Is Struts a black-box or a gray-box framework ? Mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

multilingual app

2003-08-25 Thread meissa . Sakho
hi all, I'm trying to build a multilingual application with struts. I have created 4 messages ressources named AppResources_fr.properties AppResources_uk.properties AppResources_de.properties AppResources.properties One file per country and the default(AppResources) for unknown user local. thos

Re: DynaForm Beans and Indexed Text fields.

2003-08-25 Thread Joel Wickard
Mark Lowe wrote: That's more like it. Are all you fields of type string? Can I see the before and after actions? You sure can. The fields inside the PMIRateDTO ( the object that makes up each element of the List ) are all of type String. Here is the before action: /* * PreloadRateEditor.java

RE: [OT] Tree Stucture in STRUTS

2003-08-25 Thread Raghu.Ramakrishnan
Hi Atta How are u doing? Hope you had a good weekend. I have a new problme now, I would like to know how to use the tag with . I tried this way: This does not work, it says key/value pair not found??? Could you please help... Thanks Nick. Raghu -Original

RE: Iterating over session.getAttributeNames

2003-08-25 Thread Kris Schneider
JSTLIYF: Quoting [EMAIL PROTECTED]: > I'm new to struts, but this is how i did it. > > id and name are what you assign to the field > type is the class type in the vector (enumeration) > property the the field in the class defined in type(above) that you now refer > to as id and name(abov

RE: Iterating over session.getAttributeNames

2003-08-25 Thread david.ballard
I'm new to struts, but this is how i did it. id and name are what you assign to the field type is the class type in the vector (enumeration) property the the field in the class defined in type(above) that you now refer to as id and name(above) <% Vector suppliers = (Vector) catalogSession.

RE : Validator and Dispatch Actions

2003-08-25 Thread thomas Sontheimer
you have to use (Dyna)ValitatorActionForm instead of (Dyna)ValidatorForm. Then in your validation.xml file for each new rule you specify you have to replace the name of the form by the name of the action using the form. And the rule will be applied to the form only if it's called from the action yo

RE: bnot able to display error messages

2003-08-25 Thread Mike Jasnowski
If you're storing the errors under the key "dashboard", you need to extract them with that key, otherwise you need to use Globals. From the Struts RC1 tag (sorry I don't have the Final src handy) protected String name = Globals.ERROR_KEY; Globals.ERROR_KEY is the default key the tag will look

Iterating over session.getAttributeNames

2003-08-25 Thread Renato Romano
I need to iterate over the enumeration returned by session.getAttributeNames() Any idea to do this ? I don't think that ... would work... Thanks Renato P.S.: of course I could use <% ... %> but I'd prefer not to do so ... Renato Romano Sistemi e Telematica

RE: Is singleton DAO acceptable? -- Best Practices

2003-08-25 Thread Robert Taylor
Mick, The design pattern doesn't states how DAO's are to be implemented, but rather what problem they are supposed to solve. One reason why you might not want a DAO to be a singleton is if you instantiate one with an Connection. This might be done to avoid having to pass the Connection to each

sorting using logic:iterate tag

2003-08-25 Thread Chiyaan Schumi
Hi *, Is there any possibility of sorting the data elements in the form bean with all indexed properties in it. I need to display this data using logic:iterate tag. does struts provide any functionality similar to this. The data has to be displayed in html table format, by selecting any col

How to write a validator class

2003-08-25 Thread K.M.Prabhu
Dear All, I am having an application, in which i want to check whether the userName is existing in the database. For that want to write a validator for checking the userName. The userName value will be obtained from the database. How can I write a validator. Please anyone help me. Rgds, Prab

Re: Problems with: cannot find bean under name concesiones

2003-08-25 Thread Nagendra Kumar O V S
hi, that should possibly be a problem with MS explorer 6.0 session put that in to the request rather than session and try again... u can get the culprit   -- nagi     ---Original Message---   From:

Re: Problems with: cannot find bean under name concesiones

2003-08-25 Thread Mark Lowe
So what's you list 'concesiones' full off then? The browser thing looks like a red herring to me. Could also try using request to store the list in just to iron out any potential confusion. ArrayList concesiones = new ArrayList(); Concesion c = new Consesion(); c.setIdentificador(1); c.setEtiqu

Re: suggestion needed

2003-08-25 Thread Mark Lowe
Hi Raju Can you give me more info on you background, do you already use ant? tomcat or other container? new to jsp/java? 50 years experience as a C programmer but new to struts, you get the idea. It will make a difference as to what's to good example or not. On Monday, August 25, 2003, at 06

Re: bnot able to display error messages

2003-08-25 Thread Nagendra Kumar O V S
hi, pl check.. do u have dashboard defined in the application resources?? do u have the "input" attribute defined for the corresponding action mapping??   -- nagi     ---Original Message---   From: Strut

Validator and Dispatch Actions

2003-08-25 Thread manglu
Hi, I want to use the Struts Validator to do validation. The Same action form is used for SEARCH, CREATE and EDIT. The validation rules for each of them is different( from the other two) How do i go about defining such a config in the validation config file. Appreciate any help. TIA Manglu -

Problems with: cannot find bean under name concesiones

2003-08-25 Thread Federico Real
I obtain the folowing error to access a my JSP Page. Only if i use Internet Explorer 6.0.2 in Windows XP "javax.servlet.jsp.JspException: cannot find bean under name concesiones" My JSP:

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-25 Thread Mark Lowe
You cant expect struts validator to do all the work, its nice and shows you how to get started. But yes you'd have to use the validator libs and get that running yourself. I wouldn't build a form around the limitations of validator. I'll have to get the time to try this out and iron out th

bnot able to display error messages

2003-08-25 Thread Monajit Choudhury
Hi I have some problems displaying errors in the jsp page. In the action class, I am have the following code catch (Exception exception) { errors.add("dashboard",new ActionError("dashboard","error fetching dashboard valueobject")); saveErrors(request, errors);

Re: DynaForm Beans and Indexed Text fields.

2003-08-25 Thread Mark Lowe
That's more like it. Are all you fields of type string? Can I see the before and after actions? Cheers MArk On Monday, August 25, 2003, at 02:04 AM, Joel wrote: Okay, so I set the scope of both the preload action, and the action servlet that my form is bieng posted to, to "session". I also p

RE: Missing images & style sheet in welcome file

2003-08-25 Thread sriram
I forgot to include in login.jsp. I've included this and it worked! -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 11:19 AM To: 'Struts Users Mailing List' Subject: Missing images & style sheet in welcome file Hi, In my web application (using

RE: Disallow user to modify URL in browser address bar

2003-08-25 Thread sriram
Veeraswamy, Thanks for that. I have done the same. Instead of HTTP_REFERER, I have used 'referer'. When I was working with ASP, I have done this with HTTP_REFERER and I tried the same with JSP-Struts application also. But it didn't work. Then I printed all the headers and noticed that it shoul

RE: Missing images & style sheet in welcome file

2003-08-25 Thread sriram
Nagendra, After posting the question, I realized that I haven't included in .jsp file. I included that and it worked fine. Thanks. Sriram -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 12:53 PM To: [EMAIL PROTECTED] Subject: R

Re: Missing images & style sheet in welcome file

2003-08-25 Thread Nagendra Kumar O V S
hi, have u looked in to the the final url after the page is rendered.?? have u tried using the in ur jsp??   -- nagi   ---Original Message---   From: Struts Users Mailing List Date: Monday, August

suggestion needed

2003-08-25 Thread Raju BSN
Hi, I'm a new bee to struts. I have tried some examples and now I'm able to understand a bit abt the framework, but still not sure of the complete steps needed to develop a web application using struts. It will be a great help for me, if any one of you suggest me a site with good examples. Tha

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-25 Thread Adam Hardy
sorry, I meant to say regarding validation, if you try defining 50 form fields in a validation.xml, then you have to have 50 names. You would also have to copy and paste the whole form definition for each form. Sounds less and less like a good idea, if it even works. On 08/25/2003 05:13 AM R Ba

RE: Problem build war using Ant

2003-08-25 Thread deepaksawdekar
Thanks a lot. yes it was the problem of ant version only. i was using eclipse plugin which support ant 1.5.2. After i installed the separate ant 1.5.4 it works. Now i have to find the plugin for eclipse which supports ant 1.5.3 or above. Deepak -Original Message- From: Navjot Singh [ma

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-25 Thread Adam Hardy
The struts-validator configuration xml requires you to name the form fields to be validated and the validation it depends on, at design time. I am not sure about this, but it might be possible to define your validation to do all possible validations on a form bean. I haven't tried putting extra

Re: Issue in using struts-html-el tag

2003-08-25 Thread R Balaji
Hi Aattai, Well, all the configurations you made in your jsp are fine. in the html-el:text, you have mentioned that it should be populated to the "assign" property of the bean. But how will the el tag know, the name of the bean, this property belongs to ?. better you specify the name of the

Missing images & style sheet in welcome file

2003-08-25 Thread sriram
Hi, In my web application (using struts), I have login.jsp as welcome file. I've defined the welcome file in web.xml as follows: /jsp/login.jsp And in login.jsp, I'm using relative path to load images and style sheet. My directory structure is as follows: ---web | |--css

RE: Design question...

2003-08-25 Thread Navjot Singh
hi, If are getting some collection to the JSP page and just wish to display a subset of them without changing anything on BL layer, Use Pager Taglib and get away with it easily. But there is a downside to it as you may have 1000 records and you just want to show 10. So, 990 records are burden on

Is singleton DAO acceptable? -- Best Practices

2003-08-25 Thread Mick Wever
All the DAO examples I've read have DaoFactory classes that always return a new DAO instance, and typically the action using it keeps a handle to it for that session. The DAOs that I've created have no state or instance variables, and get their connections from a synchronized pool (and always retu

RE: Problem build war using Ant

2003-08-25 Thread Navjot Singh
have you checked the ANT version? |-Original Message- |From: deepaksawdekar [mailto:[EMAIL PROTECTED] |Sent: Monday, August 25, 2003 10:39 AM |To: Navjot Singh; Struts Users Mailing List |Subject: RE: Problem build war using Ant | | |Thanks for the response, |My dir strucute is |webgui |

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-25 Thread R Balaji
Mark, This approach looks nice. Did you consider, populating the bean, on form submit ? ... one more thing is.. will the struts-validator go well with this ? R Balaji Mark Lowe wrote: Okay .. I've been thinking about this. I think it might work something like this.. The arrayList will be

RE: Problem build war using Ant

2003-08-25 Thread deepaksawdekar
Thanks for the response, My dir strucute is webgui |_ build #contains the build file |_ classes #Where build stores the class |_ etc # contains all my config files. |_ lib # contains depending jar file like jar files of struts tld etc. |_ pages#

Issue in using struts-html-el tag

2003-08-25 Thread K.M.Prabhu
Hi All, I am using struts-html-el tag in my jsp page for textarea. Steps i have followed.. 1. Put struts-el.jar in CLASSPATH or WEB-INF/lib (This jar would be present in $STRUTS_HOME/contrib/struts-el/lib) 2. Declare the prefix to be used in your jsp : <[EMAIL PROTECTED] uri = "http://jakarta.a

RE: Disallow user to modify URL in browser address bar

2003-08-25 Thread thirumalai . veeraswamy
You can check the "HTTP_REFERRER" host header info. If you click an url (hyperlink) http://localhost:8080/app/str/testview_srchpost.do which is given in http://localhost:8080/app/str/index.jsp page then the referrer would be http://localhost:8080/app/str/index.jsp if you just type the url in the l

Re: Generic Ok/Cancel Page

2003-08-25 Thread ll
and in the confirmation jsp page there is a "continue" link: "> oh sorry... ignore the hide="true"... I have subclassed the link tag and added some functionality (optionally hide the link if the currently logged-in user would not be able to access it), but I forgot to remove that from m

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-25 Thread R Balaji
Adam, Even, i know the nature of all the attributes during design time itself. Assume, i have 50 attributes in general, i know how to validate each one of them, during design time. But, for a particular kind of Business object, i would be getting just 20 properties alone, and the rest of the p

RE: Struts-example database

2003-08-25 Thread Steve Raeburn
The example application defines a custom plug-in that is initialised at start-up and loads the database and stores it in the ServletContext (application scope). struts-config.xml: MemoryDatabasePlugIn.java servlet.getServletContext().setAttribute(Constants.DATABASE_KEY, database); C

Re: Generic Ok/Cancel Page

2003-08-25 Thread ll
I have a generic confirm page (it just tells the user that the action was completed, i.e. their data was saved), but I'm sure you could use the same idea. In my "submit" action (the one that handles the form submission), I have two forwards: "confirm" is the confirmation page, and "co

Re: validation, input page, and request-scoped variables

2003-08-25 Thread ll
That makes perfect sense now. Another action mapping that sets up the rest of the page variables but doesn't touch the form. I'll do it like that, of course making sure that the common parts (setting up the request attributes) is in one method that gets used by all. Thanks! On Sunday, Aug 2

Generic Ok/Cancel Page

2003-08-25 Thread Shane Mingins
Hi I am wishing to create a generic OK/CANCEL type page that can be used by different workflow situations. Can anyone suggest a nice tidy way of doing this? The way I see it is that somehow I need to dynamically define the ok/cancel forwards from the page based on the page it is coming

Re: DynaForm Beans and Indexed Text fields.

2003-08-25 Thread Joel
Okay, so I set the scope of both the preload action, and the action servlet that my form is bieng posted to, to "session". I also put the bean in session scope instead of request scope when I preload the DynaForm with values before passing it to the jsp. So The jsp still loads and reders

  1   2   >