> Just add a getter to your "train" object that translates the startDate
> into
> the format you'd like. Use a DateFormat object.
>
> -Brian
>
>
>
> On Thu, Feb 18, 2010 at 5:07 PM, fireapple wrote:
>
>>
>> Dear all, I'm using
Dear all, I'm using
where startDate is a java.util.Date field of an object train.
The output is something like this:
http://old.nabble.com/file/p27647328/date.png
How can I eliminate the 12:00:00 in the textfield? Thanks!
--
View this message in context:
http://old.nabble.com/how-to-elimin
. Note that in addition to be
> available in your build path, the dependency must be available at
> runtime too (usually inside the WEB-INF/lib folder)
>
> 2010/1/12 fireapple :
>>
>> In project1, I include project2 in order to use interfaces (interface A,
>> B,
>> C,
In project1, I include project2 in order to use interfaces (interface A, B,
C, D.) of project2.
However, the system always claim java.lang.NoClassDefFoundError for
interface of project2.
I also exported project2 to a JAR and include it in project1's build path,
still no luck.
I tried 3 of my
Here is the form from my jsp page:
1.
2.
3.
4.
5.
6.
7.
8.
When using firefox, it works fine. When using internet explorer, the form is
submitted twice for the same action.
Example: if the user clicks "Release", public String release
Dear all,
I want to use a multiple select to ask user select the item they want.
The items selected will be on a pdf file which will be sent as attachment of
email (user can click "send email" button to send them). The user wants to
confirm if the pdf is right before he sends it. Therefore, I
Thanks, I changed action in requestUri from ajax to a normal one. Now sorting
and paging work fine although it's not ajax.
Is it possible to do the sorting and paging in an ajax way?
Oscar Calderón-2 wrote:
>
>
> Well, it depends of the display table's configuration. In display table
> tag y
Here's my situation:
I used a displaytag to show a table as an ajax result. It works fine.
However, when I click "sort" or go to different page, it opens a new page
with only the displaytag table. I saw something online that there's ajaxTags
or ajaxAnywhere, but it seems they're both not good.
r
>
> http://code.google.com/p/struts2-jquery-plugin/
>
> Best Regards
>
> Johannes Geppert
>
>
>
> fireapple wrote:
>>
>> Thanks Johannes, I'm using struts 2.0.11, this is my ajax submit tag:
>>
>> > targets="%{'segme
Thanks, I tried your method and it didn't work out.
I also tried to put all JQuery library and Javascript block in my ajax
page(which is supposed to appear in the s:div). Still doesn't work.
However, after adding executeScripts="true" in my , if I add
"alert('test');" into my ajax page, I can s
I wonder if this is durable with S2:
JSP form:
this form has a button FINALIZE, if all goes well - the result SUCCESS
should be seen in placeA on the page and if it fails the result FAILURE
should be seen in placeB (a different place on the page);
the SUCCESS/FAILURE are just messages but they mu
newton.dave wrote:
>
>
>> "" doesn't work at
>> all.
>
> Stream it from an action/servlet/etc?
>
> Dave
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.
Jeromy Evans - Blue Sky Minds wrote:
>
>
> Hi Johnson, I think just need to read up a little more on Struts 2 as it
> seems you're trying to do too much yourself based on Struts1 experiences
> rather than let the framework do more of the routine work. Ian Roughly's
> book is a good place to
Security Management wrote:
>
> I have had problems when trying to show a bunch of thumbnails, because you
> have a URL that points to an action in your jsp that causes a database hit
> to pull the image. If I'm trying to show 150 thumbnails, the page takes
> forever to load due to the db conne
Richard Sayre wrote:
>
> I should have also mentioned that there are security issues with
> persisting to the hard drive.
>
> I would recommend saving to the database and loading the images as
> needed. Do not save them to session. I do not think you will have a
> performance problem.
>
> R
Richard Sayre wrote:
>
> You should persist the images as bytes, in a binary field or something
> similar.
>
>> 1. Because the image is large, it's not efficient to store it in
>> objects(beans).
>
> Well this depends on the Bean. Is the bean stored in session? If yes
> then it will take up
Firstly, I persist the portraits (images) of all users in the db as Strings
(large one, say length 5000). Then, I want to get the String and display the
portraits of users on the web page(like a topic in a forum). Here I know
three solutions but none of them is efficient:
1. Because the image is
So there is no way to put the control of determining the result to Struts
instead of Javascript?
Steven Yang wrote:
>
> Actually you went off Struts' scope by using AJAX.because javascript is on
> the client side. by using XHR you have put the control of determining the
> result to javascript a
I created a login page with jQuery, I'm sending Ajax request by .getJSON(),
Also, I want to use struts 2's controller to assign to different pages based
on the returned results of action (in this case, if username and password
doesn't match, use an ajax reminder; if match, redirect to another page
e
> you looking more for skill building sources?
>
>
> fireapple wrote:
>>
>> Thank you! It seems I have a lot to learn:-)
>>
>>
>> Wes Wannemacher wrote:
>>>
>>> On Tue, Apr 28, 2009 at 10:39 AM, fireapple
>>> wrote:
&g
Thank you! It seems I have a lot to learn:-)
Wes Wannemacher wrote:
>
> On Tue, Apr 28, 2009 at 10:39 AM, fireapple
> wrote:
>>
>> Hi, Wes, on the table of content of the book, I didn't find anything
>> related
>> to JQuery and Struts2. Since JQuery is
Hi, Wes, on the table of content of the book, I didn't find anything related
to JQuery and Struts2. Since JQuery is similar with JavaScript, can we say
we can use JQuery in Struts2 as soon as we can use JavaScript in Struts2?
Thank you. I'm a new programmer with stupid questions,:-)
Wes Wannema
Because our team is using struts2 to develop the web application and I'm in
charge of the UI part, I have to restrict the UI to struts2.
I heard that JQuery is very popular and I love it. Also, I know some people
are using it in struts2. However, I couldn't find any related tutorial. Any
tutorial
23 matches
Mail list logo