Re: Nice try (was Java code generator including Struts 1.2)

2005-08-11 Thread Yan Hu
There is perhaps no problem with Swing itself. But java is perhaps not suitable for fat client - type apps while it is a great language for the server side. As I always say that the market decides what stays and what not. Let's take a look at the job market say dice. How many are there for

RE: Nice try (was Java code generator including Struts 1.2)

2005-08-11 Thread Pilgrim, Peter
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11 August 2005 06:39 To: Struts Users Mailing List Subject: Re: Nice try (was Java code generator including Struts 1.2) OK, my post did look kind of ugly. It really wasn't directed at any person, just

Re: Nice try (was Java code generator including Struts 1.2)

2005-08-11 Thread Adam Hardy
Peter, are you going to turn into a Games programmer?! ;) ooops sorry it's not friday yet. Pilgrim, Peter on 11/08/05 11:02, wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11 August 2005 06:39 To: Struts Users Mailing List Subject: Re: Nice try (was

Re: Why interface

2005-08-11 Thread Adam Hardy
Dave Newton on 10/08/05 16:25, wrote: (4) Dependency Injection/Configurability. Classes that implement interfaces can be instantiated at runtime allowing for config-file-level application modification. This can translate into HUGE wins over the life of an application. As a recent thread on

Should I use JSTL 1.1 struts taglibs or JSTL 1.0 struts-el taglibs?

2005-08-11 Thread netsql
W/ Tomcat 5 (Servlet 2.4) you should use latest JSTL and regualr Struts tags. You would only use Struts-el tags w/ Servlet 2.3. .V People are conversing... without posting their email or

Re: strut 1.2.7 and web.xml

2005-08-11 Thread Thai Dang Vu
The examples go with Struts 1.2.7 say ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; for web.xml. I don't know what your problem is. Could you send you whole web.xml

Re: Why interface

2005-08-11 Thread Dakota Jack
You missed the point, Adam. No one is so daft as to be saying that having an interface makes the implementations of that interface less than specific implementations. The point is that you can switch them out. On 8/11/05, Adam Hardy [EMAIL PROTECTED] wrote: Dave Newton on 10/08/05 16:25,

[OT] Swing, was Re: Nice try (was Java code generator including Struts 1.2)

2005-08-11 Thread Dave Newton
Yan Hu wrote: But java is perhaps not suitable for fat client - type apps while it is a great language for the server side. How is it not suitable for fat clients? _Especially_ fat clients that might reuse a _substantial_ part library code of the server side or interface directly with a

RE: strut 1.2.7 and web.xml

2005-08-11 Thread Duane Rosengartner
I don't believe the web.xml would have to change to upgrage struts version, except of cource references to Struts.jar etc. I believe the header has to be in Sync with the Tomcat/web-app version you're using. For example, I have Tomcat5.0.28 and my web.xml begins as such: ?xml version=1.0

Conditionally show values in Tile (c:when?)

2005-08-11 Thread Albrecht Leiprecht
Hi all, I have a tile that shows my default input row in a form. In case that I put a value in FieldError, I want it to show it the errorMessage in red color. So far so good. The values get to the tile (formRow)... and there it's getting somewhat tricky. After reading a number of explanations, I

Re: Why interface

2005-08-11 Thread Dave Newton
This got long-ish as I'm partially thinking out loud about this work-in-progress. Sorry. The whole thing got blown out of proportion late last week and I shouldn't be doing this with Struts at all, I think. More of a Dave's Java Playground project, this. Adam Hardy wrote: if you have a whole

RE: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Albrecht Leiprecht
Let me rephrase the question Is there any limitation on using JSTL in Tiles ??? Rgs albi -Original Message- From: Albrecht Leiprecht [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 3:28 PM To: 'Struts Users Mailing List' Subject: Conditionally show values in Tile

RE: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Duane Rosengartner
%=errmsg.toString().length()% %--correctly prints the expected value--% I believe the scriptlet is evaluated at runtime(server-side). Is it possible you have a bean property holding this: errmsg 'expected value' ? tiles:useAttribute id=errmsg name=FieldError scope=page/ However the JSTL is

Re: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Greg Reddin
On Aug 11, 2005, at 8:28 AM, Albrecht Leiprecht wrote: td %=errmsg.toString().length()% %--correctly prints the expected value--% c:choose c:when test=${errmsg.toString().length() 0} Can you do toString() in EL? I thought you could only access bean properties. If so, you'd need

Problem in including an action response into a jsp page. - return java.io.IOException: Stream closed . what is the solution?

2005-08-11 Thread Legolas Woodland
Hi I have a problem with including an action response into my jsp page here is the problem : I want to include an action output which is a jsp page (data fetched from database) into a cell of a table in my jsp page. jsp page is an struts page so i used the following to include the action respose :

Re: Should I use JSTL 1.1 struts taglibs or JSTL 1.0 struts-el taglibs?

2005-08-11 Thread Joe Germuska
At 5:21 AM -0700 8/11/05, netsql wrote: W/ Tomcat 5 (Servlet 2.4) you should use latest JSTL and regualr Struts tags. You would only use Struts-el tags w/ Servlet 2.3. I would agree with Vic; however, note that you must change your web.xml file so that the root web-app element makes it clear

how i can redirect (without loosing session) to a full url from jsp page in struts.

2005-08-11 Thread Legolas Woodland
Hi Thank you for reading my post I have a problem. problem is : I should go back to last visited page after my user login or changed locale or .. i can retrive las visited page : by using request.getheader(Referer) and i store it into a session variable. No after my user loged in i should

Re: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Dave Newton
Greg Reddin wrote: Can you do toString() in EL? I thought you could only access bean properties. If so, you'd need to provide a getLength() method on your errormsg bean and do this c:when test=${errmsg.length 0} Or c:if test=${not empty errmsg}.../c:if depending on how you're

RE: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Albrecht Leiprecht
%=errmsg.toString().length()% %--correctly prints the expected value--% I believe the scriptlet is evaluated at runtime(server-side). Is it possible you have a bean property holding this: errmsg 'expected value' ? Naa... I intentionally used a name I could be sure is not used anywhere else

Re: The idea behind modules

2005-08-11 Thread Joe Germuska
At 6:18 PM -0600 8/10/05, C.F. Scheidecker Antunes wrote: Hello all, I was reading about modules and I wonder if anyone had ever used them. As far as I can see by the examples, if you have different modules you still run only one ActionServlet. It is true that you would only have one

RE: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Albrecht Leiprecht
Just did the following: %@ taglib uri=/WEB-INF/c.tld prefix=c % % int errmsglength = 5; % Further down: c:if test=${errmsglength 1}.../c:if One would expect to see the 3 dots ... but nada ... And yes ...the taglib is loaded in the first line of the file ...Funky ...isn't it ? I'm

Re: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Greg Reddin
On Aug 11, 2005, at 9:30 AM, Albrecht Leiprecht wrote: Just did the following: %@ taglib uri=/WEB-INF/c.tld prefix=c % % int errmsglength = 5; % Further down: c:if test=${errmsglength 1}.../c:if One would expect to see the 3 dots ... but nada ... And yes ...the taglib is loaded in

Re: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Troy Bull
Greg Reddin wrote: On Aug 11, 2005, at 9:30 AM, Albrecht Leiprecht wrote: Just did the following: %@ taglib uri=/WEB-INF/c.tld prefix=c % % int errmsglength = 5; % Further down: c:if test=${errmsglength 1}.../c:if One would expect to see the 3 dots ... but nada ... And yes ...the

Re: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Dave Newton
Albrecht Leiprecht wrote: % int errmsglength = 5; % c:if test=${errmsglength 1}.../c:if One would expect to see the 3 dots ... but nada ... Funky...isn't it ? Not really. JSTL looks for variables in application, session, request, or page scope. % request.setAttribute(errmsglength, new

RE: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Albrecht Leiprecht
No matter if I set it pageContext.setAttribute(errmsglength, new Integer(errmsglength)); or like this c:set%=errmsglength%/c:set No dots, nada. I will create a fresh project that simulates the current situation and see if it shows the same behavior... That might allow me to track down the

Re: [OT] Swing, was Re: Nice try (was Java code generator including Struts 1.2)

2005-08-11 Thread netsql
Yan Hu wrote: But java is perhaps not suitable for fat client - type apps while it is a great language for the server side. Dave Newton wrote: How is it not suitable for fat clients? Yan Hu wrote: How many huge apps are written in Java Swing and how many are in C++,C or even

Multiple validation.xml files - HOW?

2005-08-11 Thread Thai Dang Vu
Hi everyone, My application has multiple struts configuration file. Those configuration files use different validation configuration files. So, where do I declare all those validaiton files? And how to do that? Thanks for any help.

Re: how i can redirect (without loosing session) to a full url from jsp page in struts.

2005-08-11 Thread Laurie Harper
First, a couple of things you need to be aware of with this. The Referrer header is not guaranteed to be there; some browsers allow the user to disable it, some firewalls and proxys filter it, etc. So if you don't have full control of the environment from which your application is accessed,

Re: Multiple validation.xml files - HOW?

2005-08-11 Thread Laurie Harper
Thai Dang Vu wrote: My application has multiple struts configuration file. Those configuration files use different validation configuration files. So, where do I declare all those validaiton files? And how to do that? Look near the end of your struts-config.xml. Just add the additional files

Re: Problem in including an action response into a jsp page. - return java.io.IOException: Stream closed . what is the solution?

2005-08-11 Thread Michael Jouravlev
http://today.java.net/pub/a/today/2005/08/04/jspcomponents.html?page=3#jsp_servlets_compatibility On 8/11/05, Legolas Woodland [EMAIL PROTECTED] wrote: Hi I have a problem with including an action response into my jsp page here is the problem : I want to include an action output which is a

Re: Nice try (was Java code generator including Struts 1.2)

2005-08-11 Thread Martin Gainty
Certainly Event Handling is much more robust and overt in Swing than J2EE Which is probably why alot of folks went directly from Swing to .NET or CF The need for more fine grained Handler mechnisms for J2EE has at least been addressed by JSF.. Martin- - Original Message - From:

validator newbie

2005-08-11 Thread David McReynolds
If inherited some code. I'm not sure what its trying to tell me. The user is simpley forwarded on to the next page and there is no indication of a problem other than this logged exception. [11 Aug 2005 13:38:42,886] [org.apache.struts.validator.ValidatorForm] [ERROR] validateRequired

RE: valuator newbie

2005-08-11 Thread Taylor, Kevin
This is caused by a required field being left empty on the form. Kevin Taylor -Original Message- From: David McReynolds [SMTP:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 12:55 PM To: StrutsUserList Subject: validator newbie If inherited some code. I'm not sure what

Multiple message resources files?

2005-08-11 Thread Thai Dang Vu
I use multiple message-resources files in my application like this message-resources parameter=view.ApplicationResources/ message-resources key=provider parameter=Provider/ This is a part of my validation.xml file: field property=county depends=required arg0 key=cssite.county/

Re: valuator newbie

2005-08-11 Thread David McReynolds
okay. I was under the impression that the user would not have access to the log files. This exception is the only indication that something went wrong. What needs to happen to get a message back to the user? On 8/11/05, Taylor, Kevin [EMAIL PROTECTED] wrote: This is caused by a required field

RE: valuator newbie

2005-08-11 Thread Taylor, Kevin
Generally the validator errors are converted into ActionErrors and displayed in the JSP with the html:errors tag. This could be handled numerous ways, e.g. in the Action class or ActionForm. Kevin Taylor -Original Message- From: David McReynolds [SMTP:[EMAIL PROTECTED] Sent:

Re: [OT?] JSF issue: Second link in JSP gives Duplicate component ID error

2005-08-11 Thread GRamani
Here's the code for the jsp in a more readable format: f:view h:form h:dataTable id=items value=#{CDManagerBean.cds} var=cd rowClasses=oddRow, evenRow headerClass=tableHeader h:column id=aColumn f:facet name=header h:panelGroup id=aPanelGroupId

Re: Specify which resource bundle to use for arg0 tag in validation.xml?

2005-08-11 Thread Laurie Harper
Thai Dang U wrote: I have many struts config files in my application. One of them is struts-config-provider.xml. In this file, I declare a resource file and validation files like this: message-resource key=provider parameter=Provider/ plug-in

Re: Specify which resource bundle to use for arg0 tag in validation.xml?

2005-08-11 Thread Thai Dang Vu
This application uses something like module, but I don't think it's module. I think they use multiple struts configuration files (single module). This is a part of the web.xml: servlet servlet-nameaction/servlet-name servlet-classcom.xhmh.dcis.common.DCISActionServlet/servlet-class

Use bean:write to write special characters?

2005-08-11 Thread Thai Dang Vu
Hi everybody, I have a string s whose value is '' (s contains 2 single quotes). I put a bean:write tag in a javascript segment of a jsp page with the hope that when this jsp page is displayed I will have something like var jan = new Array('', 1, '', 2, 3, 4, ''); But in fact what I get is

JAAS vs JDBRealm

2005-08-11 Thread C.F. Scheidecker Antunes
Hello all, A little question. I've wrote a little web app for school with Servlets. In my Eclipse Project I've added a context.xml file in order to configure JDBCRealm and it worked perfectly as Tomcat 5.x supports this kind of thing, adding a context.xml file inside the META-INF/ subdir.

Re: Multiple message resources files?

2005-08-11 Thread Niall Pemberton
You need Struts 1.2.7 (and validator 1.1.4) to do this. The validator DTD has a bundle attribute for the arg element (but not arg0). Earlier DTD versions also had this element, but it was ignored until Struts 1.2.7 - and requires Commons Validator 1.1.4

Re: Certification

2005-08-11 Thread Ed Griebel
Try javaranch.com, they have many tutorials, resources, and study guides, and active forums too. Good Luck!! -ed On 8/11/05, Rafael Taboada [EMAIL PROTECTED] wrote: Hi folks. I live in Peru and I'm so interested to get java certification. But here in Peru is a little difficult to have some

Re: Certification

2005-08-11 Thread Tamas Szabo
Hi, On Thu, 2005-08-11 at 21:12 -0500, Rafael Taboada wrote: Hi folks. I live in Peru and I'm so interested to get java certification. But here in Peru is a little difficult to have some courses in order to get certification and because it's so expensive. My question is u know some site

Re: Certification

2005-08-11 Thread C.F. Scheidecker Antunes
javaranch.com Rafael Taboada wrote: Hi folks. I live in Peru and I'm so interested to get java certification. But here in Peru is a little difficult to have some courses in order to get certification and because it's so expensive. My question is u know some site or have some material in

editing rows

2005-08-11 Thread Balkan Guler
Hello There are some tables in database and I have to transfer them to the web pages. Also they can be deleted and edited. I am using Struts. I populate a list of objects from tables. And put this list in a formbean and list them in a web page as below: logic:iterate id=omenu name=operForm