My jsp page only executes the else statement
How do I compare strings in Java?
I am doing a project where my electronics runs on 5V which I wanted to power from a 7.2v lipo regulated down to that voltage. I'd really like to include the opportunity to charge the lipo without removing it from the project. What kind of circuit/components do I need to do it properly?  Say, would putting a battery charging ic at the battery's terminals in parallel to my system be enough to achieve what I need? Is $\mathbb{R}$ a subset of $\mathbb{R}^2$? Is it correct to say that $\mathbb{R}$ is a subset of $\mathbb{R}^2$? Or, put more generally, given $n,m\in\mathbb{N}$, $n&lt;m$, is $\mathbb{R}^n$ a subset of $\mathbb{R}^m$?  Also, strictly related to that: what is then the "relationship" between the set $\{(x,0)\in\mathbb{R}^2,x\in\mathbb{R}\}\subset\mathbb{R}^2$ and $\mathbb{R}$? Do they coincide (I would say no)? As vector spaces, do they have the same dimension (I would say yes)?  If you could give me a reference book for this kind of stuff, I would really appreciate it.  Thank you very much in advance.  (Please correct the tags if they are not appropriate) Prove that for every $a\in A$ $\exists$ $q\in M,s\in A$ s.t. $a=sba+qa$ where $M$ is maximal ideal in $A$. Let A be a commutative ring with unity ring, M be a maximal ideal and $b\notin M$ . Show that there exists $q \in M, s\in A$ such that for every $a \in A$ we have $a=sba+qa$. Show that this is true only when $M$ is a maximal ideal.   Suppose if we take $A=2\mathbb Z$ and $M=4\mathbb Z$, $a=6.$ Then by the given statement $\exists$ $s\in A$, $q\in M$ s.t. $6=6(2s+q)$ $\implies$$s=\frac{1-q}{2}\implies q \text { is odd}$. But $q \in 4\mathbb Z.$  Please someone give some hints. how can solve this.  Thank you.. Google Chrome (Windows) not displaying text/encoding correctly on certain websites I experience a problem similar to    Here's a screenshot on the website     I've tried:   Removing fonts I have installed Setting the encoding to Western, UTF-8, Greek, Automatic Changing the fonts used in Google Chrome Removing Google Chrome, including all application data/user profiles Running CCleaner Reinstalling Google Chrome, twice Installing Chromium (fonts display fine in Chromium) Turning off Windows ClearType Changing Windows/Chrome languages from English (Australia) to US, UK Restarting Windows several times after making changes   All of which did not work. I do not connect over VPN/proxy.   Can anyone give me any tips?  Windows 7 x64 Ultimate Using proof by contradiction vs proof of the contrapositive Can't mount an IDE HDD - "can't read superblock" error message I'm trying to mount my HDD,  /dev/sdb, which is connected via an enclosure but every time I try do so I get an error message   mount: /dev/sdb: can't read superblock   How do I solve this problem and mount my HDD? How do I give myself an item that can only be placed on a block with a certain damage value? I'm currently in the process of making a custom map and I want to add blocks that can only be placed on a certain colour clay.  This is the command I tried using.  /give @p cobblestone 1 0 {CanPlaceOn:["hardened_stained_clay"],Damage:3}   However, even with this command the cobblestone can be placed on any colour of stained clay. What command can I use for placing only on a certain block? Have you used any of the C++ interpreters (not compilers)? I am curious if anyone have used UnderC, Cint, Cling, Ch, or any other C++ interpreter and could share their experience. Table of Contents with Chapter I'm attempting to modify the Table of Contents in my document. Currently, chapter one in my document is listed as   1   Introduction   What I would like to see is  Chapter 1   Introduction   Seems like an easy enough thing to ask for, but can't seem to find a good way to do this. Any feedback would be most appreciative. Best explanation of Ruby blocks? The escape velocity of earth is roughly $11 kms^{-1}$. However, what if a long ladder was built extending out of Earth's atmosphere and considerably more. Then if something was to climb up at much less than the escape velocity, what would happen when it reached the end?  And what if the object that climbed the "ladder" then fired some kind of thruster/rocket and was going fast enough so that it orbited the Earth. It would mean less energy required to get into orbit? C# Settings.Default.Save() not saving? Are if and whether equivalent in sentences like the ones below?     How to determine if my saddle is too high?   How to determine whether my saddle is too high?         We should check if everything is okay now.   We should check whether everything is okay now. Polynomial in $n$ variables Let $f$ be polynomial in $n$ variables. If we have $f(a_1,\ldots,a_n) = 0, a_i \in S_i$ and $S_1,\ldots,S_n$ are infinite subsets of a field $k$, how can I show that $f=0$? How did nobody at Hogwarts (especially Dumbledore) figure out what killed Myrtle? I have looked for similar questions here on stack exchange. The closest example to this that I found is . That question assumed less than perfect absorption of material lining the inside of the sphere, and the effect of thermally re-radiating it inside the sphere.  A lot of the answers focused on that much of the thermal radiation would not be reflected back to the star, and is likely to be reabsorbed by the sphere at another location. On the other hand, this question asks what would happen if the Dyson sphere, using mirrors, deliberately refocus a significant portion of the rays directly back at the star. I want to upgrade my disk from MBR to GPT, and I tried using Windows' MBR2GPT.EXE tool to do the job. I used Windows' DISKPART tool to identify the disk I want to convert. However, this happened:  C:\WINDOWS\system32&gt;MBR2GPT.EXE /convert /disk:0 /allowfullos  MBR2GPT will now attempt to convert disk 0. If conversion is successful the disk can only be booted in GPT mode. These changes cannot be undone!  MBR2GPT: Attempting to convert disk 0 MBR2GPT: Retrieving layout of disk MBR2GPT: Validating layout, disk sector size is: 512 bytes Disk layout validation failed for disk 0 MBR2GPT: Conversion failed   and the conversion failed. Using Diskpart again, I get the following output:  DISKPART&gt; list disk    Disk ###  Status         Size     Free     Dyn  Gpt   --------  -------------  -------  -------  ---  --- * Disk 0    Online          465 GB      0 B   Disk 1    Online         3841 MB   960 KB  DISKPART&gt; select disk 0  Disk 0 is now the selected disk.  DISKPART&gt; list partition    Partition ###  Type              Size     Offset   -------------  ----------------  -------  -------   Partition 1    Primary            100 MB  1024 KB   Partition 2    Primary            464 GB   101 MB   Partition 3    Recovery           813 MB   464 GB   Partition 4    Recovery           511 MB   465 GB   Looking at the partitions on disk 0, there are 2 primary partitions and 2 hidden ones, I read  that the partitions might have something to do with the conversion failing, so I believe this is the culprit. If anyone could offer help converting my disk, that would be greatly appreciated. What does general relativity say about the relative velocities of objects that are far away from one another? What does general relativity say about the relative velocities of objects that are far away from one another? In particular:--  Can distant galaxies be moving away from us at speeds faster than $c$? Can cosmological redshifts be analyzed as Doppler shifts? Can I apply a Lorentz transformation in general relativity? Keep "Employee" on the profile of SE employees on meta Currently, SE employees are given diamonds wherever they need them. I agree with  on this to some degree, employees shouldn't be treated any different.  But... on meta, employees are different. They have the power to dole out official responses, and thus we should be able to differentiate between an employee and a normal user. Currently, only some employees have a diamond on MSO (see , ). This makes it confusing, especially when you see official-sounding posts like .  Now, giving diamonds to all employees on meta may not be the best solution to this. I don't think all employees want their precious inboxes spammed with all the suspensions that are doled out on meta, and other mod stuff. They won't really need the diamond powers either (though it wouldn't hurt).  So, I propose this:  Similar to how moderators have "Moderator" clearly on their profile    display "employee" on an employee's profile, along with the diamond if they have one. At least on meta.    It would imho be even better to display it on their usercards in some form, but that has already been shot down.  It would be even even better if non-MSO mods had greyed out diamonds, similar to , but that's just me wanting more shiny stuff ;-) Remove a marker from a GoogleMap