hi ,
suppose i am using struts based app while showing data in various columns and i wish
to give user the choice to sort the column based on his choice does there is a
support in struts html tags or other validator javascript generator so that this
feature can be performed like we
Sean
I've been trying the same thing (use struts for tiles and the rest jsf)
here's what I've found in case it useful.
Myfaces has a tiles handler and seems to work okay, (see
www.myfaces.org) . Not wanting to use myfaces for the core, as its a
beta version, I just use the my faces components
Dooh.. The jsf source only provides the interfaces and abstract
classes, without the actual buts that do the work in there.
On 20 Oct 2004, at 09:59, Mark Lowe wrote:
Sean
I've been trying the same thing (use struts for tiles and the rest
jsf) here's what I've found in case it useful.
Myfaces
Oh no.. Found it..
On 20 Oct 2004, at 10:17, Mark Lowe wrote:
Dooh.. The jsf source only provides the interfaces and abstract
classes, without the actual buts that do the work in there.
On 20 Oct 2004, at 09:59, Mark Lowe wrote:
Sean
I've been trying the same thing (use struts for tiles and the
hi Brady ,
i did like what u said ..
Still my page goes half-blank ..
please give me some solution .
i have invested more than 3 days on this but in vein ..
Regards,
Sachin Hegde
-- Original Message ---
From: Brady Hegberg [EMAIL PROTECTED]
To: Struts Users Mailing List
package ste.filters;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
/**
* UTF8 request filter.
*
Hi,
i would like to parse a XML file through Struts AND also according to a XML
schema.
so may question is...what is the method to validate a XML file with a XML
Schema before parsing it?
thank you
YR
-
To unsubscribe,
Did you try making a commons-logging.properties in the default package with
something like :
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
You should then be able to create your simplelog.properties in the default
package with something like:
[This question was posted to taglib-user list also but I received no
responses. My apologies for the cross post.]
Hello,
I have the following JSTL code fragment that is failing:
c:if test=${empty form.mappedProperty[13]}
c:set target=${form} property=mappedProperty[13] value=newValue/
/c:if
Can I use jdk1.4 with struts 1.1?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I don't see why not.
Viral_Thakkar wrote:
Can I use jdk1.4 with struts 1.1?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I guess u will have to use some xml parser for this
u can get more info from
www.jdom.org
On Wed, 20 Oct 2004 13:17:25 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
i would like to parse a XML file through Struts AND also according to a XML
schema.
so may question is...what is
Hi ,
I was looking for a way to pass multiple parameters through my action mapping.
can I pass only one parameter or is it possible to pass multiple?
for example in this config I can pass only one parameter {parameter=method}
action path=/saveSubscription
Asleson, Ryan [EMAIL PROTECTED] wrote on 10/20/2004 08:18:48 AM:
[This question was posted to taglib-user list also but I received no
responses. My apologies for the cross post.]
Hello,
I have the following JSTL code fragment that is failing:
c:if test=${empty
yes
On Wed, 20 Oct 2004 08:59:56 -0400, Jeff Beal [EMAIL PROTECTED] wrote:
I don't see why not.
Viral_Thakkar wrote:
Can I use jdk1.4 with struts 1.1?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Having said all that about the *bugs* though, the problem you'll face will
be getting anyone to implement your changes and you may go to the trouble of
developing patches that just get ignored.
It was always was my intention to implement the changes myself. I wanted to gauge
reaction to see if
You can only pass one parameter with this way
Regards
On Wed, 20 Oct 2004 15:16:43 +0200, Hariharan V [EMAIL PROTECTED] wrote:
Hi ,
I was looking for a way to pass multiple parameters through my action mapping.
can I pass only one parameter or is it possible to pass multiple?
for
I do not think there is any example code.
It esence you are going to put some values in scope (request?) in an action.
Then in a pages, you will use those values.
Very simple and lets you make very complex dynamic designs.
.V
PC Leung wrote:
The following are defined in tiles-defs.xml
putList
item
To do this, you'll need to create a custom ActionMapping class and use
the set-property/ element.
public class MyActionMapping extends ActionMapping {
private String prop1;
public String getProp1() { return prop1; }
public void setProp1(String newProp1) { prop1 = newProp1; }
private
Jeff,
Thanks for that info, I will try out this option.
On Wed, 20 Oct 2004 09:50:28 -0400, Jeff Beal [EMAIL PROTECTED] wrote:
To do this, you'll need to create a custom ActionMapping class and use
the set-property/ element.
public class MyActionMapping extends ActionMapping {
private
Hi, all,
I have JSP file J1 with form F1 inside. It is used to
accept user's input. And I will display the result in
JSP file J2 with form F2. And there are a checkbox
and multibox in F2.
At first, I didn't associate F2 form bean with Action A1 which
is triggered in F1. I just associated F1
I tried the first one but didn't work. All I am doing is checking for a flag
that I am setting in the session in my Action class like below..
Action Class:
session.setAttribute(loggedUser, admin);
JSP:
logic:equal name=registrationForm property=accessLevel value=1
I tried this:
c:if test='${empty form.mappedProperty[13]}'
And received the error below. I know that there is a
getMappedProperty(String key) method on the form class. Any other ideas? I
can't believe this isn't working right -- there's got to be a way to pass
parameters into methods usting
What happened when you tried it?
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: Viral_Thakkar [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 8:44 AM
Hi there!
I have the following problem:
My form offers the ability to a user select from some categories, let's
say first grade, second grade
on the next step user selects subjects for each one:
first grade:
MathEnglishScience
second grade:
MathEnglish History
As you can see, a
Hi,
Wondering if anyone has encountered this before and perhaps a solution :)
I have constants defined in a regular Java bean class. ie.
public static final String STATUS_DRAFT = draft;
The bean has request scope in the page, no problem there, but I can't reference this
constant value
Ryan,
JSTL does not support the getValue(String key) syntax for accessing
mapped properties. Instead you need to expose the Map itself in a getter
method. If you made getMappedProperty() return the map then your JSTL
will work.
-Bill Siggelkow
Asleson, Ryan wrote:
I tried this:
c:if
Can someone tell me how to retrieve session variable values using Struts
tags??
I tried logi:match but didn't work. All I am doing is checking for a flag
that I am setting in the session in my Action class like below..
Action Class:
session.setAttribute(loggedUser, admin);
JSP:
Hi,
I am trying to write a Jsp page with 2 frames. The top frame shows 3 images (gif
files). Clicking on each different image shows a different jsp in the bottom frame.
Which attribute of the html:imgan I use so that I can use that parameter in the
property of the corresponding class,
See http://marc.theaimsgroup.com/?l=struts-userm=109636066026332w=2
-Original Message-
From: Robin Mannering [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 3:21 PM
To: [EMAIL PROTECTED]
Subject: Bean Constants and JSP EL
Hi,
Wondering if anyone has encountered
Ok, I missed this the first time. When I do this I first get the map and
pass the string key to the map.
Try adding a method to the form that exposes the map then give the key to
the map.
public Map getMap(){
return whateverYourMapIs;
}
then
c:if test='${empty form.map[13]}'
Tong,
While I appreciate that you are trying to present your information in a
generic manner -- it is rather difficult to know what's going on without
specifics. For checkboxes, the property needs to be a boolean. If you
cannot figure out the problem, I suggest you include the relevant
Nothing exists in the taglibs or Struts itself to do this as far as I know, so you'll
have to roll your own.
I have done this in a number of applications, so I'll save you some time... I do not
know how cross-browser this is, most of my work is IE-only (not using much IE-only
functionality,
Hi,
Thanks for the help, but I went for a non static method in the end:
/**
* @return Returns the sTATUS_ONGOING.
*/
public String getSTATUS_ONGOING() {
return STATUS_ONGOING;
}
which works with the following JSP/JSTL
c:if test=${displayCase.caseStatus ==
Based on the error message, it looks like you're using the tag
correctly, but the attribute isn't being set correctly. I can't see
anything wrong in the code that you've included. Forgive me for asking
this, but are you sure your Action class is being called?
Shabada, Gnaneshwer wrote:
Can
What's the code in J2 that you use to put the checkbox? Are you using
an html:form/ tag? If so, does that tag refer to yet another action,
A3? If so, which form bean is associated with A3?
-- Jeff
t t wrote:
Hi, all,
I have JSP file J1 with form F1 inside. It is used to
accept user's
Here is another solution that is more generic (you don't have to hard
code data into arrays) and I know works in at least IE6 and
FireFox/Mozilla. Not my work, I just like it a lot :)
http://www.kryogenix.org/code/browser/sorttable/
Matt
[EMAIL PROTECTED] wrote:
Nothing exists in the taglibs
Mark,
Thanks for the info. Any info at this stage may prove helpful so its
appreciated. I made some progress that I wanted to share with you
(and the rest of the mailing list.)
I took a look at the lastest source code for struts-faces and noticed
some new stuff. Craig has a ViewHandlerImpl
There are quite a few third-party widgets for doing this. Just do a
Google search for html table widget or javascript table widget and
look for one that works. In particular, the Jaffa project
(jaffa.sourceforge.net) has a pretty slick looking table widget that is
designed to work well with
In Tiles you have two other ways to do this. You can have you Action extend
TilesAction, make your SQL call within your action, then put/copy the
results into the appropriate list of your tile. See tiles definition and
Java code example in chapter 5.2.1 in the tilesAdvancedFeatures.pdf I
Thank you, Bill and Jeff,
Sorry I didn't include relevant code in my first post.
Here is the relevant code.
Code in J2:(with checkbox)
--
html:form action=/PrepareEditMessage?reply=no
onsubmit=return
Ray,
Do you have an example of your tile definitions and stub pages I can look
at?
Regards,
David
-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 19, 2004 6:05 PM
To: 'Struts Users Mailing List'
Subject: Tiles Question
I am trying to pass an
Hello,
I would like to know if there is a way to use a jsp file to format an email body
(something like a velocity template)
(I don't want to embed emailer custom tags in the jsp)
In my idea I would like to find a way to do something like that :
--
example.jsp :
Hi,
Anyone used scriptlets in JSF tag attributes? For ex: h:graphicImage url=%=
imageRoot%/gifs/login.gif /. When I tried, I'm getting compilation error stating
that expressions cannot be used in tag attribute. Pl help.
Thanx
Ratnakar
The short answer is no.
Take a look at velocity at http://jakarta.apache.org/velocity/index.html .
On Wed, 20 Oct 2004 12:02:33 -0400, Franck Lefebure
[EMAIL PROTECTED] wrote:
Hello,
I would like to know if there is a way to use a jsp file to format an email body
(something like a velocity
Try
h:graphicImage url=%= imageRoot + /gifs/login.gif % /
On Wed, 20 Oct 2004 09:33:16 -0700 (PDT), Ratnakar Parakala
[EMAIL PROTECTED] wrote:
Hi,
Anyone used scriptlets in JSF tag attributes? For ex: h:graphicImage url=%=
imageRoot%/gifs/login.gif /. When I tried, I'm getting compilation
it is not possible, only JSF expressions
(e.g. #{bean.property}) or plain (e.g. foo)
since all attributes have in tld-files:
rtexprvaluefalse/rtexprvalue
JSF-EL is able to look for example
in application, session or request scope
(and some other things more)
the SPEC for more
(Chapter 5.3.1.2
Tried. Getting compilation error...
Hubert Rabago [EMAIL PROTECTED] wrote:Try
/
On Wed, 20 Oct 2004 09:33:16 -0700 (PDT), Ratnakar Parakala
wrote:
Hi,
Anyone used scriptlets in JSF tag attributes? For ex: /gifs/login.gif. When I
tried, I'm getting compilation error stating that
Hi,
on commons-dev there was at begin of October
a discussion in Commons Email project and
Velocity templates.
Perhaps you could benefit from that mails
(I have no details in my mind, only the happend
discussion)
Regards,
Matthias
-Original Message-
From: Hubert Rabago [mailto:[EMAIL
Hi,
We have been mulling over an issue where , we have
people on our team who are proposing to pass the
HttpSession which we have in our Action classes to the
buisness delegate(which is an ordinary java class
which encapusulates calls the session facade). While
the j2ee blueprint for the business
I believe the problem is the property name in your ActionForm. Having a
method named getSAll() is going to cause problems. Make it getSall() and
then the property will be 'sall' and everything will be much happier. Or
you could try more meaningful names ;)
-Bill Siggelkow
t t wrote:
Thank you,
It's a bad idea because what if in the future you want to use that
business logic elsewhere? What if you want to use it in a webservice or
in a GUI standalone application. The business logic should have to know
nothing about web servers and HttpSession objects, unless your business
is
Found this at http://www2.real-time.com/rte-tomcat/2000/Jun/msg01487.html
--
The suggested approach is to store
your connection pool object itself as
a servlet context attribute, like
this:
ConnectionPool pool
= new ConnectionPool( ... );
getServletContext().setAttribute(pool,
pool);
Now,
On Wed, 20 Oct 2004 13:17:25 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
i would like to parse a XML file through Struts AND also according to a XML
schema.
so may question is...what is the method to validate a XML file with a XML
Schema before parsing it?
Besides needing a
I had already put this point across telling that the
business delegate should be designed to service any
kind of client.But we have a senior member on our team
who says that anyway beyond the business delegate the
session object is not passed on thereon further to the
ejb's etc, so it is a matter
Hey all,
I think the zip files for Niall Pemberton's Extends struts validator
rule are corrupt:
http://www.niallp.pwp.blueyonder.co.uk/validate-extends.zip
http://www.niallp.pwp.blueyonder.co.uk/validator-extends-1_1.zip
Can anyone tell him that? I couldn't find his e-mail and I just joined
What he (Matt) said.
If you are going to tie your Business Delegate class to web tier APIs,
there is not really much point in having them at all -- you could just
do your business logic in the Action.execute() method directly and
save having to maintain two classes. (That's a sub-optimal idea as
More modern advice suggests that you don't use a Struts-provided
connection pool at all ... use the JNDI factilities provided by your
servlet container or app server. Then, you gain access to a
connection pool provided by the server, like this:
InitialContext ic = new InitialContext();
Hi all,
I am generating some form field names dynamically, based on the value of
a request variable. Since I am using Niall Pemberton's
LazyValidatorActionForm (see http://www.niallp.pwp.blueyonder.co.uk/), I
don't have a problem getting their values. The problem is validating them.
Currently
Is the Business Delegate a web-tier component? which
helps in decoupliong the web -tier component from the
business tier component or is it a business tier
component?
--- Craig McClanahan [EMAIL PROTECTED] wrote:
What he (Matt) said.
If you are going to tie your Business Delegate class
I agree with this. We use Tomcat to set up the connection pool and
reference it in our Struts apps as Craig suggests above. Take a look
at the Tomcat documentation, there is quite a bit on JNDI and
datasources.
Good luck,
sean
On Wed, 20 Oct 2004 11:00:11 -0700, Craig McClanahan [EMAIL
Here's a concrete example of why it's not a good idea...
I had a Struts-based application that I was recently asked to expose (some functions
of) as Web Services. Well, this started me down my whole Struts Web Service Enablment
Project route, but the point is that because it had to be quick,
The idea would be to use BusinessDelegate to decouple your business
logic from the web-tier. Use your struts Actions to get stuff out the
request, session, etc. Then pass plain old java objects (POJOs) to
the methods of your BusinessDelegate.
This way the business logic inside is not dependent
The action Looks like this
Collection depList = getDepartmentList ( );
Iterator itor = depList.iterator ( );
while ( itor.hasNext ( ) ) {
txDepartment department = ( txDepartment ) itor.next ( );
Collection departments = getOrganizationData ( department.getItem
( ) );
Hello,
I have a form that contains two fields: id lastName. The rule is
that if I can only enter in one or the other, not both. I am trying to
use the ValidWhen to perform this check. I have code similar to the
following:
form name=searchForm
field
I need to build tree menu from xml in struts. I want
to avoid javascript as much as possible. Any pointers
will be appreciated.
Thanks,
Vicky
__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
Salute you! Bill. It works! Thank you so much!
But why? Why does the name of a property matter? Why
does the upper case A matter?
Thanks again.
Tong
--- Bill Siggelkow [EMAIL PROTECTED] wrote:
I believe the problem is the property name in your
ActionForm. Having a
method named getSAll() is
Well, if you draw the menu down the left rail, then it doesn't matter
how shallow or deep it goes (whether directories are folded or
unfolded) -- the content area will remain in the same position (versus
a horizontal menu across the top).
Also, if you use frames, clicks on the parent nodes
Selam Serkan,
I'm using struts in JDeveloper. We have to use Turkish characters in our
application. The applicationresources file has plenty of Turkish message
strings which involves non ACSII characters. When I run the application,
I see those strings in applicationresource file are
Anyone aware of if there is a way to specify the default behavior for the
secure set-property for Actions when using SSLExt?
I'm taking an existing struts app and adding https pages to it with SSLExt.
Simple enough.
But it seems as if an action, should secure be unspecified, will default
to the
Hi All,
I'm not sure if this has been done before as I can't see any reference
in the archives, but I have a hard time believing I'm the only one.
I have to support multiple languages in my app. I can successfully set
my users' locales using the Action.setLocale() method as well as the
jstl
If it were up to me, I'd use a collection of LabelValueBean objects
with the label containing the values I want to show accd to the user's
Locale. I think it would be much easier than writing a custom tag.
On Wed, 20 Oct 2004 18:14:50 -0300, Colin Kilburn [EMAIL PROTECTED] wrote:
Hi All,
1) bean:message is already smart enough to do what you want, so I don't
see the necessity of making bean:write locale sensitive. You get the right
text from some place, and if it's the property file, you already have what
you need.
2) I think there is an existing feature request in BugZilla to
Should be OK now, sorry bout that
Niall
- Original Message -
From: Thompson Marzagao [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 6:51 PM
Subject: Niall Pemberton's Extends Validator zip file
Hey all,
I think the zip files for Niall Pemberton's Extends
Version 1.2.1 of Struts had problems and never made ga release quality -
the only ga release for Struts 1.2 is Version 1.2.4 - some validwhen
issues were fixed in that release.
http://struts.apache.org/acquiring.html
Niall
- Original Message -
From: Daniel Kalcevich [EMAIL PROTECTED]
I'm sure I had a discussion about this sort of thing with someone on this
list, but for the life of me I can't think who.
You could write your own custom tag which just stores its body's contents in
a bean's property, so you would have something like...
custom:store name=myBean
Thank you, Bill, Jeff, and Wendy for all your help!
Tong
Jeff Beal [EMAIL PROTECTED] wrote:
The relevant section is Section 8.8 of the specification:
Thus when we extract a property or event name from the middle of an
existing Java name, we normally convert the first character to lower
case.
Ray,
From your code examples, it seems like you are using struts-el and
struts-tiles-el. Is this correct? If so I can make suggestions but I can't
test it (not using them - I have JSP 2.0 in my Tomcat 5.0.2? + STruts v1.2.4
setup).
HOWEVER, I have a few well-directed questions that might
Hi Nitin,
Struts is server-side - predominately a controller, although it does include
some things to facilitate building the view. What you're asking for is
something that would sit client-side and provide DHTML manipulation of a
HTML table - right?
That I'm aware of, there is no such
I only mentioned the struts-tiles-el.tld because I didn't think the Tiles
tags were el compatible. I found a struts-tiles-el.tld in 1.2.4 not in an
old 1.1-b3 I have archived on my computer. Are you by any chance using a
container like Tomcat 5.X.X which has native EL support so that would work?
Joe,
This is SSLExt in Struts, right? So why can't you do this:
plug-in className=org.apache.struts.action.SecurePlugIn
set-property property=httpPort value=80/
set-property property=httpsPort value=443/
set-property property=enable value=false/
set-property
Have a look at the displaytag taglib - displaytag.sourceforge.net. It
provides sorting + a whole lot more. And it's struts friendly to boot.
Z.
hi ,
suppose i am using struts based app while showing data in various columns and
i wish to give user the choice to sort the column based on
Mostly non-existent SSLExt documentation aside, here's what I'm seeing
happen
Setting enable=false doesn't determine a default secure setting for
actions -- setting it to false turns everything off. As in every
ActionMapping behaves as if secure=false, *including* the ones where
secure=true (it's
I made a post on Sunday asking if there was an easy way (taglib) to
display a random number of messages from a resource file. I took the
deafening silence to mean no, so I went ahead and investigated the options.
In the end it was easiest to extend the bean:message tag.
My new version takes
How to use some bean value within a html:Image src?
I've tried something like html:Image src=%=bean.getValue()%/ but
it doesn't work, there's something like paramName and paramProperty of
html:link tag for html:Image?
thanks in advance
tito
signature.asc
Description: PGP signature
85 matches
Mail list logo