Extending logic:forward tag

2002-06-14 Thread Yaman Kumar
Hi, I have a problem in extending logic:forward tag, Actually I am developing a tag to check the user login status and can forward the user to my require page that is available in forward from global-forwards in struts-config.xml. After checking the struts-example web application "login.jsp" is li

Urgent-using global-forwards in custom tag classes

2002-06-14 Thread Yaman Kumar
Hi, I have a requirement to get a forward class in a Custom tag class which is in struts-config.xml. I'm writing a user's session checking tag which needs to forward to a login.jsp page that is available in struts-config.xml In my custom tag i would like to get the value of sessionexpired. I

RE: JSP's under WEB-INF?

2002-06-14 Thread Yaman Kumar
-Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Friday, 7 June 2002 5:01 AM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: JSP's under WEB-INF? In looking at the Struts doc, is there any reason why the following wouldn't work just as well?

RE: Preselected option in dropdown

2002-06-14 Thread Yaman Kumar
If your select box property is existing in your Action Form bean and its value matches with any of its option values , struts would select that item by default. ex: and if u have method with name getMyname() ( set method also )in your action form and if getMyname() returns a value(X) and if c

help needed - default selection in dynamic select boxes.

2002-06-14 Thread Yaman Kumar
Hi, I am using struts v1.0.2 and heard this does not support generation of dynamic html controls through struts tags(). I have a collection of ComboBoxBeans with name-value pair in a Vector to show html options and would like to use it with 2nd collection . I have a problem in rendering defa

Need Urgent help

2002-06-13 Thread Yaman Kumar
Hi, I have a problem in using logic:equal tag given below DO SOME. This code is working fine when it is not null. But when ever it { beaninstance.getMethod() } is becoming null, page is getting exception as below... javax.servlet.jsp.JspException: Cannot compare null variable to value A

RE: Two questions

2002-06-13 Thread Yaman Kumar
27;t understand the first question. You can forward in a jsp using the struts forward tag: Niall > -Original Message- > From: Yaman Kumar [mailto:[EMAIL PROTECTED]] > Sent: 12 March 2002 23:04 > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Two questions >

Two questions

2002-06-12 Thread Yaman Kumar
Hi, I have 2 questions 1.Regarding calling a method that is in ActionForm from a jsp. Ex: I have an image and i would like to enable reset method to image that is in MyActionForm class. 2. I have a forward that is in global-forwards and i would like to get that in a jsp page, Ex.

Using Hashtable to show html options using struts html:options tag

2002-06-10 Thread Yaman Kumar
Hi, Can any one suggest me in using Hashtable in html:options tag to render html options. I could render with vector but not with Hashtable(key & value are Strings). TIA rayaku -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Help needed.

2002-06-10 Thread Yaman Kumar
th* validation. HTH Sri -Original Message- From: Yaman Kumar [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 2:21 PM To: Struts Users Mailing List Subject: Help needed. Hi, I have a jsp page named x.jsp with several href links and one of them refers to myaction.do which expects a formb

Help needed.

2002-06-10 Thread Yaman Kumar
Hi, I have a jsp page named x.jsp with several href links and one of them refers to myaction.do which expects a formbean and its validation is false and that forwards to mypage.jsp. and mypage.jsp has got same form bean and its action is again myaction.do but this time i would like to validate t

RE: Not a trivial, but got very much meaning

2002-06-10 Thread Yaman Kumar
Hi, The reset is not working and It is submitting the page by default, I have the submit image button to submit page for which i have used ( this is submiting fine) But the below is not working.( the below code is submitting the page) -- To unsubscribe, e-mail:

RE: Not a trivial, but got very much meaning

2002-06-10 Thread Yaman Kumar
much meaning Not sure what you want to do but if you want your submit image to submit, then onclick, just do a document.form.submit(), similarly for reset Rgs V -Original Message- From: Yaman Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 7:32 PM To: Struts Users Mailing

Not a trivial, but got very much meaning

2002-06-10 Thread Yaman Kumar
Hi, Can any one help me out in enabling reset and submit functionality to image buttons? Many people suggested me to follow struts-example but i did not find any there. TIA yaman -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: i18n and images?

2002-06-10 Thread Yaman Kumar
Hi, If I understand your question properly, keep all images of application in a dir and write these images names in properties file(i18n_*.properties) with key names and in jsp page call that key name. Example. suppose you need to display an image (x1.gif) for en locale and other image(x2.gif) fo

Enabling Struts submit and reset functionality to html images...

2002-06-08 Thread Yaman Kumar
Hi, What is way to enable submit and reset functionality to images. I have written in this way but it is not working out.. For submit (working fine) For reset ( submitting but not resetting the form ? ). Does any one have better approach? TIA rayaku -- To unsubscribe

Is Struts architecture a disadvantage?

2002-06-06 Thread Yaman Kumar
MessageHi, I have a question regarding struts architecture, As the Html form and its validation has been moved and implemented at server side ( a ActionForm ), once any validation error encounters that is shown in the same page from which this request is generated ( this is very impressing), but

Dynamic FormBean properties to display dyanamic controls

2002-06-06 Thread Yaman Kumar
Hi Tim, I could not get, can u elaborate it? As i found this thread in struts-archive, I have a problem similar to this one. I would like to display 3 radio buttons per row(student info) grouped as one. and like that it would display no of rows(students). So As there are not dynamic properties for

dynamic form properties

2002-06-06 Thread Yaman Kumar
Hi, I have a requirement to create (n number of)radio buttons dynamically.I would like to validate them at form, How would i do this as these are dynamic properties?. Like Administrator has got 3 options to choose against each student name, ex. in MVC it looks like <% for (int i=0;i Name : <%c

Struts Design question

2002-06-05 Thread Yaman Kumar
Hi, I have a design question of struts implementation in my application, I have a AformBean in A.jsp and the page action is actionA, actionA processed all AfromBean values and got some dynamic data from Database,Now i would like to keep this data in BFormBean and the actionA forwards the output t

HttpSession problem in struts

2002-06-05 Thread Yaman Kumar
Hi, I am implementing struts to my new web application, and have problem with new window that is opened by parent window using javascript is treated in new session. After logging in to application successfully so much info is loaded into session object and user gets a second page and this page op

Using formbean effectively(again)

2002-06-03 Thread Yaman Kumar
Hi, I have an frist.java (action class) and that would keep so much info in several attributes and bound them to request object, and then in first.jsp page i would retrieve all of them and display in FristForm.java controls. I have got an idea to keep all the information in FirstForm bean itself

Using formbean effectively.

2002-06-03 Thread Yaman Kumar
Hi, I have an frist.java (action class) and that would keep so much info in several attributes and bound them to request object, and then in first.jsp page i would retrieve all of them and display in FristForm.java controls. I have got an idea to keep all the information in FirstForm bean itself

several jsps using 1 action class and avoiding several action statements in struts-config.xml

2002-06-03 Thread Yaman Kumar
Hi, I have 4 jsp files using one action class and action class forwards to the page which called this action class.Becoz i would like user to go back to same page from which he visited. Can i avoid writing 4 action mappings and all 4 mappings have only same action class but forward value is di

Using hidden variable without form

2002-06-03 Thread Yaman Kumar
Hi, I have a jsp file without a form and has got one image and target of this is one action class which requires 2 parameters, When i click on this button i do not want these parameternames and values to appear in querystring in browser address location, Can i avoid these showing in querystring

A TagLib question

2002-05-23 Thread Yaman Kumar
Hi, I'm newbee to JSP taglibraries, I'm having some doubts in creating a tag library declared below. In TagHandler java flile I have got all these into methods, But how would I invoke getFullName() method on student instance some thing like student.getFullName(); in TagHandler class. As this

Accessing ApplicationResources.properties file in action class

2002-05-20 Thread Yaman Kumar
Hi, I have a requirement of accessing properties(i18n) file in action class. Can any one throw light on it?. Many Thanks, rayaku -- To unsubscribe, e-mail: For additional commands, e-mail:

Using datetime jakarta-tag in Struts

2002-05-17 Thread Yaman Kumar
Hi, Can any one help me in printing below String using dateformat tag always it is giving "Invalid date ". CODE in MVC java.text.DateFormat dformat = java.text.DateFormat.getDateTimeInstance(); <%=myinfo.getUpdatedDate()%> ==> 2002-04-02 11:31:48.0 <%= dformat.format(myinfo.getUpdatedDate

Templates and i18n problem in struts

2002-05-16 Thread Yaman Kumar
Hi, I am using templates in struts, In my jsp page I used the below statement. .. .. the statment prints MYPRINTPAGE . but the output is not rendered in title location in runtime, but it is printing "" message without parsing the tag.. In short how can I use tag in templates. Just r

Templates and i18n problem in struts

2002-05-16 Thread Yaman Kumar
Hi, I am using templates in struts, In my jsp page I used the below statement. .. .. the statments prints MYPRINTPAGE . but the output is not rendered in title location in runtime, but it is printing message without parsing the tag.. In short how can i use tag in templates. Could an

Most interesting question.

2002-05-15 Thread Yaman Kumar
Hi, I have a problem in rendering data from an object that is bound to request object in myaction class. request.setAttribute("myVector",results); and that is fetched and put it in html select component in myJSP. So far this is fine.. When I'm validating t

RE: Help : Dropdown List

2002-05-15 Thread Yaman Kumar
Hi, There is little advice If I understood ur problem. Do u have your "list" object in request scope with the key "complist". and if u would like to populate the complist in list box then change the statment to below one.If u r looking for option values and option names are same. I hope this h

Applying struts submit and reset button tags functionality to images

2002-05-15 Thread Yaman Kumar
Hi, Can any one help in applying struts submit /reset buttons to images. submit reset To /images/submit.gif" width="42" height="22" border="0"> /images/reset.gif" width="42" height="22" border="0"> Many Thanks, rayaku -- To unsubscribe, e-mail: For additional

RE: class cast exception

2002-05-15 Thread Yaman Kumar
Hi, Can You check action element attributes in action-mappings element in struts-config.xml element. Ex: some thing like below hope it helps rayaku -Original Message- From: Thorsten Maus [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 May 2002 6:40 PM To: struts-u

Interesting question?

2002-05-15 Thread Yaman Kumar
Hi, I have a problem in rendering data from an object that is bound to request object in myaction class. request.setAttribute("myVector",results); and that is fetched and put it in html select component in myJSP. So far this is fine.. When I'm validating t

Seeking help

2002-05-06 Thread Yaman Kumar
Hi, Though this is not related to struts but I'm having little difficulty in accessing jsp pages that are in web-inf\jsps\ directory. When I accessed (using http://localhsot:8080/myapp/x1.jsp) x1.jsp which is in web-inf\jsps\ Tomcat4.0 is giving 404 error. Does Tomcat expect .jsp files in webap

Can any one do this?

2002-05-06 Thread Yaman Kumar
Hi, Can any one help me out in defining string variables and assigning the values to them using Jakarta string or bean taglibs. Or I would be glad if below code converted into tag format using string,session,bean(jakarta taglibs). <% String var1=null; String var2=""; String var3; MyBean mbe