Click here to Skip to main content
15,903,203 members
Home / Discussions / Java
   

Java

 
GeneralRe: Encryption of Java-DB connection url?? [modified] Pin
Alok Sharma ji4-Feb-11 1:38
Alok Sharma ji4-Feb-11 1:38 
GeneralRe: Encryption of Java-DB connection url?? Pin
Richard MacCutchan4-Feb-11 2:48
mveRichard MacCutchan4-Feb-11 2:48 
AnswerRe: Encryption of Java-DB connection url?? Pin
jschell4-Feb-11 9:46
jschell4-Feb-11 9:46 
GeneralRe: Encryption of Java-DB connection url?? Pin
Alok Sharma ji4-Feb-11 21:12
Alok Sharma ji4-Feb-11 21:12 
GeneralRe: Encryption of Java-DB connection url?? Pin
Richard MacCutchan4-Feb-11 23:34
mveRichard MacCutchan4-Feb-11 23:34 
GeneralRe: Encryption of Java-DB connection url?? Pin
jschell5-Feb-11 7:16
jschell5-Feb-11 7:16 
GeneralRe: Encryption of Java-DB connection url?? Pin
Alok Sharma ji13-Feb-11 19:20
Alok Sharma ji13-Feb-11 19:20 
QuestionHTML forms action attribute getting changed Pin
User 62554643-Feb-11 17:14
User 62554643-Feb-11 17:14 
Hi, I am using struts framework and I have written the following markup on my jsp page.

<html:form action="/add_product" method="post" enctype="multipart/form-data">
    <div>
        <table style="width: 386px; height: 76px">
            <tr>
                <td style="width: 103px">
                    Model</td>
                <td style="width: 89px">
                    <html:text property="pModel" style="width: 175px" /></td>
            </tr>
            <tr>
                <td style="width: 103px; height: 24px">
                </td>
                <td style="width: 89px; height: 24px">
                    <html:file property="pImg3" style="width: 183px" /></td>
            </tr>
            <tr>
                <td style="width: 103px">
                    Description</td>
                <td style="width: 89px">
                    <html:text property="pDesc" style="width: 175px" /></td>
            </tr>
            <tr>
                <td colspan="2" style="height: 24px; text-align: center">
                    <html:submit style="width: 111px; height: 33px">Submit</html:submit>
                    </td>
            </tr>
        </table>
    </div>
</html:form>


However on execution the value of action="/add_product" is getting automatically changed to the context path of the project i.e. action="/WebApplication" Confused | :confused: and when I click the submit button it redirects me to the home page of the projectConfused | :confused: Confused | :confused: .

I have already tested this code & it was working fine. But now suddenly this bug is appearing...
Can anyone please tell why the value in action attribute is changing and how to resolve it?
Thanks in advanceThumbs Up | :thumbsup: Thumbs Up | :thumbsup:

modified 6-Jun-21 21:01pm.

AnswerRe: HTML forms action attribute getting changed Pin
Richard MacCutchan3-Feb-11 22:26
mveRichard MacCutchan3-Feb-11 22:26 
AnswerRe: HTML forms action attribute getting changed Pin
Alok Sharma ji4-Feb-11 1:05
Alok Sharma ji4-Feb-11 1:05 
GeneralRe: HTML forms action attribute getting changed Pin
User 62554644-Feb-11 17:59
User 62554644-Feb-11 17:59 
Questioncan someone please explain this if expression? Pin
TorstenH.1-Feb-11 0:06
TorstenH.1-Feb-11 0:06 
AnswerRe: can someone please explain this if expression? Pin
Richard MacCutchan1-Feb-11 1:15
mveRichard MacCutchan1-Feb-11 1:15 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 1:47
TorstenH.1-Feb-11 1:47 
AnswerMessage Closed Pin
1-Feb-11 3:29
User 11380001-Feb-11 3:29 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 3:58
TorstenH.1-Feb-11 3:58 
GeneralRe: can someone please explain this if expression? Pin
Richard MacCutchan1-Feb-11 4:14
mveRichard MacCutchan1-Feb-11 4:14 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 5:29
TorstenH.1-Feb-11 5:29 
GeneralRe: can someone please explain this if expression? Pin
Richard MacCutchan1-Feb-11 5:52
mveRichard MacCutchan1-Feb-11 5:52 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 23:54
TorstenH.1-Feb-11 23:54 
GeneralRe: can someone please explain this if expression? Pin
jschell1-Feb-11 10:55
jschell1-Feb-11 10:55 
GeneralRe: can someone please explain this if expression? Pin
Richard MacCutchan1-Feb-11 3:51
mveRichard MacCutchan1-Feb-11 3:51 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 4:03
TorstenH.1-Feb-11 4:03 
Questionhow to solve? Pin
pancakeleh31-Jan-11 19:32
pancakeleh31-Jan-11 19:32 
AnswerRe: how to solve? Pin
Richard MacCutchan31-Jan-11 22:09
mveRichard MacCutchan31-Jan-11 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.