try
instead
On Wed, 23 Feb 2005 Nandita Rajagopalan wrote :
>I have the following piece of code :
>
>
>
><% if (myform.getFlag()) { %>
>
>
>
><% } else { %>
>
>
>
><% } %>
>
>
>
>The above gives the error:
>
>
>
>Unterminated
>
>
>There is a in my jsp- so not sur
Vamsee Kanakala wrote:
I have a normal action class called PrepareFacultyEntryAction
which basically retrieves some data from the database, and forwards it
[...]
Sorry guys, my bad. I should've watched the logs properly. What was
happening is that one of the arraylists I'm sending happens
On Thu, 24 Feb 2005 00:15:51 +0100, Leon Rosenberg wrote:
> So, (a contra-argument to my own post before) if you want a high-
> performance app,
> consider moving all static content to another webserver, an apache
> or squid in front of apache/tomcat.
True. In every benchmark I've ever run, servin
Is the legacy project a servlet app? Can the Struts implementations you
plan to add exist as a separate servlet app? Can you elaborate on what
you mean by "use Struts in my legacy project"?
Erik
Samuel Cheung wrote:
I have a legacy project which uses some jakarta jar files (e.g.
common.logging.j
How can I use and use a
locale specific format from ApplicaionResources.properties?
Thank you for your time,
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.supernovasoftware.com
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
How can I use and use a
locale specific format from ApplicaionResources.properties?
Thank you for your time,
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.supernovasoftware.com
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
I have a legacy project which uses some jakarta jar files (e.g.
common.logging.jar) .
And Struts required some jakarta jar files itself.
What if the versions of those 2 jars are different? How can I use Struts
in my legacy project? I know one way is to upgrade the legacy project to
use the same v
A java.util.Date in any scope would work fine.
Larry
On Thu, 24 Feb 2005 16:40:07 -0500, Brian McGovern
<[EMAIL PROTECTED]> wrote:
> Im not too familiar with JSTL. What type of object is prop.availableDate? Is
> it stored in the standard request, or session scope?
>
> -Original Message---
Hello,
I am trying to learn struts adn playing with some test code. I have a bean that
returns an Enumeration for my view. but I cannot figure out how to get the data.
The two ways so far, have been to use the html:text and bean:write syntax.
Can I receive Objects other than strings back fro
Im not too familiar with JSTL. What type of object is prop.availableDate? Is
it stored in the standard request, or session scope?
-Original Message-
From: Jim Kennedy [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 4:21 PM
To: Struts Users Mailing List
Subject: Re: How to han
Here's some code:
MessageResources messages =MessageResources.getMessageResources("messages");
String message = messages.getMessage(msg_key, args);
Here's my struts.xml:
.
-Original Message-
From: Scott Purcell <
I use Struts throughout my application, but I also use the JSTL in a few
places. This is what I use for date formatting:
<[EMAIL PROTECTED] uri="/WEB-INF/fmt.tld" prefix="fmt" %>
Date Available:
-Original Message-
From: Brian McGovern <[EMAIL PROTECTED]>
Sent: Feb 24, 2005 3:19 PM
Hi,
I have the following structure:
+--WEB-INF
+--classes
+--books
Book.java
BookAction.java
MessageResources.properties
+-lib
commoms-beansutils.jar
commoms-digester.
Thanks I do see that in the javadoc, and it takes a request. The return is a
MessageResources object. I am good with all that, but how do I isolate the
property file that I configured in the struts-config.xml ?
According to the API, it looks like I could just ask for the String by asking
Messa
Yes, you can. Take a look at getResources(request)
- Scott
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 3:10 PM
To: user@struts.apache.org
Subject: message-resources question
In an action class, can one get access to the message-re
Hi looking for input on how to approach dates across all levels of my struts
app. Mainly what approach will allow me to handle formatting on the
presentation layer.
Is there any tag lib available in struts to handle formatting of a date type
object ?
-B
In an action class, can one get access to the message-resources?
I use the resources from JSP pages, but do not know if I can access them from a
action class in the execute method?
Thanks,
Scott
Do you have onsubmit or other JavaScript attributes set that could
interfere with the submit or that require interaction with the combo
boxes before submit? You might want to post your (JSP) form code.
Erik
Vamsee Kanakala wrote:
Hello Guys,
I have a normal action class called PrepareFacul
IIRC, there's some ongoing work to provide an "extends" capability in
DynaActionForm definitions. In the mean time, though, you can
leverage the fact that struts-config.xml is an XML document, and use
XML entities to encapsulate the common chunks. Consider:
]>
> disabled="<%myBean.isEnable%>"/>
>
> no errors thrown but It does nothing, it doesn't even outputs the
disabled on html tag.
>
"does nothing" means what? Nothing rendered, or does it render an
tag without the disabled flag?
I think you want to use !myBean.isEnable().
- Scott
---
I'm trying to set an checkbox to be disabled. But it's not working anyway
<%String enable = String.valueOf(myBean.isEnable)%>
Well, that throws an Exception setDisable(boolean). Ok so I tried
no errors thrown but It does nothing, it doesn't even outputs the
disabled on html tag.
Another despe
Hi,
does anyone have any experience with Laszlo and Struts? Laszlo has just
gone opensource, and it is very impressive in my opinion wrt RIAs.
It blows most other ui's out of the water.
We're just beginning to explore it, so would be interested in others'
experiences...
cheers.
David
--
I am using Struts 1.2.4
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 6:41 PM
To: 'Struts Users Mailing List'
Subject: Validwhen confusion?
Hey everybody,
Just want to validate a two field match using validwhen:
I am using Struts 1.2.4
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 6:41 PM
To: 'Struts Users Mailing List'
Subject: Validwhen confusion?
Hey everybody,
Just want to validate a two field match using validwhen:
Hey everybody,
Just want to validate a two field match using validwhen:
something
(*this* == newPass2)
No matter what I put in the space it always returns true!
The required statement works well. Do I miss a libra
Hey everybody,
Just want to validate a two field match using validwhen:
something
(*this* == newPass2)
No matter what I put in the space it always returns true!
The required statement works well. Do I miss a libra
Jon,
If I understand you correctly (forgive me if I am not)...
Consider out.println() as a direct System.out.println() type of thing,
but your out.println() prints directly to the browser (so to speak).
So, essentially, you are just sending the string "test" to the browser.
is a custom tag tha
While reading through the DynaActionForm debate, I wondered if using
Interfaces as well as inheritance might be a good alternative for
those who want type enforcement but don't want to duplicate common
form elements. I inherited a fairly large struts application months
ago with 30+ forms. However
I've found the same problem in the past. No solution found using
checkboxes...Solved using a combobox with "yes" and "no" value...Some
people I know said there's a Struts problem submitting checkboxes
within nested tags...honestly I admit I don't look for a better
solution ;)
Hope this help
Marco
Quoting Ashutosh Satyam <[EMAIL PROTECTED]>:
> Hi,
> As suggeseted I switched to JSTL 1.0
> I'm running my application using Tomcat 4.1.30.
>
> Below is the content of my error page.
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> <%@ page language ="java"
> import="java
Look at bean:size.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Ole Hildebrandt" <[EMAIL PROTECTED]>
To:
Sent: Thursday, February 24, 2005 9:31 AM
Subject: Obtain Size of a collection with Struts-JSP-ta
Hi there,
Is there any way to check the size of a collection with a struts-logic tag
(e.g. logic:equal)? I think the problem is, that the Collection-property
"size" is not applicable cause it has no getter-Method. Any Ideas?
Kind regards
Ole
Hi,
As suggeseted I switched to JSTL 1.0
I'm running my application using Tomcat 4.1.30.
Below is the content of my error page.
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ page language ="java"
import="java.util.*,javax.servlet.http.*"
isErrorPage="true" %>
Hello Guys,
I have a normal action class called PrepareFacultyEntryAction
which basically retrieves some data from the database, and forwards it
to a jsp page. I have a couple of which are filled by an
arraylist of label value beans. So far so good. The user selects
something, and hits s
What does your form look like?
On Thu, 24 Feb 2005 11:21:36 -0300, Vinicius Caldeira Carvalho
<[EMAIL PROTECTED]> wrote:
> Hubert Rabago wrote:
>
> >In order to detect boxes that are unchecked, your form should set the
> >corresponding property's value to false in its reset() method. See
> >htt
Hubert Rabago wrote:
In order to detect boxes that are unchecked, your form should set the
corresponding property's value to false in its reset() method. See
http://struts.apache.org/userGuide/struts-html.html#checkbox .
hth,
Hubert
On Thu, 24 Feb 2005 11:13:05 -0300, Vinicius Caldeira Carvalho
<[
In order to detect boxes that are unchecked, your form should set the
corresponding property's value to false in its reset() method. See
http://struts.apache.org/userGuide/struts-html.html#checkbox .
hth,
Hubert
On Thu, 24 Feb 2005 11:13:05 -0300, Vinicius Caldeira Carvalho
<[EMAIL PROTECTED]>
Hello there! I have a form with a nested object and I'm using struts
tags to display it.
One of the properties of the nested pojo is a checkbox. Now, handling
checkboxes with struts is already a pain, and I figured that nested
checkboxes are even worse.
Here's the deal. If the user unchecks so
> A car salesman knows when he is lying ;-)
I had to check for it on Google... Guess I'm not that old yet ;o)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry slight typo - try something of the form:
Note the <%= at the start of the name value.
If you look using Google you can problem find a simple tutorial to
explain all about the logic tags but put simply the above statement
checks for the presence of a bean named the value of
Konstants
Its working thanks. another thing though.
I need to use a constant variable for
wrote:
> Hi Richards,
>
> id="idRuser">
>
>
>
>
>
> Make sure that class Ruser has getter and setter methods too
>
> Regards,
> Krishna Mohan
>
> -Original Message-
> From: Richard
Hi Iyanu Rajasekaran ,
Thanks for the reply. I got an error...
ception: /serverpages/main-rusers.jsp(45,33) equal symbol expected
On Thu, 24 Feb 2005 05:35:41 -0500, Iyanu, Rajasekaran
<[EMAIL PROTECTED]> wrote:
>
> Richard,
>
> U can specify it like this...
>
>
>
>
>
>
Richard,
U can specify it like this...
When the iterate tag is evaluated, every element of rusers will be
taken out, typecasted into the Ruser Object and will be passed to the
loop..
bean:write tag here can process this object, and use the get method of
the Ruser object
Hi Richards,
Make sure that class Ruser has getter and setter methods too
Regards,
Krishna Mohan
-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 3:52 PM
To: Struts Users Mailing List
Subject: logic iterate help
Hello Guys,
I have a user obj at sessionScope. Now this object have an
field/object in it of type ArrayList named rusers. Arraylist rusers
contains an array of object
public class RUser {
private String username = "";
private String password = "";
.
.
.
How do i display the usernam
A car salesman knows when he is lying ;-)
Daniel PC Leung wrote:
I have not ever heard of it
I'd know the difference.
On Thu, 24 Feb 2005 13:29:12 +0800, Andrew Hill
<[EMAIL PROTECTED]> wrote:
Which leads us into that old joke about the difference between a
software salesman and a car salesmen
doh! shiny-side OUT people! do try to remember!
http://zapatopi.net/afdb.html
Fergal O'Shea wrote:
One from this side of the pond.
Parents bring their young child into A&E with severe sunburn on a hot
summer's day.
The doctors ask them how the child got burned.
They tell them that, yes, the chil
One from this side of the pond.
Parents bring their young child into A&E with severe sunburn on a hot
summer's day.
The doctors ask them how the child got burned.
They tell them that, yes, the child was out in the sunshine, but was well
wrapped up against the sun.
In aluminium foil.
Let'
Hi Tim/Guys,
the 2nd option is not working.
can you elaborate on the first one?
how do i declare the user? usebean?
thanks
Richard
On Tue, 22 Feb 2005 12:53:55 +, Tim Christopher
<[EMAIL PROTECTED]> wrote:
> Try using:
>
>
>
>
>
> Where user = Konstants.SESSION_USER_KEY, or maybe
Thanks for your reply Jeff. I am trying to develop a simple action and bean
with mapped properties for proof of concept. This will confirm if i can use
these.
Asif
At 06:02 PM 2/22/2005, you wrote:
>Have you looked at indexed and/or mapped form bean properties?
>
>Muhammad Asif wrote:
>>Hi,
>>
50 matches
Mail list logo