No You cant use
Hanmay Udgiri [EMAIL PROTECTED] wrote: Hi
Can we use bean:message in the custom tag java class(in the doStartTag
method)
--
Thanks and Regards
Hanmayya Udgiri
-
Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with
download the source code of Reloadable Message Resources from
http://sourceforge.net/project/showfiles.php?group_id=49385
if provide nesting of properties ,
user.name=Name
user.first=First
user.firstName=$(user.first) $(user.name)
this will result in FirstName;
you may extract the logic
If a user copies the URL displayed in the browser after login, and
pastes it in a new browser window, his page gets displayed. How can I
prevent such a behavior.
regards,
Pankaj
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi Pankaj,
Couple of things you could do... first, make sure all your requests go
through Struts. That way, they'd be copying a URL with .do, so when
they paste it in, they are again going through Struts. Then, you can
check in your code that a session has been established, and then you
I am not against paying for the capabilities. I am very familiar with struts
and comfortable hand keying the whole thing. The issue I am trying to address
is the best tool I can give/suggest to my co-workers that after a bit of
explanation on what goes on behind the scenes (in the black or
This wouldn't work for me because content type have to be different under
different circumstances, but response.setContentType works just fine.
Thanks!!
Cheers,
Leo
Bart Busschots [EMAIL PROTECTED] wrote: You can set it in the JSP like so:
%@ page contentType=text/xml %
Leo Asanov wrote:
Hi!
Hi.
With shale's ViewController a managed bean named index is
automatically associated with index.jsp. What I need is to have the same
for subviews. Say, I included loginForm.jsp from index.jsp, is it
possible to have the same association with my backing bean loginForm ?
I don't know if
You can use the ActionMessage constructor that takes a string and a
boolean indicating whether or not the string is a key to be looked up
in
a resource bundle. By setting this to false, the string is taken as a
literal.
public ActionForward execute(ActionMapping mapping, ActionForm form,
Hello,
you can use FormView. With FormView you can set a state for a particulary
HTML input (butto, text,...).
State manage your render (hidden, visible, ,...) for your input.
So it's not in your JSP taht you have your condition (logic:equal) but it's
your Struts action which decide which input
Hi,
I am having trouble compile a file called LookupAction.java. The error is:
Class wiley.LookupForm not found.
Currently the LookupAction.java and LookupForm both resides in the same package
wiley.
The sources code of the files used are:
// LookupForm.java
package wiley;
import
Hi,
I guess you are trying to compile the said class from Edit plus. Pls go to
the command prompt and navigate to the parent directory of willy and then javac
willy.filename.java. Inspite of this if you get an error class not found then
we will have to look into the classpath.
pls
look at your struts-config.xml , probably you wrote your forward path for case
success without /
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 06, 2006 2:22 PM
To: user@struts.apache.org
Subject: Path success does not start with a / character
The execute Method of the actions is:
public ActionForward execute(ActionMapping arg0, ActionForm arg1,
HttpServletRequest arg2, HttpServletResponse arg3) throws Exception {
return new ActionForward(success);
}
Ehm it is wrong, the right one is:
this might not be the reason. as you see in my struts-config, the forward for
case success ist written as followed:
forward name=success path=/pages/test/test_out.jsp/
this might be correct - how I guess.
Markus-Alexander Metz Accenture
Technologie Solutions AG
Peter Merian-Strasse
Hi,
I've got 2 image buttons, they work great in firefox.
Internet Explorer doesn't seem to support the
value tag - and therefor I get submitted an empty String.
html:image property=action value=add src=add.gif/
html:image property=action value=remove src=remove.gif//td
Any idea, how I could
El mar, 06 de 06 de 2006 a las 11:21, [EMAIL PROTECTED] escribió:
Hi
I have an problem with my struts application where I don't know the reason. I
always get the following exception:
java.lang.IllegalArgumentException: Path success does not start with a /
character
ohhh sure ... you're so right. I'm such an idiot ;-) ... thanks a lot. but
sometimes you don't see the forest cause of the lots of trees ;-)
Markus-Alexander Metz Accenture
Technologie Solutions AG
Peter Merian-Strasse 82
CH-4002 Basel
tel: ++41 44 236 18 34
[EMAIL PROTECTED]
Hi,
Using the command prompt, and navigate to the parent directory gives me the
following error:
C:\Program
Files\apache-tomcat-5.5.17\webapps\wileystruts\WEB-INF\classesjavac
wiley.LookupAction.java
error: Can't read: wiley.LookupAction.java
1 error
C:\Program
Hi,
indeed ie does not support properly the value of a button html tag. It
does send the html-stripped content of button instead of it's value.
The best solutions it to add a
onClick=someScriptToSetHiddenField(action,add);
http://www.jguru.com/faq/view.jsp?EID=897290
marcus biel (innoWake
What you can do is
if ( !ur logic for validation) {
ActionMessages actionMsg = new ActionMessages();
actionMsg.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage(key in the
resource bundle));
saveMessages(request,actionMsg);
return mapping.findForward(ur output view)
}
On ur jsp,
html:messages
On 5/26/06, Medicherla Lakshmi [EMAIL PROTECTED] wrote:
Am Lakshmi. Am working on a web application in struts in a company. Am alone
over
here on java. Everyone is on .Net. Am new to huge development on java and
never
worked on any project in java till now since i was on vc++. This is my
Is there a way to create an image button that IS a reset button?
I tried this:
html:image src=reset.gif onclick=document.MyForm.reset() /
and this:
html:resethtml:image src=reset.gif
onclick=document.MyForm.reset() //html:reset
But unfortunately, it didn't work! :-(
Marcus
Hi,
Try using this as below, I have used this way in my project
html:img src=btn_reset.gif onclick=JavaScript:UploadResumeForm.reset();
style=cursor:pointer border=0/
Regards,
Sahil Gupta
Extn : 339
Mobile: 91 9899468288
Email : [EMAIL PROTECTED]
You may just need to return false after calling reset.
onclick=document.MyForm.reset(); return false;
Or just use a standard img or the html:img tag instead of html:image
-Original Message-
From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 06, 2006 7:50
I am working on URL cleaning in my struts web application. How can I create
a custom ActionMapper and how to use it?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sreekanth PK wrote:
how can i pass an arraylist from jsp to action class with out the help
of session or application variable Am not able to use
request.setAtrribute in jsp to do this why??
Because that's backwards.
The only way to get from a JSP to an Action is to submit a form (more
I HARIKRISHNA wrote:
No You cant use
Hanmay Udgiri [EMAIL PROTECTED] wrote: Hi
Can we use bean:message in the custom tag java class(in the doStartTag
method)
...but you _can_ use the same _methods_ that the bean:message... tag uses.
Dave
Frank W. Zammetti wrote:
Couple of things you could do... first, make sure all your requests go
through Struts. That way, they'd be copying a URL with .do, so when
they paste it in, they are again going through Struts. Then, you can
check in your code that a session has been established, and
Andy Dailey wrote:
[...] allow easy development of applications using struts.
Oooo, ooo, I have one: jumbo shrimp!
I love this game!
I just wrote Ruby scripts that create all the artifacts I need...
They'll insert action mappings, form bean defs, tile definition, JSP
stub, Action stub, and
Hi,
Can anyone advise on how to call a jsp tag as a parameter to another jsp
tag:
For example: (this is completely hypothetical but matches my case)
test:example name=abc title=123 property=example/
Now in the property element I Want to call another tag which is already
written which returns
Hi,
Can anyone advise on how to call a jsp tag as a parameter to another jsp
tag:
For example: (this is completely hypothetical but matches my case)
test:example name=abc title=123 property=example/
Now in the property element I Want to call another tag which is already
written which returns
I am having some problems with the shale dialogs. I have defined my
dialogs (correctly, I believe) in the dialog-config.xml as follows:
dialogs
dialog name=Log in start=login
action name=login method=#{account$login.login}
transition outcome=authenticated target=Exit/
Assuming your test:example tag's property attribute supports
expressions, you could set the value of the title:renderTitle/ into a
page scoped variable then write it into the property attribute using an
expression. For example, using c:set from JSTL:
c:set var=myTitletitle:renderTitle//c:set
Is there an equivalent of this with struts libraires
c:set var=myTitletitle:renderTitle//c:set
-Original Message-
From: Samere, Adam J [mailto:[EMAIL PROTECTED]
Sent: 06 June 2006 14:02
To: Struts Users Mailing List
Subject: RE: Adding JSP tag as a parameter to another jsp tag
Assuming
Shoukat, Faisal wrote:
test:example name=abc title=123 property=title:renderTitle//
However I don't know how to add the second tag
Any one know?
That's not valid XML.
You need to either use EL:
test:example name=abs title=123 property=${propertyName}/
or nesting:
test:example
There wasn't the last time I looked
You'll probably find it worth your time to grab JSTL. There are many
other useful features that are not available in the Struts libraries,
since it would just be duplicated efforts. If there is some reason you
are absolutely forbidden from using JSTL, you
On 6/4/06, Truong Xuan Tinh [EMAIL PROTECTED] wrote:
Hi experts,
Can we terminate the uploading process of Struts when the uploaded data
size is exceeded the max file size configured in the controller of
Struts.
I believe that this is not a Struts issue.
I remember I tried years ago (not
You may be able to configure this in your web server.
-Original Message-
From: Al Eridani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 06, 2006 10:29 AM
To: Struts Users Mailing List
Subject: Re: How to terminate the uploading process of Struts?
On 6/4/06, Truong Xuan Tinh [EMAIL
Hi,
when I got a specific error in my form,
I want to exchange a specific image like an
icon in red representing the field,
and I also want to exchange the css style, so that the
form field gets a red border and / or red background.
Any idea of how to get this done?
I tried:
Sorry,
ignore my message, this was dumb!
/logic:messagesPresent
Now it does work! :-)
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Nope,
this was too fast - it does not work, because it now always changes the
image - seems like it always finds the error message! :-(
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
The message attribute is a boolean indicated whether messages should be
checked for under Globals.ERROR_KEY or Globals.MESSAGE_KEY.
You probably want to use the name or property attributes. See the online
docs.
-Original Message-
From: marcus biel (innoWake gmbh) [mailto:[EMAIL
How to format Money Data type(SQL server )by below format for USD.
$x,xxx,xxx,xxx.xx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 6/6/06, Bahadır Yağan [EMAIL PROTECTED] wrote:
Hi.
With shale's ViewController a managed bean named index is
automatically associated with index.jsp. What I need is to have the same
for subviews. Say, I included loginForm.jsp from index.jsp, is it
possible to have the same association with
I am working on URL cleaning in my struts web application. How can I create a
custom ActionMapper and how to use it?
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
What action or command in 1.3.x corresponds to
RequestProcessor.processCachedMessages() from 1.2.x ? I looked at the
source code of 1.3.2 snapshot but could not find the appropriate
class.
Thanks,
Michael.
-
To unsubscribe,
On 6/6/06, Greg Allen [EMAIL PROTECTED] wrote:
I am having some problems with the shale dialogs. I have defined my
dialogs (correctly, I believe) in the dialog-config.xml as follows:
dialogs
dialog name=Log in start=login
action name=login method=#{account$login.login}
Leo Asanov wrote:
This wouldn't work for me because content type have to be different under
different circumstances, but response.setContentType works just fine.
Thanks!!
Be very careful with this, as if you send anything but a text-based
content type, you could be in for a surprise. The
Hanmay Udgiri wrote:
Hi
Can we use bean:message in the custom tag java class(in the doStartTag
method)
You could use a JSP-based tag instead of a Java tag, let's say
webroot/WEB-INF/tags/mytag.tag:
%@ taglib uri=/tags/struts-bean prefix=bean %
bean:message ... /
- Scott
On 6/6/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
What action or command in 1.3.x corresponds to
RequestProcessor.processCachedMessages() from 1.2.x ? I looked at the
source code of 1.3.2 snapshot but could not find the appropriate
class.
Good catch, its missing.
Niall
Thanks,
That's really odd ... the no matching navigation cases is coming from the
MyFaces navigation handler implementation ... but, if you are within a
dialog, Shale should never have delegated to the default one in the first
place. Are you sure that you correctly entered the dialog (by
On 6/6/06, Niall Pemberton [EMAIL PROTECTED] wrote:
On 6/6/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
What action or command in 1.3.x corresponds to
RequestProcessor.processCachedMessages() from 1.2.x ? I looked at the
source code of 1.3.2 snapshot but could not find the appropriate
On 6/6/06, Greg Allen [EMAIL PROTECTED] wrote:
That's really odd ... the no matching navigation cases is coming
from the
MyFaces navigation handler implementation ... but, if you are within a
dialog, Shale should never have delegated to the default one in the
first
place. Are you
I'm writing an eclipse plugin to create a visual builder for clay
components. What I would like to do is extend the ClayXmlParser to
add a rule that will capture the description from the xml and set in
into the ComponentBean. The reason I want to be able to do this is to
display the description
From: Ryan Wynn [EMAIL PROTECTED]
I'm writing an eclipse plugin to create a visual builder for clay
components. What I would like to do is extend the ClayXmlParser to
add a rule that will capture the description from the xml and set in
into the ComponentBean. The reason I want to be able
At 3:00 PM -0700 6/6/06, James Bost wrote:
I am working on URL cleaning in my struts web application. How can I
create a custom ActionMapper and how to use it?
If you're talking about Struts 1.x, there's no ActionMapper class,
and ActionMapping is more like a configuration object than a
On 6/6/06, Gary VanMatre [EMAIL PROTECTED] wrote:
From: Ryan Wynn [EMAIL PROTECTED]
I have had to work around the use of private instance variables in a
couple other scenarios in trying to build this plugin. I was just
wondering if anyone was opposed to changing some of these instance
Attached is my modified ClayXmlParser which digests description
elements and sets them into extended ComponentBeans.
My mistake, forgot to add digester rules for attributes and symbols.
Attached is the fixed version.
package clay_plugin.parser;
import java.io.IOException;
import
I could not get both Dave and Scott
Can u explain more briefly
On 6/7/06, Scott Van Wart [EMAIL PROTECTED] wrote:
Hanmay Udgiri wrote:
Hi
Can we use bean:message in the custom tag java class(in the doStartTag
method)
You could use a JSP-based tag instead of a Java tag, let's say
59 matches
Mail list logo