Easy Struts 0.6.4 is available, now it's working with both Eclipse 2.0 and Eclipse
2.1. Here the
changes logs :
- Eclipse 2.1 Compatible (build with Eclipse 2.1 RC-1)
- Improve XSLT errors management
- Improve add Struts support operation
- Struts config tree is now sorted
- XML elements
I just wanted to see if I am working an uphill battle here or this
is really the reality of the situation. I think you all might find
this question particularly intriguing.
Assume that my DAO (Data Access Object) is storing a list of ids
which matches with a relationship. For example sake, it
I have 3 different pages in my test app:
Greet Unauthenticated User, Login and Greet Authenticated User
There is a PageUnauthGreet.jsp, PageAuthGreet.jsp and PageLoginUser.jsp.
Each has an identical structure:
%@ taglib uri='/tags/struts-template' prefix='template' %
template:insert
No taglib itself, but nested tags will allow the recursion to happen and thus
make the tree. Try this...
http://keyboardmonkey.com/pilotlight
...the JSP Recursion Trees! part. It should do the trick.
Arron.
Is there a taglib for presenting hierarchically defined content in a
JSP
Hello everybody,
Is it possible to include struts pages within a struts page?
Example:
/showPage.do?pageId=1 shows a navigation. The user of the webpage never
looks at this page directly but he could.
/showPage.do?pageId=10 shows the home page. Instead of including something
like
Hello Everybody,
I have one design concern. In our project we have ejb's. Now in some modules i have
only the some sql quries to be executed based on the user search condition. here
where should i prepare the sql queries. should i create in Action class or session
bean.
waiting for the
Jeff Smith ([EMAIL PROTECTED]) wrote:
I have 3 different pages in my test app:
Greet Unauthenticated User, Login and Greet Authenticated User
There is a PageUnauthGreet.jsp, PageAuthGreet.jsp and PageLoginUser.jsp.
Each has an identical structure:
%@ taglib uri='/tags/struts-template'
It works fine for my clients with 2 diferent patches offered, on dev
list a long time ago:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8798
and attached sollution on May of 2002, almost a year ago, you can search
the dev list on the topic.
Then there is a 2nd better patch that I kind
Hi Jeff,
I generally use Tiles to handle these kinds of things.
In your struts-config.xml install the Tiles plugin:
plug-in className=org.apache.struts.tiles.TilesPlugin
set-property property=definitions-config
value=/WEB-INF/tiles-definitions.xml/
set-property
Write a util function link longString in here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/src/war/org/apache/scaffoldingLib/util/BUtil.java
You can just say in bean:
List l = getDAOx().getResult();
And now you have a list in you bean, populated by dao.
.V
Dan Allen
Is there already a validation in place the checks that only a
limited amount of indexed property items are selected? Consider
either a multi-select box or an indexed set of input fields. I want
to prevent the user (via manipulation of the form or just regular
use) from being able to populate
Right, but I was hoping that perhaps it should do this conversion
itself. Here's why. It doesn't make sense for my DAO to be talking
about ids in string format, for that would be out of character,
catering to the view. There isn't a way (that I know of) to get the
form to populate itself with
Does anyone have an example of how to use a DynaActionForm form-property
with a html:select in the associated form?
I'm a little confused - do I have to use a Map to represent the
options? So I can't just hard-code them in the page?
Thanks!
Becky Norum
[EMAIL PROTECTED]
Two simple questions.
1. I usally define all the datasources i need in struts-config.xml file.
It is very easy, but how can I obtain a datasource reference in my
business logic classes?
I hate the idea of passing the reference to the business methods and I
don't want to include all my business
In the following .jsp code, can modelBeans be a
property array in a DynaActionForm (view2SubmitForm in
this case) bean?
logic:iterate id=mb name=view2SubmitForm
property=modelBeans
type=com.agilix.myapp.view.view1.ModelBean2
tr
tdhtml:text name=mb property=id//td
tdhtml:text
You will inherit a method from Action called getDataSource() which I
think you should look into. There is a method in action for just
about every handler you would need, including
getResources()
saveMessages()
saveErrors()
getDataSource()
etc..
Check out the API docs for Action.
Dan
--
- -
You can grab the datasource out of the ServletContext. Use JNDI or pass the
DataSource to some ServiceFactory that your business layer can use.
David
From: Guido [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: DataSource references in
hi I am having a trouble with developing a custom tag in struts.
When I try to get a value which create in the FormBean, I could not
pass to the value in my custom tag when an action /test is run.
jsp is looks like this...
%@ taglib uri=/WEB-INF/customtag.tld prefix=MyCustom %
Thank you. I was searching in ActionServlet class instead of Action.
Now the Eclipse IDE warning singal has disappear and I can sleep again :P
On Sat, 15 Mar 2003, Dan Allen wrote:
} You will inherit a method from Action called getDataSource() which I
} think you should look into. There is a
The FormBean can easily be populated by an array.
casting is easy, and done once in a util function.
beanUtils is usefull, but ... maybe not in this case.
Maybe, I am just not getting you question, so someone else jump in.
.V
Dan Allen wrote:
Right, but I was hoping that perhaps it should do this
The FormBean can easily be populated by an array.
casting is easy, and done once in a util function.
beanUtils is usefull, but ... maybe not in this case.
Maybe, I am just not getting you question, so someone else jump in.
Let me clarify. My business object has a signature
public void
Guido ([EMAIL PROTECTED]) wrote:
Thank you. I was searching in ActionServlet class instead of Action.
Now the Eclipse IDE warning singal has disappear and I can sleep again :P
Can you sleep for me too? I have no time for that.
Dan
--
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Assume a form has a field like so
Age: [ ]
The user decided he/she is too bashful (or maybe just too old) to
fill in the form and bypasses it, which we allow because people are
wierd like that (by the way I am 25 and proud to be whatever age I
am, but I am broke as a bank that just got robbed)
-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 9:14 AM
To: Struts Users Mailing List
Subject: Re: BeanUtils.copyProperties between from and DAO issues
Right, but I was hoping that perhaps it should do this conversion
itself. Here's why. It
Are there any taglibs that have an attribute similar to
filter=true for the bean:write that would do nl2br=true
Users enter non-html text and when I display it I want to replace
endline characters with html line break markups so that it preserves
the whitespace.
If not, I guess I will be
If this is the case, I would think that
org.apache.commons.beanutils.BeanUtils should be modified to do String[]
to int[] conversion ???
Thati s my 2 cents :)
Khalid
-Original Message-
From: Ken Connie [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 1:03 PM
To: Struts Users
Khalid K. ([EMAIL PROTECTED]) wrote:
If this is the case, I would think that
org.apache.commons.beanutils.BeanUtils should be modified to do String[]
to int[] conversion ???
Thati s my 2 cents :)
Thank you!! Me too. Okay, let's go with this! Devs?
Also, when doing the conversion,
No such thing exists. May be you are already doing this on jsp. here we
go..
%
myString.replace(\n,br);
pageContext.setAttribute(anyName,myString);
%
bean:write name=anyName filter=false
.anil
Dan Allen wrote:
Are there any taglibs that have an attribute similar to
filter=true for
I see where you were going:
#1. Post a request for enhancement in bugzilla for commons.(which will
CC commons-dev), not in Struts, and not in User.
#2. Wait a while.
#3. Give up waiting, and extend BennUtils to do what you need it to do.
#4. Submit a enhancement code to BeanUtils bugzila,
Can anybody point out some good automated testing strategies for
Struts-based applications?
Ideally, I'd like to run automated tests that simulate an end user:
1) filling out a form and testing for success and expected failure
2) clicking on a url that brings up a result set
I know I could unit
several previous posts refer to this - might check it out:
http://strutstestcase.sourceforge.net/
-jeff
On Saturday, March 15, 2003, at 04:02 PM, Aaron O'Hara wrote:
Can anybody point out some good automated testing strategies for
Struts-based applications?
Ideally, I'd like to run automated
Anil Amarakoon ([EMAIL PROTECTED]) wrote:
No such thing exists. May be you are already doing this on jsp. here we
go..
%
myString.replace(\n,br);
pageContext.setAttribute(anyName,myString);
%
bean:write name=anyName filter=false
.anil
Fine, I'll write a custom taglib,
Have you tried it? It should work fine, AFAIK. I patched things some
time ago now to properly process which module is being requested. The
change was such that it would allow module names along the lines of what
you're asking about.
If in doubt; try it. If it doesn't work (and I really
According to Struts, every thing should go to action. It is a good habit
consistent with MVC2 frameword/pattern.
-Dan
- Original Message -
From: santhosh [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 5:01 AM
Subject: design concern
I have one design concern. In our project we have ejb's. Now in some
modules i have only the some sql quries to be executed based on the user
search condition. here where should i prepare the sql queries. should i
create in Action class or session bean.
Actions should never contain sql or
James and Dan turned me on to tiles. I love them - as I love any tool that
simplifies what I was already doing via brute force. :-)
I feel I'm on the verge of a new level of understanding, but sadly, haven't
quite crossed over.
In my tiles structure, I want to have my pages get their titles from
David Graham ([EMAIL PROTECTED]) wrote:
I have one design concern. In our project we have ejb's. Now in some
modules i have only the some sql quries to be executed based on the user
search condition. here where should i prepare the sql queries. should i
create in Action class or session
After spending quite sometime on the collection-backed
form properties solution, I figured its worth
mentioning the solution I dug out. I have to say that
the documentation on this one is pretty sparse. Ok
here we go...
I have a jsp that needs to accept an order for items.
This jsp has
Attached is a hacked version of WriteTag.java from the struts
library to include a nl2br attribute which will convert \n to br
/ in the output. It was a pretty simple hack and you can just
update your .tld file to include the java class
net.creativerge.struts.taglib.bean.WriteTag and change your
...see, I'm fading here...trial #2
Dan
[WriteTag.java]
package net.creativerge.struts.taglib.bean;
import javax.servlet.jsp.JspException;
import org.apache.struts.util.RequestUtils;
import org.apache.struts.util.ResponseUtils;
public class WriteTag extends
oops, I misread the question. Please see the answers from both David and Dan
Alen
- Original Message -
From: Dan Tran [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 4:47 PM
Subject: Re: design concern
According to Struts, every thing
Dan,
I think that you may have better luck in a tag that doesn't actually extend or
particularly work around the write tag, but simply filters the results of body
content. That way your not just restricted to filering the content of a bean
property. Markup would be like...
mylib:nl2br whatever
Hi all,
I just need a help ,how to generate dynamically dropdown , when the options are in a
hashtable r vector ,
please help me , send me the code which will be useful.
help will be appreciated
regards
prahsanth
-
To
On Sat, Mar 15,'03 (11:13 PM GMT-0500), Sreepuram, wrote:
I just need a help ,how to generate dynamically dropdown , when the
options are in a hashtable r vector , please help me , send me the
code which will be useful.
There are tons of examples of this in the archives and in the
I swear I am going to lose my mind over this one. Same exact code
on two different pages one using html and one using html-el taglib.
logic:messagesPresent
html:messages id=error
licore:out value=${error}//li
/html:messages
/logic:messagesPresent
If I use html-el, I get a jsp
Dan == Dan Allen [EMAIL PROTECTED] writes:
Dan I swear I am going to lose my mind over this one. Same exact code
Dan on two different pages one using html and one using html-el taglib.
Dan logic:messagesPresent
Dan html:messages id=error
Dan licore:out
46 matches
Mail list logo