Re: html:text inside a custom tag

2006-06-06 Thread I HARIKRISHNA
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

RE: Nesting MessageResources for parameter replacement.

2006-06-06 Thread M Faizal
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

How to prevent a page from loading

2006-06-06 Thread Pankaj Gupta
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

Re: How to prevent a page from loading

2006-06-06 Thread Frank W. Zammetti
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

RE: Struts Editing in IDE

2006-06-06 Thread Andy Dailey
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

Re: content-type

2006-06-06 Thread Leo Asanov
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!

[shale] subviews with backing beans

2006-06-06 Thread Bahadır Yağan
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

AW: Validating in Action?

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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,

Re: [Fwd: Conditional display of components]

2006-06-06 Thread Angelo zerr
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

Unable to compile org.apache.struts.action.Action class

2006-06-06 Thread Aiping
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

Re: Unable to compile org.apache.struts.action.Action class

2006-06-06 Thread Hemant Johnson Burgula
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

RE: Path success does not start with a / character

2006-06-06 Thread Hakhnazaryan, Arus
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

Re: Path success does not start with a / character

2006-06-06 Thread Antonio Petrelli
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:

AW: Path success does not start with a / character

2006-06-06 Thread m.metz
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

Image Buttons in IE

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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

Re: Path success does not start with a / character

2006-06-06 Thread Jorge Martín Cuervo
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

AW: Path success does not start with a / character

2006-06-06 Thread m.metz
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]

Re: Unable to compile org.apache.struts.action.Action class

2006-06-06 Thread Aiping
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

Re: Image Buttons in IE

2006-06-06 Thread David Delbecq
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

Re: Validating in Action?

2006-06-06 Thread Oshima Tlholoe
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

Re: Hi, need of help

2006-06-06 Thread Ted Husted
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

Reset Image Button

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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

RE: Reset Image Button

2006-06-06 Thread Sahil Gupta
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]

RE: Reset Image Button

2006-06-06 Thread Samere, Adam J
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

How to create custom ActionMapper

2006-06-06 Thread Mukta
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]

Re: how can i pass an arraylist from jsp to action class

2006-06-06 Thread Dave Newton
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

Re: html:text inside a custom tag

2006-06-06 Thread Dave Newton
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

Re: How to prevent a page from loading

2006-06-06 Thread Dave Newton
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

Re: Struts Editing in IDE

2006-06-06 Thread Dave Newton
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

Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Shoukat, Faisal
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

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Shoukat, Faisal
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

[shale] - Dialog issues

2006-06-06 Thread Greg Allen
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/

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Samere, Adam J
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

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Shoukat, Faisal
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

Re: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Dave Newton
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

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Samere, Adam J
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

Re: How to terminate the uploading process of Struts?

2006-06-06 Thread Al Eridani
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

RE: How to terminate the uploading process of Struts?

2006-06-06 Thread Samere, Adam J
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

Image change on error

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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:

AW: Image change on error

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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]

AW: Image change on error

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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:

RE: Image change on error

2006-06-06 Thread Samere, Adam J
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

Format USDollars

2006-06-06 Thread Raghuveer
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]

Re: [shale] subviews with backing beans

2006-06-06 Thread Craig McClanahan
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

Action Mapping

2006-06-06 Thread James Bost
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

processCachedMessages in 1.3.x

2006-06-06 Thread Michael Jouravlev
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,

Re: [shale] - Dialog issues

2006-06-06 Thread Craig McClanahan
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}

Re: content-type

2006-06-06 Thread Scott Van Wart
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

Re: html:text inside a custom tag

2006-06-06 Thread Scott Van Wart
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

Re: processCachedMessages in 1.3.x

2006-06-06 Thread Niall Pemberton
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,

RE: [shale] - Dialog issues

2006-06-06 Thread Greg Allen
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

Re: processCachedMessages in 1.3.x

2006-06-06 Thread Michael Jouravlev
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

Re: [shale] - Dialog issues

2006-06-06 Thread Craig McClanahan
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

[shale] extending clay

2006-06-06 Thread Ryan Wynn
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

Re: [shale] extending clay

2006-06-06 Thread Gary VanMatre
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

Re: Action Mapping

2006-06-06 Thread Joe Germuska
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

Re: [shale] extending clay

2006-06-06 Thread Ryan Wynn
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

Re: [shale] extending clay

2006-06-06 Thread Ryan Wynn
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

Re: html:text inside a custom tag

2006-06-06 Thread Hanmay Udgiri
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