Re: content-type

2006-06-05 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:

RE: Struts Editing in IDE

2006-06-05 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 may

Re: How to prevent a page from loading

2006-06-05 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 ass

How to prevent a page from loading

2006-06-05 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: Nesting MessageResources for parameter replacement.

2006-06-05 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

Re: html:text inside a custom tag

2006-06-05 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

html:text inside a custom tag

2006-06-05 Thread Hanmay Udgiri
Hi Can we use bean:message in the custom tag java class(in the doStartTag method) -- Thanks and Regards Hanmayya Udgiri

Nesting MessageResources for parameter replacement.

2006-06-05 Thread Scott Van Wart
In the default MessageResources.properties, it includes things like "{0} is required." I'd like to use one of these, and replace {0} with something _that is itself_ a key in the MessageResources.properties. I tried something like this: MessageResources.properties: some.message={0} is my mess

Re: Struts Editing in IDE

2006-06-05 Thread Craig McClanahan
On 6/5/06, Andrè Kapp (AJ) <[EMAIL PROTECTED]> wrote: All you need is the base Eclipse 3.2 and then MyEclipse on top of that - Standard with MyEclipse is support for Struts 1.0 /1.1/ 1.2, etc... Also included is support for JSF, Hibernate, Proper JSP editor, Database Explorer It wil cost yo

RE: Struts Editing in IDE

2006-06-05 Thread AJ
All you need is the base Eclipse 3.2 and then MyEclipse on top of that - Standard with MyEclipse is support for Struts 1.0 /1.1/ 1.2, etc... Also included is support for JSF, Hibernate, Proper JSP editor, Database Explorer It wil cost you a license fee of +- $30.00 but it is money well worth s

Re: Struts Editing in IDE

2006-06-05 Thread Pankaj Gupta
Can you please suggest some good plugin for eclipse for me. regards, Pankaj Andy Dailey wrote: I have been using struts for quite a while now (4 years) and am wondering if there are any decent drag and drop capabilities within any of the current IDE's that allow easy development of applications

Re: [Fwd: Conditional display of components]

2006-06-05 Thread I HARIKRISHNA
put that contextdto in session I HARIKRISHNA <[EMAIL PROTECTED]> wrote: Create a contextDTO which holds the logged in user credentials like username etc Now in each jsp use logic:equal and decide whether to show or not Pankaj Gupta wrote: Hi, I wish to display some components like buttons an

Re: [Fwd: Conditional display of components]

2006-06-05 Thread I HARIKRISHNA
Create a contextDTO which holds the logged in user credentials like username etc Now in each jsp use logic:equal and decide whether to show or not Pankaj Gupta <[EMAIL PROTECTED]> wrote: Hi, I wish to display some components like buttons and links conditionally meaning if the user is a basi

storing values in the formbean

2006-06-05 Thread Shasirekha Engala
hi I have some doubts regarding the storage of objects in a vector declared in the struts-config.xml. I am using DynaActionForms and the problem is, I have declared a vector named hiddedFieldVector in struts-config.xml as This vector has not been initialised any where. I

Struts Editing in IDE

2006-06-05 Thread Andy Dailey
I have been using struts for quite a while now (4 years) and am wondering if there are any decent drag and drop capabilities within any of the current IDE's that allow easy development of applications using struts. I am already familiar with jDeveloper's support. I would like to see what this com

[Fwd: Conditional display of components]

2006-06-05 Thread Pankaj Gupta
Hi, I wish to display some components like buttons and links conditionally meaning if the user is a basic operator, he should not see a submit button and a link on his page otherwise if a user is an advanced operator he should be allowed to see it. Can somebody please suggest how should I do it.

how can i pass an arraylist from jsp to action class

2006-06-05 Thread Sreekanth PK
Hi, 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??

Re: content-type

2006-06-05 Thread Bart Busschots
You can set it in the JSP like so: <%@ page contentType="text/xml" %> Leo Asanov wrote: Hi! Is it possible to change content type in action class? response.setContentType doesn't do anything. Content is html code, generated by a jsp file. What are my options? Cheers, Leo --

content-type

2006-06-05 Thread Leo Asanov
Hi! Is it possible to change content type in action class? response.setContentType doesn't do anything. Content is html code, generated by a jsp file. What are my options? Cheers, Leo - Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min

Password validation and validwhen

2006-06-05 Thread Scott Van Wart
I'm doing password field validation using 'validwhen'. I have a user form used for multiple purposes (create a user, modify a user with optionally changing the password). So I have my password and passwordConfirm properties set up, but I'm stuck at the last part--making sure the passwords mat

Re: Struts Tag -

2006-06-05 Thread Rahul Akolkar
On 6/5/06, J Gotsch <[EMAIL PROTECTED]> wrote: Looking at the documentation, it's not clear on how I can use the . Now, which of the following three is the correct syntax for the match comparing? value="ABC"> The name attribute is the name of the bean in the specified scope

Struts Tag -

2006-06-05 Thread J Gotsch
Looking at the documentation, it's not clear on how I can use the . Now, which of the following three is the correct syntax for the match comparing? value="ABC"> __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the

Re: [shale] Is there a Dialog Scope?

2006-06-05 Thread Duong BaTien
On Mon, 2006-06-05 at 11:14 -0700, Craig McClanahan wrote: > On 6/5/06, Duong BaTien <[EMAIL PROTECTED]> wrote: > > > > Hello Craig: > > > > Could you let us know if you are a part of the proposed Web Beans that > > combine Shale, Oracle ADF, and Seam? It may even more useful if you can > > roughly

Re: submit form on click of a link before Action class is executed

2006-06-05 Thread Scott Van Wart
fea jabi wrote: Want to submit the form when user clicks on a link before entering Action class. How to do this? Thanks. If I understand you right, you could use JavaScript: function onClickLink() { document.myForm.submit(); } <%-- Associated with myForm --%> <%-- ... --%> Link

Re: [shale] Is there a Dialog Scope?

2006-06-05 Thread Craig McClanahan
On 6/5/06, Duong BaTien <[EMAIL PROTECTED]> wrote: Hello Craig: Could you let us know if you are a part of the proposed Web Beans that combine Shale, Oracle ADF, and Seam? It may even more useful if you can roughly lay out the direction of your vision in this area. I am indeed, in the sense

Re: [shale] Is there a Dialog Scope?

2006-06-05 Thread Rahul Akolkar
On 6/5/06, Adam Brod <[EMAIL PROTECTED]> wrote: Hi- JBoss Seam provides addition Scopes beyond Request, Session, Application and None. In particular, JBoss has a Conversation Scope that stores your data for the duration of a specific conversation. This frees the developer from stuffing data in

Re: [shale] Is there a Dialog Scope?

2006-06-05 Thread Duong BaTien
Hello Craig: Could you let us know if you are a part of the proposed Web Beans that combine Shale, Oracle ADF, and Seam? It may even more useful if you can roughly lay out the direction of your vision in this area. Thanks BaTien DBGROUPS On Mon, 2006-06-05 at 10:09 -0700, Craig McClanahan wro

Re: [shale] Is there a Dialog Scope?

2006-06-05 Thread Craig McClanahan
On 6/5/06, Adam Brod <[EMAIL PROTECTED]> wrote: Hi- JBoss Seam provides addition Scopes beyond Request, Session, Application and None. In particular, JBoss has a Conversation Scope that stores your data for the duration of a specific conversation. This frees the developer from stuffing data i

[shale] Is there a Dialog Scope?

2006-06-05 Thread Adam Brod
Hi- JBoss Seam provides addition Scopes beyond Request, Session, Application and None. In particular, JBoss has a Conversation Scope that stores your data for the duration of a specific conversation. This frees the developer from stuffing data in the session and then manually removing it at

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-05 Thread Samere, Adam J
Additionally, make sure you use the correct 1.1 uri in your tag lib import: <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> Note the "jsp" between java.sun.com and jstl in the path. -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Monday, June 05,

RE: Form Beans in Session

2006-06-05 Thread nageshkumar.siddu
Hi , Instead of putting every form bean in session, you can put custom VO in session. Example: Let Page1.jsp, Page2.jsp,Page3.jsp have FormBean1.java, FormBean2.java,FormBean3.java as beans and Action1.java ,Action2.java,Action3.java be the Action Classes respectively. Create BaseVO.java, OneVO

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-05 Thread Karr, David
Curiously, I thought to do a Google to verify whether Websphere 6 was a Servlet 2.4 container, which is relevant to your situation, and in addition to verifying that, I also found someone who had the exact same problem as you, at . As this blog entry

RE: urgent

2006-06-05 Thread Shasirekha Engala
give an id to the table and in the javascript function alert ("no.of rows: " + document.getElementById(tableid).getElementsByTagName("TR")[0].length); this may work Thanks and Regards shasi -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 7

Form Beans in Session

2006-06-05 Thread Hanmay Udgiri
Hi We have Pages where user enters some data in step 1 ,step 2 and in last step these data should be submitted to DB. We are putting the all form beans in session as all of our transactions are multiple step process. Is there any better of way not putting the form beans in session -- Thanks a

Re: javabeans explanation

2006-06-05 Thread Leon Rosenberg
El lun, 05 de 06 de 2006 a las 16:32, Emilia Ipate escribió: > That is true, but my question is: why does it have to be the same? because of the java bean specification? Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: javabeans explanation

2006-06-05 Thread Jorge Martín Cuervo
imho, retrospection api only works ok with that rule. El lun, 05 de 06 de 2006 a las 16:32, Emilia Ipate escribió: > That is true, but my question is: why does it have to be the same? > > -Original Message- > From: Jorge Martín Cuervo [mailto:[EMAIL PROTECTED] > Sent: maandag 5 juni 200

Re: urgent

2006-06-05 Thread Gareth Evans
or without using scriptlets... Gareth Jorge Martín Cuervo wrote: if you use a collection simply: <%=((java.util.List)request.getAttribute("data")).size()%> also check: http://displaytag.sourceforge.net/11/tut_implicitobjects.html rowNum maybe help too El lun, 05 de 06 de 2006 a las 16:13

RE: javabeans explanation

2006-06-05 Thread Emilia Ipate
That is true, but my question is: why does it have to be the same? -Original Message- From: Jorge Martín Cuervo [mailto:[EMAIL PROTECTED] Sent: maandag 5 juni 2006 16:25 To: Struts Users Mailing List Subject: Re: javabeans explanation i think the types must be the same choose: public

Re: javabeans explanation

2006-06-05 Thread Jorge Martín Cuervo
i think the types must be the same choose: public int getAge() public void setAge(int age) or public Age getAge() public void setAge(Age age) despite this, in actionform you should use only String values. With String values you can store wrong int values that user entered, but with int value

javabeans explanation

2006-06-05 Thread Emilia Ipate
Title: Message Hello, all!   I have a question: why if I have in a ActionForm these 2 methods:     public Age getAge();     public void setAge(int age); (note that I do not have a property age in the form, because I do a delegation) and I receive the request parameter "age", why does it

Re: urgent

2006-06-05 Thread Jorge Martín Cuervo
if you use a collection simply: <%=((java.util.List)request.getAttribute("data")).size()%> also check: http://displaytag.sourceforge.net/11/tut_implicitobjects.html rowNum maybe help too El lun, 05 de 06 de 2006 a las 16:13, Abhimanyu Koul escribió: > hi all! > can anyone please tell me how i

submit form on click of a link before Action class is executed

2006-06-05 Thread fea jabi
Want to submit the form when user clicks on a link before entering Action class. How to do this? Thanks. _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ ---

urgent

2006-06-05 Thread Abhimanyu Koul
hi all! can anyone please tell me how i can dynamically count the number of rows(records) that a display:table populates. i want to do some javascript coding using that value Abhimanyu Koul FinEng Solutions (P) Ltd. Dani Compound, 158, Vidyanagari Marg, Kalina, Santacruz (East), Mumbai - 400 09

Map-based html:multibox

2006-06-05 Thread Bourgon, Jean-Francois
Hello, I'm trying to assign html:multibox to a map object into my ActionForm. But it doesn't work, when I select multiple value only the first one is assign to the related map key. I only get a String object assign to my key instead of the expected String[]. Here is a sample of my jsp page an