actionform session attribute name

2004-12-15 Thread Abdullah Jibaly
Hi, How can I get the actionform name from the session? Thanks, Abdullah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: actionform session attribute name

2004-12-15 Thread Abdullah Jibaly
: Abdullah Jibaly Sent: Wednesday, December 15, 2004 3:25 PM To: Struts Users Mailing List Subject: actionform session attribute name Hi, How can I get the actionform name from the session? Thanks, Abdullah - To unsubscribe, e

RE: actionform session attribute name

2004-12-17 Thread Abdullah Jibaly
-Original Message- From: Bill Siggelkow [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 7:53 AM To: [EMAIL PROTECTED] Subject: Re: actionform session attribute name Try this: c:set var=form value=${requestScope['org.apache.struts.action.mapping.instance.name']} / Abdullah Jibaly

RE: actionform session attribute name

2004-12-15 Thread Abdullah Jibaly
=2 textarea rows=2 cols=50 c:out value=${itm.value}/ /textarea /td /tr /c:forEach -Bill Siggelkow Abdullah Jibaly wrote: Hi again, I'm actually trying to get the form name, or a reference to the object, from

RE: Unable to see c:forEach out put

2005-01-12 Thread Abdullah Jibaly
Actually I think it's ${current.count} -Original Message- From: Kishore Senji [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 12:37 PM To: Struts Users Mailing List Subject: Re: Unable to see c:forEach out put On Wed, 12 Jan 2005 13:52:32 +0530, Vamsee Kanakala [EMAIL

RE: Unable to see c:forEach out put

2005-01-13 Thread Abdullah Jibaly
align=left font color='red' c:forEach begin=1 end=5 var=current c:out value=${current} / /c:forEach /font /td And this worked fine, gave me: 1 2 3 4 5 in red. Jack On Wed, 12 Jan 2005 12:52:59 -0600, Abdullah Jibaly [EMAIL PROTECTED] wrote

RE: [ANNOUNCE] Planet Struts Launches

2006-03-01 Thread Abdullah Jibaly
Cool, nice site. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 7:16 AM To: Struts Users Mailing List Subject: [ANNOUNCE] Planet Struts Launches What is Planet Struts? Planet Struts is your source for news and announcements about Apache

Quartz and struts

2006-03-24 Thread Abdullah Jibaly
Hi all, Is there a good resource explaining how to use the Quartz scheduler with Struts? Any links/advice would be appreciated. Thanks, Abdullah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: Quartz and struts

2006-03-24 Thread Abdullah Jibaly
://www.onjava.com/pub/a/onjava/2006/03/01/job-scheduling-in-web-application.html On 3/24/06, Abdullah Jibaly [EMAIL PROTECTED] wrote: Hi all, Is there a good resource explaining how to use the Quartz scheduler with Struts? Any links/advice would be appreciated. Thanks, Abdullah

RE: Get a list of defined Struts actions at runtime

2006-03-24 Thread Abdullah Jibaly
Take a look at http://mojodna.net/sprout/, it may be similar to what you need. -Original Message- From: Brantley Hobbs [mailto:[EMAIL PROTECTED] Sent: Friday, March 24, 2006 10:35 AM To: Struts Users Mailing List Subject: RE: Get a list of defined Struts actions at runtime At runtime

mapping values in jsp

2005-02-02 Thread Abdullah Jibaly
Hi all, Has anyone come across a good way to solve this issue using jstl? I want a clean way to map values and being able to define it within the jsp page. for example, if a bean property has a value of true, I want to get the output as 'Yes'. c:out value=${isEnabled} / - outputs true or

RE: [ANN] Free JSP Editor for Eclipse

2005-02-02 Thread Abdullah Jibaly
Thanks for the warning, I'll make sure to backup Eclipse if/when I try this plugin... -Abdullah -Original Message- From: Cedric Levieux [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 4:40 PM To: Struts Users Mailing List Subject: Re: [ANN] Free JSP Editor for Eclipse Two

Best way to cancel

2005-03-17 Thread Abdullah Jibaly
Hi all, Is there a way to press cancel on a display page and not have Struts populate the ActionForm with the values that were entered? If not what are some common workarounds to this? I basically want to be able to retrieve the old values in that case. Thanks, Abdullah

RE: Best way to cancel

2005-03-18 Thread Abdullah Jibaly
was is on the server to something entered long ago? Regards, David -Original Message- From: Abdullah Jibaly [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 5:56 PM To: Struts Users Mailing List Subject: Best way to cancel Hi all, Is there a way to press cancel on a display page

RE: Tomcat 5.5.7 + Connection Pool

2005-03-18 Thread Abdullah Jibaly
Alex, Try using only the Resource element like this: Resource name=jdbc/StrutsDemosDS auth=Container type=javax.sql.DataSource scope=Shareable factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory maxActive=20 maxIdle=10 maxWait=-1 username=postgres password=irigon2004

Two cancel buttons in one form

2005-03-22 Thread Abdullah Jibaly
Hi all, I want to have two cancel buttons in a form, however I run into the problem of not being able to distinguish which one is being pressed (one cancels the whole operation and the other returns to the first screen). The reason is that they both use the Globals.CANCEL_KEY parameter. What

RE: Two cancel buttons in one form

2005-03-22 Thread Abdullah Jibaly
I ended up putting this in my base action class. Is there a better alternative? public String getCancelledValue(HttpServletRequest request) { return (String) request.getAttribute(org.apache.struts.Globals.CANCEL_KEY); } -Original Message- From: Abdullah Jibaly Sent: Tuesday

RE: Two cancel buttons in one form

2005-03-22 Thread Abdullah Jibaly
! Abdullah -Original Message- From: Brandon Mercer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 10:02 AM To: Struts Users Mailing List Subject: Re: Two cancel buttons in one form Abdullah Jibaly wrote: Hi all, I want to have two cancel buttons in a form, however I run

RE: The F5 problem - Best Practice (ActionHierarchy)

2005-03-22 Thread Abdullah Jibaly
I think doing the post-redirect-get (the second option you mentioned) is the best way to solve your problem, according to what most people recommend. Abdullah -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 3:32 PM To: 'Struts Users

Pressing enter in a form

2005-03-30 Thread Abdullah Jibaly
Hi all, I have a form with an html:cancel / followed by an html:submit /. How can I get the submit to be activated when enter is pressed inside a text box on that form? It is activating cancel right now. Thanks, Abdullah - To

RE: forEach for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread Abdullah Jibaly
try: c:forEach items=${sessionScope['userPortfolios']} var=p c:out value=${p.portfolioName} / /c:forEach -Abdullah -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:46 PM To: Struts Users Mailing List Subject: Re: forEach for an

RE: JSTL simply love it however ...

2005-04-14 Thread Abdullah Jibaly
I think ${status.index} in place of s_SOMETHING_HERE would work fine. Otherwise, try setting onChange=${addTableRow} with addTableRow prior defined as: c:set var=addTableRowaddTableRow('historyTable','c:out value=${status.index} /')/c:set -Abdullah -Original Message- From: [EMAIL

html-el vs html

2005-04-15 Thread Abdullah Jibaly
Hi all, What is the difference between the html-el and html tags, and which ones comes with Struts? I was looking at the TLD with 1.2.4 and only saw the html tld. How do I get the html-el version? Thanks, Abdullah - To

html:link and html:cancel

2005-04-18 Thread Abdullah Jibaly
Hi all, Is there a way to use html:link in a way that it acts like html:cancel, in other words automatically skip validation? This seems to work but I wonder if there is a better way? jsp:useBean id=paramMap class=java.util.HashMap / c:set target=${paramMap}

RE: logic:iterate, with offset and length parameters, lose data

2005-04-20 Thread Abdullah Jibaly
Suggestions: 1- Use c:forEach instead of logic:iterate 2- Use a seperate property in your form to store the viewable/changeable stuff, for example if you have a collection of strings, you can have an array of strings be your viewable/editable property. This will cut down on

RE: logic:iterate, with offset and length parameters, lose data

2005-04-20 Thread Abdullah Jibaly
that html:input is a mistake, it should be html:text -Original Message- From: Oscar [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 5:23 AM To: user@struts.apache.org Subject: logic:iterate, with offset and length parameters, lose data Hi, I am using a logic:iterate tag throw

RE: logic:iterate, with offset and length parameters, lose data

2005-04-20 Thread Abdullah Jibaly
Also, the items attribute should be enclosed in ${} as: c:forEach items=${formName.collectionProperty} var=item varStatus=s c:if test=${s.index = offset and s.index offset + length} var=displayable html:text property=collectionProperty value=${item} / /c:if

RE: Pagination

2005-04-21 Thread Abdullah Jibaly
take a look at Displaytag: http://displaytag.sourceforge.net/ -Original Message- From: Rafael Taboada [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 8:11 AM To: Struts List Subject: Pagination Hi folks, i'm again :) with my list of customers. I could do my CRUD approach. So

RE: Pagination

2005-04-22 Thread Abdullah Jibaly
for Displaytag, yes you will... -Original Message- From: Rafael Taboada [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 5:03 PM Cc: Struts Users Mailing List Subject: Re: Pagination Hi folks. Thanks for ur help. Those projects are so cool... But i have built all my jsp and used

RE: question about jstl tag c:if

2005-04-26 Thread Abdullah Jibaly
I'm not familiar with DynaValidatorForm but what does this give you: c:if test=${loginForm['singlesignon'] == '0'} /c:if -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 10:15 AM To: user@struts.apache.org Subject: question about jstl tag

RE: [OT] html:text field is getting truncated

2005-04-26 Thread Abdullah Jibaly
so you're saying that: input type=text size=50 / and input type=text size=100 / are rendered the same size on your browsers? -Original Message- From: Andy Dailey [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 10:33 AM To: user@struts.apache.org Subject: [OT] html:text field

Multiple uploads / attachements

2005-05-03 Thread Abdullah Jibaly
Hi all, Does anyone have an example/pointers of uploading multiple files at one time? Thanks, Abdullah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Getting name of form bean?

2005-05-16 Thread Abdullah Jibaly
John, There is no automatic way AFAIK. What I've done is in the action that passes the request to the form I set: request.setAttribute(formName, mapping.getName()); then, in the JSP I can do: c:set var=form value=${requestScope[formName]} / -Abdullah -Original Message- From: John

RE: bean:message question

2005-05-16 Thread Abdullah Jibaly
Marco: Try using jstl's fmt:message instead: fmt:message key=prompt.minQuantity var=minQuantity / fmt:message key=prompt.maxQuantity var=maxQuantity / fmt:message key=error.comparequantity fmt:param value=${minQuantity} / fmt:param value=less / fmt:param

RE: Please reply to the mailing list, not to the person

2005-06-08 Thread Abdullah Jibaly
I'm pretty sure it's Mrs/Ms Smoak since Wendy is usually a female name (please correct me if I'm wrong Wendy) :) -Abdullah -Original Message- From: Leandro_Dorileo/[EMAIL PROTECTED] [mailto:Leandro_Dorileo/[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 12:57 PM To:

RE: Themes

2005-06-14 Thread Abdullah Jibaly
While Tiles is better for page composition I think you'll find SiteMesh better suited for overall site layout, especially for things like custom CSS/JavaScript/... based on request or session level parameters. -- Abdullah -Original Message- From: Wiebe de Jong [mailto:[EMAIL

RE: [To sum it up] Re: Confused / one little question

2005-06-15 Thread Abdullah Jibaly
Spring takes care of all this (http://springframework.org) without the overhead of an ejb container. Acegi is one aspect closely tied to spring that takes care of security declaratively. Regards, Abdullah -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent:

RE: Storing data in session scope

2005-06-21 Thread Abdullah Jibaly
in web.xml: listener listener-classcom.acme.web.listener.StartupListener/listener-class /listener StartupListener.java: public class StartupListener implements ServletContextListener { public void contextInitialized(ServletContextEvent event) { context.setAttribute(tax,

RE: Storing data in session scope

2005-06-21 Thread Abdullah Jibaly
It should be getServletContext().setAttribute(tax, 1.23); -Original Message- From: Abdullah Jibaly Sent: Tuesday, June 21, 2005 4:00 PM To: 'Struts Users Mailing List'; 'Rafael Taboada' Subject: RE: Storing data in session scope in web.xml: listener listener

RE: Storing data in session scope

2005-06-21 Thread Abdullah Jibaly
ok, maybe I'll get it right today: event.getServletContext().setAttribute(tax, 1.23); -Original Message- From: Abdullah Jibaly Sent: Tuesday, June 21, 2005 4:05 PM To: Struts Users Mailing List Subject: RE: Storing data in session scope It should be getServletContext().setAttribute

RE: trouble passing multiple parameters using html:link

2005-06-22 Thread Abdullah Jibaly
Try it step by step. Before passing a map, pass the values hardcoded: html:link action=/partDetailView?storeNo=123storeName=TheStoreClick Here/html:link And make sure that works. If it does, put storeNo and storeName into the storeInfo bean (you dont have to use scriptlets): jsp:useBean

RE: Navigation Problem

2005-06-22 Thread Abdullah Jibaly
I have not used it yet, but you may want to take a look at spring web flow, it is designed for these 'wizard' scenarios, and supposedly integrates well with struts. If you want to use Struts components only, one suggestion: 1 big action 1 big action form Several jsps The jsp form always posts

RE: Re: String as Parameterwith html:link

2005-06-27 Thread Abdullah Jibaly
Actually, that's what I have been doing with no problems. Have you tried it? html:link action=setLocale?lang=delang/html:link should work just fine in 1.2.4+ Regards, Abdullah -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurie Harper Sent: Monday, June 27, 2005

RE: [OT] web templates, struts templates?

2005-06-28 Thread Abdullah Jibaly
Look at AppFuse, it's exactly what you are looking for: http://appfuse.dev.java.net -Original Message- From: Aleksandar Matijaca [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 9:55 AM To: user@struts.apache.org Subject: [OT] web templates, struts templates? I spent some time

RE: html:options tag usage?

2005-06-28 Thread Abdullah Jibaly
Using Servlet/JSP 2.4/2.0 and JSTL something like this should work: jsp:useBean id=myUtilBean class=MyUtilBean/ html:select property=... c:forEach items=${myUtilBean} var=row html:option value=${row.name}${row.value}/html:option /c:forEach /html:select

RE: html:options tag usage?

2005-06-28 Thread Abdullah Jibaly
quick correction: items=${myUtilBean.c} -Original Message- From: Abdullah Jibaly Sent: Tuesday, June 28, 2005 1:25 PM To: Struts Users Mailing List Subject: RE: html:options tag usage? Using Servlet/JSP 2.4/2.0 and JSTL something like this should work: jsp:useBean id=myUtilBean class

RE: html:options tag usage?

2005-06-28 Thread Abdullah Jibaly
Mailing List Subject: Re: html:options tag usage? Abdullah Jibaly wrote: Using Servlet/JSP 2.4/2.0 and JSTL something like this should work: jsp:useBean id=myUtilBean class=MyUtilBean/ html:select property=... c:forEach items=${myUtilBean.c} var=row html:option value=${row.name

RE: [slightly OT] alternatives to Tiles?

2005-06-30 Thread Abdullah Jibaly
Take a look at SiteMesh. It's much better than Tiles for page decoration (not composition), which looks like exactly what you need. You just define one (or more) decorators (layout pages) and SiteMesh will automatically format your pages using that layout page. Regards, Abdullah -Original

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Abdullah Jibaly
To simplify your code, I would have one ActionForm, and one processing action. Depending on which submit button or whatever is pressed I'd redirect to the correct page. By the way you can only have one struts action form per action and per jsp page. Regards, Abdullah -Original

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Abdullah Jibaly
? Michael Taylor TXE Systems, Inc. [EMAIL PROTECTED] Abdullah Jibaly wrote: To simplify your code, I would have one ActionForm, and one processing action. Depending on which submit button or whatever is pressed I'd redirect to the correct page

RE: Paging in DisplayTag

2005-07-08 Thread Abdullah Jibaly
Nope, you shouldnt have to. Setting requestURI= works just fine for me. Are you using el: ${storeForm.myList} ? -Original Message- From: Phani [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 5:20 PM To: Struts Users Mailing List; Michael Jouravlev Subject: Paging in DisplayTag

RE: access entries in MessageResources.properties from java code

2005-07-08 Thread Abdullah Jibaly
MessageResources mr = getResources(request); String messageValue = mr.getMessage(messageKey); -Abdullah -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 12:05 AM To: Struts Users Mailing List Subject: access entries in MessageResources.properties

RE: Using the form bean

2005-07-08 Thread Abdullah Jibaly
Don't know if this is the reason but you probably want focus=${focus} Try using c:if instead of logic:equal, but the cleanest way if you are using jsp 2.0: focus=${form.edit ? 'password' : 'userName'} Regards, Abdullah -Original Message- From: Kent Boogaart [mailto:[EMAIL PROTECTED]

RE: read init parameters in action

2005-07-08 Thread Abdullah Jibaly
Why not put it them in your properties file? -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 10:30 AM To: Struts Users Mailing List Subject: read init parameters in action For traditional servlets, you can set init parameters in the web.xml and

RE: Paging in DisplayTag

2005-07-08 Thread Abdullah Jibaly
fine without pagesize attribute..all the results in a single page.. But with pagsize attribute, it gives me null pointer exception when I hit next.. Thanks, Phani. --- Abdullah Jibaly [EMAIL PROTECTED] wrote: Nope, you shouldnt have to. Setting requestURI= works just fine for me. Are you

RE: Paging in DisplayTag

2005-07-08 Thread Abdullah Jibaly
in DisplayTag See my code.. I have requestURI set to my Action class.. --- Abdullah Jibaly [EMAIL PROTECTED] wrote: What happens when you set requestURI= ? -Original Message- From: Phani [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 10:59 AM To: Struts Users Mailing List

RE: Paging in DisplayTag

2005-07-11 Thread Abdullah Jibaly
?? Also is there anyway I can customize the header.. The following thing is on a single line.. I want the links to appear on a seperate line.. 58 items found, displaying 51 to 58.[First/Prev] 1, 2, 3, 4, 5, 6 [Next/Last] Thanks. --- Abdullah Jibaly [EMAIL PROTECTED] wrote: Yes, I noticed. I

Redirecting to input when validation fails

2005-07-11 Thread Abdullah Jibaly
Hi all, I have two action: Display.do and Process.do. Display.do forwards to a jsp page. Upon submit, Process.do is invoked. The action mapping for Process.do specifies Display.do as the input, however, when form validation for Process.do fails (validate is set to true), the url still shows

RE: Displaying data from a form bean

2005-07-11 Thread Abdullah Jibaly
There is no such tag, however, in your action do: request.setAttribute(myformbean, form) and your jsp below will work... Abdullah -Original Message- From: Schaub, Stephen [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 3:08 PM To: Struts Users Mailing List (E-mail) Subject:

RE: Redirecting to input when validation fails

2005-07-11 Thread Abdullah Jibaly
: Monday, July 11, 2005 3:11 PM To: Struts Users Mailing List Subject: Re: Redirecting to input when validation fails On 7/11/05, Abdullah Jibaly [EMAIL PROTECTED] wrote: Hi all, I have two action: Display.do and Process.do. Display.do forwards to a jsp page. Upon submit, Process.do is invoked

[shale] questions

2005-07-26 Thread Abdullah Jibaly
Hi all, I want to start learning about Shale and have a couple questions to start out with: 1- What is the difference between Shale and MyFaces? 2- Is there any shale-minimal application available? Thanks! Abdullah - To

RE: [shale] questions

2005-07-27 Thread Abdullah Jibaly
Thanks! -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 26, 2005 7:07 PM To: Struts Users Mailing List Subject: Re: [shale] questions From: Abdullah Jibaly [EMAIL PROTECTED] I want to start learning about Shale and have a couple questions to start

Struts Ti [was RE: Tech-Stack Choices]

2005-09-01 Thread Abdullah Jibaly
This seems to be more of an inside joke than anything else. Where can we find anything on Struts Ti, I'm really interested in learning something worthwhile about it besides what's on https://www.twdata.org/projects/struts-ti, which doesn't seem to have been updated for a couple months. Thanks!