My question is very simular to this one:    In my .jsp page I have a form in which I would like to preset a text field to the current date. My only issue is that "value" does not support runtime expressions when using Struts - which makes sense I want to keep as much Java out of the JSP as possible. But this leaves me struggling to get the variable out of an action.  I am currently running on Tomcat v7.0 and Eclipse Java EE IDE for Web Developers. Version: Kepler Service Release 2.  in my .jsp page I have:     &lt;s:set var="currentDate" value="currentDate"/&gt;    &lt;s:property value="currentDate"/&gt;     &lt;s:form action= "updateAction"&gt;   &lt;s:textfield name="dateUpdated" key="label.dateUpdated" size="20" value="%{currentDate}" /&gt;    &lt;s:submit method="execute" key="submit"/&gt;    &lt;/s:form&gt;   Now I have three actions - one to get to this page(ToPageAction), one for when the form is submitted(UpdateAction), one that gets the currentDate variable(GetCurrentDateAction).  I think I am going crazy >.&lt;   anyways, the action to get the currentDate variable is called GetCurrentDateAction and looks like:    public class GetCurrentDateAction extends ActionSupport {  SimpleDateFormat date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public String currentDate = date.toString();  public String getCurrentDate(){     return currentDate; } public void setVariable(String currentDate){     this.currentDate=currentDate; } public String execute() throws Exception{     return SUCCESS;  } }   additionally in struts.xml I have:   &lt;action name="getCurrentDateAction" class="net.upsmon.struts2.action.GetCurrentDateAction"&gt; &lt;result name="success"&gt;AlertPersistencyView.jsp&lt;/result&gt; &lt;/action&gt;   I have read through the question I linked to many, many times and tried to format my own struts correctly but find myself getting lost. I am not sure if the answers are just misleading or I am just not understanding something I feel like this issue cannot be too difficult to solve. in my .jsp page I have a property tag to prove to myself that I got the variable into the .jsp but it has not yet worked. And additionally my textfield is blank. Any advice out there for me to get this variable into my .jsp? Is there any additional information I can provide for a solution? I unerstand the basics of Struts and any advice is welcome.  An additional piece of information: I have been also looking at  blog in order to figure out my issue,  but have still not come up with a solution.
I am trying to show the current date in my JSP page using JSTL. below is the code I am using.  &lt;jsp:useBean id="now" class="java.util.Date" scope="request" /&gt; &lt;fmt:formatDate value="${now}" pattern="MM.dd.yyyy" /&gt;   But the above code is not producing any results? Am I missing anything here or is there any better approach for this? I am using JSTL 1.1.
Is it always true that $(A_1 \cup A_2) \times (B_1 \cup B_2)=(A_1\times B_1) \cup (A_2 \times B_2)$ Problem with the header/ footer width I have recently started using the geometry package to format the margins of my documents. Although, I've noticed that the width of the header/ footer remains the same. How can I correct this?    Here's a MWE:  \documentclass{article}  \usepackage{geometry} \usepackage{fancyhdr}     \pagestyle{fancy} \usepackage{blindtext}  \lhead{} \chead{Header} \rhead{} \lfoot{} \cfoot{Footer} \rfoot{\thepage} \renewcommand{\headrulewidth}{1pt} \renewcommand{\footrulewidth}{1pt}  \begin{document}  \newgeometry{margin=0.5in, bottom=1in, top=1in} \Blinddocument  \end{document} `apt update` failed on Debian Linux Attempting to upgrade testing/stretch Debian Linux:  $ sudo apt update  Ign:1 http://dl.google.com/linux/talkplugin/deb stable InRelease Hit:2 http://dl.google.com/linux/talkplugin/deb stable Release                                                                    ... Get:25 http://mirror.vorboss.net/debian unstable/main i386 Packages 2016-03-25-1456.28.pdiff [15.0 kB]              Fetched 686 kB in 7s (89.5 kB/s)                                                                                                                                                         Reading package lists... Done W: gpgv:/var/lib/apt/lists/dl.google.com_linux_talkplugin_deb_dists_stable_Release.gpg: The repository is insufficiently signed by key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 (weak digest) W: gpgv:/var/lib/apt/lists/deb.opera.com_opera_dists_stable_InRelease: The repository is insufficiently signed by key 419D0ACF314E8E993F7F92E563F7D4AFF6D61D45 (weak digest) W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release  No Hash entry in Release file /var/lib/apt/lists/dl.google.com_linux_talkplugin_deb_dists_stable_Release, which is considered strong enough for security purposes E: Some index files failed to download. They have been ignored, or old ones used instead.  What's wrong? How to fix it? How can I prove this sequence is decreasing? My problem is how to prove  $$\frac{1+2}{1}  &gt; \frac{1+3+\frac{3^2}{2!}}{1+2} &gt; \frac{1+4+\frac{4^2}{2!}+\frac{4^3}{3!}}{1+3+\frac{3^2}{2!}}&gt;\cdots $$  i am sure that the sequence is decreasing as limit exp(1).  However, the reason why the sequence is decreasing is not evident.  Thanks if you consider this issue and make me relief. I recently found a formula to help find a sequence given a generating function:  $(\frac{1}{1-x})^k=\sum_{n=0}^{\infty}\binom{n+k-1}{n}x^n, k \in \mathbb{N}$  I just wondered if there was a known proof for this, or if anyone knows of a way to prove it. no border around hyperlinks with hyperref Newton's third law of motion states that every action has an equal and opposite reaction. That is the reason we do not sink into the earth, because when our weight exerts a force on the earth it also exerts an equal and opposite force on us.  But when we stand on quicksand or on fluids we can sink in. How is this possible? Does it not exert an equal and opposite force on us? Or are Newton's laws different in the case of fluids and substances of low densities? So essentially does margin collapsing occur when you don't set any margin or padding or border to a given div element? How to make a declaration from a command? There are two forms of setting the type style: the declarative method e.g, \itshape and the command form, e.g, \textit. The command form takes an argument whereas the declarative form does not --- it just applies itself to whatever comes afterwards.  I would like to develop a declarative form, say \UppercaseIt, of the command form \MakeUppercase{&lt;text&gt;}. I have read, in source2e.pdf on CTAN the code for implementing \textit, \itshape and \MakeUppercase and can't claim that I understand any of them. I am after something like {\UppercaseIt some text} instead of \MakeUppercase{some text}.  I only have a code outline of what I'm after, since I don't know how to do it:  \documentclass{article}  \newcommand{\UppercaseIt}{%   %... magic }  \begin{document}  \MakeUppercase{some text}% Yields SOME TEXT  {\UppercaseIt some text}% Should yield SOME TEXT  \end{document} Who took care of Naruto when he was young? In episode 350, we see that the Third Hokage took on to take care of Naruto. But towards the beginning of the anime Naruto is seen to be living alone.   Did Naruto live with the Third? If so, why did he leave there? How to select html nodes by ID with jquery when the id contains a dot? If my html looked like this:  &lt;td class="controlCell"&gt;     &lt;input class="inputText" id="SearchBag.CompanyName" name="SearchBag.CompanyName" type="text" value="" /&gt; &lt;/td&gt;   How could I select #SearchBag.CompanyName with JQuery? I can't get it to work and I fear it's the dot that's breaking it all. The annoying thing is that renaming all my id's would be a lot of work, not to mention the loss in readability.  Note: Please let's not start talking about how tables are not made for lay-outing. I'm very aware of the  and try hard to use it as much as possible. What's the English equivalent of the Japanese saying, “A fart ruins 100 days of sermons by the priest (bishop)”? I was amused by the expression "Paid a penny and only farted" (related by @FumbleFingers), which suggested a similar Japanese saying: 大山鳴動鼠一匹 - "Find only a small mouse coming out after hearing rumblings and experiencing shaking of the big mountain."  It’s humorous. I chuckled when I read it, and I wrote to the author that I love it.  With that said, the word "fart" reminds me of another Japanese proverb, 百日の説法屁一つ- "A fart ruins 100 days of sermons by the priest", which means that a small mistake (the sound of a fart in front of the congregation) brings all his efforts to naught.  It can’t happen in big Western churches. But it could well happen in a small wooden temple where a priest would preach to 30 – 50 provincial followers. Can you imagine how the proud priest being called 'the venerable' would be embarrased when his loud fart is heard by all his followers during his serious sermon and they start to giggle here and there in the hall?  We also have a similar saying" 九仞の功を一簣に欠く, which literally means "Collapse a 9- meter sand tower with the last pile of sand."  What is the English equivalent of the saying "A fart ruins 100 days of sermons by the priest (bishop): a small mistake depreciates the value of (vitiates) all labor and effort to naught," preferably in such a humorous way? How to print the position How to write the below lines using array?? val1=$(grep 'Thread' Threadout.txt | awk -F&quot;/&quot; '{print $1}')    val2=$(grep 'Thread' Threadout.txt | awk -F&quot;/&quot; '{print $2}')  val3=$(grep 'Thread' Threadout.txt | awk -F&quot;/&quot; '{print $3}')  val4=$(grep 'Thread' Threadout.txt | awk -F&quot;/&quot; '{print $4}')  Threadout.txt contains like &quot;Thread 1/1/25/100&quot; PHP/MYSQL login error? If an polynomial has a complex root, is it necessary that the conjugate of that root is also a root of the polynomial? I am not sure about this. Please comment on this. Convert HTML entities to Unicode and vice versa Distinct digits in a combination of 6 digits Greek numbering How do I unset an element in an array in javascript? If we remove the square in the upper right corner of a $8\times 8$ chessboard.  The question is: Is it possible to cover the entire remaining area, with $1\times 3$ chocolate bars? (they can be laid on the chessboard vertically and horizontally aswell)  For the answer: We know that there will be $63$ squares left on the chessboard, of which $32$ are white and $31$ are black, since the one in the upper right corner was black. $63$ is divisible by $3$, so it could be possible to cover the area, but that doesn't prove that an arrangement exists to do it. I'm not sure how to continue and am seeking help. Thanks.