Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: [Question] Send param in form struts2

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [Question] Send param in form struts2

    Hi all,
    I want send parameter in form struts2 . I try using code below:
      <s:form action="Update" > 
    		<s:param name="action" value="submitEdit">action</s:param>
    		<table>
    			<tr>
    				<td>
    					<s:hidden name="objUser.id" value="%{#application.id}"  ></s:hidden>
    					<s:textfield name="objUser.name" value="%{#application.name}"  label="Name"></s:textfield>
    				</td>
    			</tr>
    			<tr>
    				<td>
    					<s:textfield name="objUser.age" value="%{#application.age}"  label="Age"></s:textfield>
    				</td>
    			</tr>
                     <tr>
    				<td colspan="2">
    					<s:submit value="Update">
     
    					</s:submit>
    				</td>
    			</tr>
    HELP !


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: [Question] Send param in form struts2

    Welcome to the forum! Thanks for taking the time to learn how to post code correctly. If you haven't already, please read this topic to learn other useful info for new members.

Similar Threads

  1. <param-value> in web.xml whith Jersey
    By vector_ever in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 5th, 2013, 06:47 AM
  2. send and receive byte array form servlet to another servlet via url
    By diga88 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: June 11th, 2013, 09:40 PM
  3. APPLET PARAM
    By cw010000 in forum Java Theory & Questions
    Replies: 1
    Last Post: June 15th, 2012, 07:46 AM
  4. servlet init param
    By abani in forum Java Servlet
    Replies: 2
    Last Post: November 16th, 2011, 09:19 AM
  5. MIDI question ... need to slow down receiver.send() transfer rate
    By LegGodt in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: July 10th, 2011, 08:56 AM