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]
: 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
-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
=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
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
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
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
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:
://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
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
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
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
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
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
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
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
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
!
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
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
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
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
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
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
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}
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
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
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
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
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
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
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
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]
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
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
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:
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
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:
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,
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
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
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
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
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
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
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
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
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
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
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
?
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
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
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
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]
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
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
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
??
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
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
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:
: 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
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
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
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!
63 matches
Mail list logo