Re: Re: Using the c-tag with Struts?!

2006-07-05 Thread Julian Tillmann
thanks for the good information :) Julian Original-Nachricht Datum: Wed, 5 Jul 2006 06:55:33 -0700 Von: Wendy Smoak <[EMAIL PROTECTED]> An: Struts Users Mailing List Betreff: Re: Using the c-tag with Struts?! > On 7/5/06, Julian Tillmann <[EMAIL PROTECTED]> wrote: > > > I'd

Re: how to maintain state of jsp

2006-07-05 Thread Medicherla Lakshmi
Yeah, thatz ok, but am using a dynaactionform for this and there is no seperate form. Moreover, am retrieving the values using request.getParameter("sss"). whatever the parameter may be since i have select boxes also in my jsp. Paul Benedict <[EMAIL PROTECTED]> wrote: Do not use automatic v

Re: how to maintain state of jsp

2006-07-05 Thread Paul Benedict
Do not use automatic validation. Set validate="false" and call form.validate() in your execute method. Then you should determine if you need to invoke your database again and reset the form with whatever fields you want. -- Paul Medicherla Lakshmi <[EMAIL PROTECTED]> wrote: Hi all, I have

how to maintain state of jsp

2006-07-05 Thread Medicherla Lakshmi
Hi all, I have a problem of maintaining the state of the jsp which is entered with some values. In my jsp, i have some text boxes and select boxes. I enter all the values and submit it, but if the name of any of the text boxes exist in the database already, it fires an alert and refreshe

Re: Cannot find examples.war

2006-07-05 Thread Wendy Smoak
On 7/5/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: Ever since the web site redesign, I cannot find the to get started with. Anyone know where it is? Been searching struts site for a bit. No luck. The example apps would be included in any of the release distributions. * http://struts.apache.or

Re: Cannot find examples.war

2006-07-05 Thread Monkeyden
You looking for the jar or the war? In either case, there isn't one that I know of. However, an exploded examples app come with Struts and the classes you would expect to find in an examples.jar file can be found in the WEB-INF\classes subdirectory of the exploded WAR. On 7/5/06, Jim Reynolds <

Cannot find examples.war

2006-07-05 Thread Jim Reynolds
Ever since the web site redesign, I cannot find the to get started with. Anyone know where it is? Been searching struts site for a bit. No luck. Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Tiles: Passing a bean to tiles in a definition file

2006-07-05 Thread Dan Langer
When invoking a tile through a JSP, one can do a to bring a bean named gridC into the tile (under the name headerInfo), where said bean was defined elsewhere (with a request.setAttribute("gridC",grid). How do you do this when you're using tile definitions (centralized into one file)? This

How to Retrieve Parameters Passed Along with c:url in a Struts Action Class?

2006-07-05 Thread Caroline Jen
In my JSP, I passed a number of parameters inside the JSTL core c:url tag. This is the way I coded: Click How do I retrieve the respective values of param1 and param2 in MyAction.java? String parameter1 = request.getParameter( "param1" ); String parameter2 = request.getParameter( "param2" )

Re: repopulating fields from an array in a formbean

2006-07-05 Thread Michael Jouravlev
Here is my own opinion, which cannot be considered an "official" or a "best" practice, but nevertheless: [ Approach 1 ] You use one action class to display the page (render phase) and to process input (submit phase). In this case I suggest not to use "input" property entirely, and not to use auto

repopulating fields from an array in a formbean

2006-07-05 Thread struts
I have two related questions... I can probably figure out ways to hack around these issues, but I'm hoping for a "best practices" solution. My requirement is pretty simple: you click on a category link, the action builds the List of items for that category, and the JSP iterates them and shows qua

Re: [Shale] Validation...

2006-07-05 Thread Craig McClanahan
On 7/5/06, Rodrigo Barreiros <[EMAIL PROTECTED]> wrote: Hi, I need use client-side validation in my application. I am using Shale Validator (shale-core-1.0.2) with Myfaces 1.1.1. The validation works fine, but messages appears encoded in wrong way. For example, for message (in portuguese): er

Re: Rendering an array as a list box

2006-07-05 Thread Michael Jouravlev
On 7/5/06, Adam Gordon <[EMAIL PROTECTED]> wrote: Can anyone point me to a working example of how to render an array of String objects as a list box in a JSP such that the contents of the list box can come from a property set on the request and not the bean mapped to the struts Action? It seems

Re: Rendering an array as a list box

2006-07-05 Thread Laurie Harper
Adam Gordon wrote: Can anyone point me to a working example of how to render an array of String objects as a list box in a JSP such that the contents of the list box can come from a property set on the request and not the bean mapped to the struts Action? Use the 'name' attribute on the Struts

Re: [Shale] Validation...

2006-07-05 Thread Rodrigo Barreiros
For example, for message (in portuguese): errors.required={0} ? um campo obrigat?rio. Should appear: "Nome ? um campo obrigat?rio." in alert window, but appears: "Nome &# 233; um campo obrigat&# 243;rio." The same happens using corejsf-validator tag. Any suggests? Thanks, Rodrigo -- View thi

html:text

2006-07-05 Thread fea jabi
In a table in one of the columns there are is it required that each input item has a corresponding form-bean property? by using the below does it take all the user entered values in the column?? Each row is an object and sessionScope.Form.hrs is the list of these objects. requestURI="Prepa

[Shale] Validation...

2006-07-05 Thread Rodrigo Barreiros
Hi, I need use client-side validation in my application. I am using Shale Validator (shale-core-1.0.2) with Myfaces 1.1.1. The validation works fine, but messages appears encoded in wrong way. For example, for message (in portuguese): errors.required={0} ? um campo obrigat?rio. Appears: "Nome é

Re: how to use dwr in myeclipse 5.0

2006-07-05 Thread Monkeyden
yeah, it's called Google. You can find pretty much anything there. On 7/5/06, Gomathi <[EMAIL PROTECTED]> wrote: how to create ajax application using dwr in myeclipse5.0 Is there is any site to follow this Kindly regards gomes

[OT][ANN] JAVAWUG BOF XX / Oracle City of London / 13th July 2006 @ 7pm

2006-07-05 Thread Peter Pilgrim
Hi All I would like announce the twentieth birds-of-a-feather (BOF 20) of the Java Web Users Group. The event will take place at Oracle City Of London One South Place London, England EC2M 2RB. The feature speakers: Emmanuel Okyere

RE: The content of element type "web-app" must match

2006-07-05 Thread David Friedman
Before I mention ant, were there any further error messages indicating the line, section, or attribute causing your web.xml parsing problem? Are you sure you are using the appropriate container? I.E. Your web.xml file states a 2.3 servlet config so are you sure the container you are using support

Re: Shale, Spring & Tiger Annotations

2006-07-05 Thread Enrique Medina Montenegro
Yes, that's the same link I tried, but without success... On 7/5/06, Adam Brod <[EMAIL PROTECTED]> wrote: Well, I haven't actually used the Spring 2.0 scopes yet (I'm using Shale-Tiger for our "scoped" objects). However, if you google 'Spring 2.0 scope session', there are a couple good links l

RE: struts portlet bridge -

2006-07-05 Thread Samere, Adam J
You could try storing the output of html:rewrite into a variable (or using c:url), then use the variable as the value of the page attribute. jsp:include's page attribute will allow expressions (EL or scripting) http://java.sun.com/products/jsp/syntax/2.0/syntaxref2020.html#8828 Adam -Origin

Re: Shale, Spring & Tiger Annotations

2006-07-05 Thread Adam Brod
Well, I haven't actually used the Spring 2.0 scopes yet (I'm using Shale-Tiger for our "scoped" objects). However, if you google 'Spring 2.0 scope session', there are a couple good links like this one: http://forum.springframework.org/showthread.php?t=26302 Adam Brod Product Development Team

Re: struts portlet bridge -

2006-07-05 Thread Michael Jouravlev
You cannot include one JSP tag into another JSP tag. On 7/4/06, Spin <[EMAIL PROTECTED]> wrote: Hello, I want to use the bridge together with the jsp: <%@ taglib uri="http://portals.apache.org/bridges/struts/tags-portlet-html"; prefix="html"%> This line is only for practice,

Re: Shale, Spring & Tiger Annotations

2006-07-05 Thread Enrique Medina Montenegro
Hi Adam, How do you declare a Spring bean to be session scoped? I've tried: but I get an IllegalStateException. Please note that I'm not using the container yet, as I'm just preparing the control logic for JSF in a isolated way through Shale testing framework ;-) On 7/5/06, Adam Brod <[EMAIL

RE: same name action in 2 diff struts-config.xml

2006-07-05 Thread Samere, Adam J
If you use modules rather than just multiple config files the action name is relative to the module name, so you can use the same path. If you are not using modules, you need to name them differently so that the RequestProcessor knows which Action instance to invoke. Adam -Original Message---

same name action in 2 diff struts-config.xml

2006-07-05 Thread A. Lotfi
Hi, I have two struts-config.xml : struts-config.xml tha has an action called : getMessages struts-config-coi.xml that has an action called : getMessages this two actions have the same name but they are difined different in each struts-config file . Do I have to rename one of

RE: The content of element type "web-app" must match

2006-07-05 Thread A. Lotfi
Hi, thank you David for your time and helps, but what is maven war package ? Thank you David Friedman <[EMAIL PROTECTED]> wrote: Forget the maven war package idea. I must have been mistaken because it didn't work. (I had a moment to try before I leave) Regards, David -Original Message-

Re: [shale] and ejb 3.0 and hibernate working together example

2006-07-05 Thread stephan opitz
it works as ear project with access to the ejbs by prewriting the ear-archive name 2006/7/1, stephan opitz <[EMAIL PROTECTED]>: i've looked hours for it and it didn't work... using eclipse... also examples from inet whicht i imported in eclipse... out-of-container ejb shouldn't be that problem

Rendering an array as a list box

2006-07-05 Thread Adam Gordon
Can anyone point me to a working example of how to render an array of String objects as a list box in a JSP such that the contents of the list box can come from a property set on the request and not the bean mapped to the struts Action? It seems like this should be straight forward based on the ex

Re: [shale] + myeclipse + jboss + how to + working???

2006-07-05 Thread stephan opitz
best is if you do this and create an enterprise project... all ejbs in the ejb project including the meta-inf + persistence.xml the web project should be the one created with maven2 import for access to the ejb is that you have to the name of your ear-archive earArchiveName/EJBNname/local or re

Re: Using the c-tag with Struts?!

2006-07-05 Thread Wendy Smoak
On 7/5/06, Julian Tillmann <[EMAIL PROTECTED]> wrote: I'd like to use the c-tag of the core tag library as it seems to be powerful. For example "else if" is not implemented in Struts-logic and this is often needed. Are there any disadvantages of doing so or can also you recommend it? No disadv

RE: The content of element type "web-app" must match

2006-07-05 Thread David Friedman
Forget the maven war package idea. I must have been mistaken because it didn't work. (I had a moment to try before I leave) Regards, David -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 9:39 AM To: Struts Users Mailing List Subject: RE:

RE: The content of element type "web-app" must match

2006-07-05 Thread David Friedman
I already tried that. My Eclipse Callisto (3.2 stable) parsed it and found no typing errors. I quickly checked the order of the elements and they are in the correct order, according to the BEA docs (I always reference them because they come up first on my searches for some reason) at http://e-do

Re: Shale, Spring & Tiger Annotations

2006-07-05 Thread Adam Brod
Hi Enrique- I don't believe there is any way to register the same bean instance with both Spring and JSF. If you look at Spring 2.0, it has the ability to register a bean with Request or Session scope, so perhaps that would be your best bet. Of course you wouldn't be able to use Shale-Tiger.

RE: The content of element type "web-app" must match

2006-07-05 Thread George.Dinwiddie
A. Lotfi asked: > Hi, I have a web.xml , I am using Netbeans, I got this error : > The content of element type "web-app" must match > > Here is my web.xml , I will appreciate if you can help me : > > [snip] Generally that means that something is out of order or misspelled.

Re: i18n usage when new window opened.

2006-07-05 Thread Paul Benedict
Some things to consider: 1) Is the calendar popup using Struts to create the calendar? Is it a 3rd party tag library or something? This would affect getting the Struts locale, if it is not aware of it. 2) If popping up a window loses the session, then consider the session never existed. Someti

Validation giving strange problem - pl help

2006-07-05 Thread Pankaj Gupta
Hi All, I am facing a strange problem and have no clue about it. As soon as I invoke my application, instead of the requested page I see a lot of weired code like: * @param form The form validation is taking place on. */ function validateFloatRange(form) { var isValid = true; var focusField

i18n usage when new window opened.

2006-07-05 Thread Sharon Jolly
Hi, There is a requirement in my application where i need to open a calendar popup from a link. The application that i am taking about here is a J2EE application where struts is being used which i18n complaint. The session object holds the locale information and that is what is used to determi

AW: Re: AW: Object field validation

2006-07-05 Thread Halgurt Mustafa Ali
Hi, Thank you a lot, that is exactly the reason. I changed domain to String and it works. Regards, Halgurt -Ursprüngliche Nachricht- Von: Laurie Harper [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 4. Juli 2006 21:27 An: user@struts.apache.org Betreff: Re: AW: Object field validation

Using the c-tag with Struts?!

2006-07-05 Thread Julian Tillmann
Hi I’d like to use the c-tag of the core tag library as it seems to be powerful. For example "else if" is not implemented in Struts-logic and this is often needed. Are there any disadvantages of doing so or can also you recommend it? Thanks for your suggestions! Julian -- Der GMX Sm

hi : problem

2006-07-05 Thread KUNDAN KUMAR
Hi all, I am new to sturts and tried to execute a sample application but I am getting exception as " org.apache.jasper.JasperException: /index.jsp(4,0) Unable to find setter method for attribute: name org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:3

Re: Shale, Spring & Tiger Annotations

2006-07-05 Thread KUNDAN KUMAR
Hi all, I am new to sturts and tried to execute a sample application but I am getting exception as " org.apache.jasper.JasperException: /index.jsp(4,0) Unable to find setter method for attribute: name org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java