Re: How to pass date from action to custom jsp tag?

2010-11-07 Thread holod
I've tried it. The problem is solved. You can see solution here: http://stackoverflow.com/questions/4109125/struts2-pass-actions-method-result-to-custom-tag -- View this message in context: http://old.nabble.com/How-to-pass-date-from-action-to-custom-jsp-tag--tp30144287p30152338.html Sent from t

How to pass date from action to custom jsp tag?

2010-11-05 Thread holod
Hello, I want to create simple dummy tag. I have an action: class MyAction extends ActionSupport{ /** Some code*/ public Department getRoot(){ /** Some code foes here...*/ return departmentInstance; } } a tag: <%...@tag language="java" pageEncoding="UTF-8" body-content="empty" %

proxy server corrupts json encoding

2009-11-14 Thread holod
Hi, please, help me to find a solution. I'm using json plugin. The base of my app is IBM WebSphere Portal Server 6.1, I'm writing portlets. This is xml configuration for action [code] application/json;charset=UTF-8

result type="redirectAction" with parameter which is int[]

2009-03-02 Thread holod
Good day. I have a question" Please, see fragment from struts.xml: Search / ${id} id is an int[]. SavePersonInSession accepts id well (I see

Re: Problem when using result type="redirect-action"

2008-12-02 Thread holod
KE LI-2 wrote: > >> I think some thing is wrong at these lines, >> >> >> ViewTestedLetters >> /admin >> 1 >> > > Nabble swallowed my tags, I've replaced them on [ and ] http://www.nabble.com/Problem-wh

Problem when using result type="redirect-action"

2008-12-02 Thread holod
When I try to redirect action and set parameter value to it, I get an exception: [02.12.08 12:11:33:705 MSK] 0031 OgnlUtil W com.opensymphony.xwork2.util.OgnlUtil internalSetProperty Caught OgnlException while setting property 'page' on type 'org.apache.struts2.dispatcher.ServletActionRe

Re: @DateRangeFieldValidator max=currentDate

2008-08-12 Thread holod
I've found this one discussion: http://forums.opensymphony.com/thread.jspa;jsessionid=aaSWPA1PEcc4tixQ2U?messageID=5041Ꮁ I need the same: min parameter is fixed, max parameter is dynamic (currentDay + 1 day). Please, show me how can I use some static method inside annotation. holod

Re: Problem displaying jsp after form submitting

2008-08-12 Thread holod
Excuse me for flooding. The answer is very-very easy. Designer put away tags for JavaScript and ccs files. That is why they were not visible for browser. Check your designers :) holod wrote: > > I have an action: > <.action name="StoreLawDraft" > class="project.ac

Problem displaying jsp after form submitting

2008-08-12 Thread holod
I have an action: ShowMainPage /admin /admin/processlaw.jsp /admin/processlaw.jsp if success it chains to: /admin/catalog.jsp My project.action.admin.StoreLawDraftAction sets actionM

@DateRangeFieldValidator max=currentDate

2008-08-12 Thread holod
@TypeConversion(converter = "project.action.admin.converter.DateConverter") @RequiredFieldValidator(message="Please, enter date. Field can't be empty") //@DateRangeFieldValidator(min = "01.01.1990", max = "${new Date()}", message = "date must be between ${min} and ${max},

Re: append value inside <:iterator

2008-08-12 Thread holod
holod wrote: > > I use > inside this tag I want to compose a String. > I'

Re: Simple validation does not work

2008-08-09 Thread holod
me, but I'm using WebSphere AppServer 6.1 + EJB3 feature pack. The problem was in difference between IBM JDK and Sun JDK. Good luck, Anton. JAnton wrote: > > I'm using JBOSS-5.0.0.CR1, could you please explain in more details what I > should do? > > On Fri, Aug 8, 2008

Re: Simple validation does not work

2008-08-08 Thread holod
If you are using IBM WebSphere 6.x, that's ok. I've faced the same problem: http://jira.opensymphony.com/browse/XW-651 So, I've simply checked out branch of x-work, packaged it using Maven and now stupid IBM App server allows me to use validation. Anyway, you you aren't WebSphere user, I suggest

append value inside <:iterator

2008-08-07 Thread holod
I use inside this tag I want to compose a String. I've tried this one:

Re: HowTo: transfer parameter between actions?

2008-08-05 Thread holod
It was very silly question! Thanks, result type="chain" solves the problem! stanlick wrote: > > Consider chaining over redirect. However, this does sort of hard wire > your > flow! > > On Tue, Aug 5, 2008 at 5:33 AM, holod <[EMAIL PROTECTED]&g

HowTo: transfer parameter between actions?

2008-08-05 Thread holod
1.I have action PrepareDictionaryAction it has field String dictionaryId and appropriate getter and setter. dictionaryid comes from previous jsp. (enter.jsp) action sends user to dictionary.jsp 2.dictionary jsp has hidden field . So I will not be lost. 3.then through form submit user goes to Work

Re:

2008-07-31 Thread holod
inding "this" all goofy, JS) > but it's very powerful when used with skill. > > If you're interested in programming JS I'd recommend the Crockford videos. > Well worth the time, and it'll improve your programming in other languages > as well. > > D

user@struts.apache.org

2008-07-31 Thread holod
And I will explain why. If I make any mistakes, please, tell me. This is my struts2 tag: Click me! this is my JS code: dojo.event.topic.subscribe("/afterDeleteLaw", _listeners, "test1"); var _listeners = { test1: function(sourceId){ alert("sourceId"); } };

Re: dojo anchor: get widget id and targets attributes inside subscribed topic?

2008-07-30 Thread holod
dojo mailing list [1] [2] recommend? > > jk > [1] [EMAIL PROTECTED] > [2] http://dojotoolkit.org/* > * > On Wed, Jul 30, 2008 at 8:57 AM, holod <[EMAIL PROTECTED]> wrote: > >> >> I use dojo anchor widget (). >> It successfully gets response in json

dojo anchor: get widget id and targets attributes inside subscribed topic?

2008-07-30 Thread holod
I use dojo anchor widget (). It successfully gets response in json from server, but I have several problems accessing widget, that published a topic. Please, see my code: dojo.event.topic.subscribe("/after", function(data, request, widget){ alert('inside a topic event. after request'); //d

Re:

2008-07-29 Thread holod
dojo.event.topic.subscribe("/afterDeleteLaw", function(data, request, widget){ //data : text returned from request(the html) It is my json //request: XMLHttpRequest object //widget: widget that published the topic var _mydata = eval("(" + data +")"); }); and:

Re:

2008-07-29 Thread holod
Thanks newton.dave , I've spent some time experimenting with tag attributes. Now, I have problem with notifyTopics. Please, see my function: 1. dojo.event.topic.subscribe("/afterDeleteLaw", function(data, request, widget){ //data : text returned from request(the html) It is my json //re

Re:

2008-07-28 Thread holod
resultOfAction), { and }, also I don't need quotes and :. And the second question: How is it possible to execute my own JS script right after execution? newton.dave wrote: > > --- On Mon, 7/28/08, holod <[EMAIL PROTECTED]> wrote: >> I want to do this thing: >> 1

Re:

2008-07-28 Thread holod
resultOfAction), { and }, also I don't need quotes and :. And the second question: How is it possible to execute my own JS script right after execution? newton.dave wrote: > > --- On Mon, 7/28/08, holod <[EMAIL PROTECTED]> wrote: >> I want to do this thing: >> 1

user@struts.apache.org

2008-07-28 Thread holod
I use tag (dojo-anchor) This tag invokes action, which has result type="json" (I'm using JSON plugin for struts2). It returns values of all public get*() methods of invoked action in JSON. I want to do this thing: 1.catch result, parse it and get value of only one public get*() method. 2.write i

Re: Compose String value and stack value into String, set result as property value of struts2 tag, solution

2008-07-28 Thread holod
targets[] works fine, http://www.nabble.com/Compose-String-value-and-stack-value-into-String%2C-set-result-as-property-value-of-struts2-tag-tp18686786p18687298.html Sent from the Struts - User mailing list archive

Compose String value and stack value into String, set result as property value of struts2 tag

2008-07-28 Thread holod
I use tag. It has attribute targets="" My targets generated inside It means they have distinguish Id's: someContent someContent someContent I make id attribute of with this expression: "> It works fine. Each generated has it's own I want each use it's own as targets This is my code: clic

Re: Iterator index: how to index html elements? count works, but status doesn't

2008-07-28 Thread holod
"> works fine. It just starts from 1, not from 0 Why? I can't understand what has happened to index. count is not so bad, thanks for you help and cooperation! -- View this message in context: http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterator%29-tp18614028p18686074.html

Re: Iterator index: how to index html elements?

2008-07-28 Thread holod
That's not valid JSP; you can't nest tags like that. > Any suggestions, please, can't understand mistake. That's not what is for; it's for parameterizing other tags. ">bar You could use to create the ID if you don't want to create it on-the-fly. "> Some content When I inspect source of g

Iterator index: how to index html elements?

2008-07-28 Thread holod
Now, I have another problem: My iterator generates some content I want to give id="bla-bla" to my generated raws of table. For example iterator makes 5 iterations, I get 5 rows (some content), but I want to set id attribute for them: some content some content some content some content some conten

Is it possible not to use DOJO plugin?

2008-07-28 Thread holod
--- On Fri, 7/25/08, holod <[EMAIL PROTECTED]> wrote: > I've seen tag, but I didn't understand how can > I invoke request to action manually (by mouse click for example) >? >http://struts.apache.org/2.x/docs/dojo-anchor.html >Note that if you're using S2.

RE: Nothing helps

2008-07-25 Thread holod
Thank you, I've finally solved the problem! Previous solutions helped me, seems like I was making stupid mistakes. This code snippet prints links to my download action, my download action works fine. Thank you again!

Ajax: invoke action by mouseClick and get simple string

2008-07-25 Thread holod
I have very easy problem, can I solve it with the help of any struts2 tag? Explanation: I have an image. User clicks on this image. Request with several parameters goes to a server. Action is invoked, parameters used during action execution. Action sends back simple string "Success" or "Fail". thi

Nothing helps

2008-07-25 Thread holod
attribute "var" doesn't exist in my struts-tags.tld. I'm using the last one struts2 pack. lawDraft.docs returns List with 5 elements. Simple printing shows 5 elements I've tried to invoke method "getTitle()" of class Document which instances are in ArrayList: 1. Nothing, empty string 2.

Problem accessing iterated object (

2008-07-23 Thread holod
Plsease, see my code:

@Conversion on method of the previous Action field

2008-07-22 Thread holod
I have a question, please see code of my action: public class PrepareLawDraftAction extends ActionSupport{ private LawDraft lawDraft; //has method getDateIntro(), which returns Date private Date loadDate; public String execute(){ //... } @TypeConversion(converter = "struts2.action.admin.convert

Re: How can I store temporary data during user input procedure?

2008-07-19 Thread holod
lingueres >> <[EMAIL PROTECTED]> wrote: >>> 1 and 2: You could choose store your objects in session scope. >>> Even it may be the only way to do it, because you say that there are >>> Law fields that the user can't modify, which it discards the option of

Re: How can I store temporary data during user input procedure?

2008-07-18 Thread holod
lds that the user can't modify, which it discards the option of > rewriting those fields as hidden fields in your form (for security > reasons) > > 2008/7/18 holod <[EMAIL PROTECTED]>: >> >> Please, help me with suggestion. >> My logic is: >> >> 1.P

How can I store temporary data during user input procedure?

2008-07-18 Thread holod
Please, help me with suggestion. My logic is: 1.PrepareLawAction is invoked. This action gets Law object from DB (if action received lawId parameter ) or it prepares template Law object (just automatically fills some Law fields which user can't modify). 2.Action sends user to processlaw.jsp Her

Re: Can't access bean from jsp

2008-07-17 Thread holod
Finally, I found a error. I've got freemaker.jar and freemaker-2.x.x.jar in classpath. freemaker.jar is used by other app, freemaker-2.x.x is used by struts2 app. So, the first freemaker.jar was on duty to provide classes. Now, I've removed ald version of freemaker, and this terrible exception gon

Re: Can't access bean from jsp

2008-07-17 Thread holod
Lukasz Lenart wrote: > >> name of the action in struts.xml, so you should put # in there. > > It should be: > you shouldn't put # in there. > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-

Re: Can't access bean from jsp

2008-07-17 Thread holod
Stacktrace: [17.07.08 11:20:18:239 MSD] 0066 SystemOut O #PrepareLawDraftAction RESULT = success [17.07.08 11:20:18:255 MSD] 0066 ServletWrappe E SRVE0068E: Необрабатываемая исключительная ситуация сгенерирована в одном из служебных методов сервлета: /admin/processlaw2.jsp. Исключит

Re: Can't access bean from jsp

2008-07-17 Thread holod
My struts.xml:        /admin/processlaw.jsp   /admin/processlaw.jsp         Can't access bean from jsp
My task is: 1. Action PrepareLawDraft has private field LawDraft lawDraft ; it has public getter and setter. This action fills LawDraft object fields. 2.On ActionSupport.SUCCESS I go to processlaw.jsp On this jsp I want to output some fields of LawDraft and allow user to modify 3.Then user pre