Hello again,

J ai un soucis d élaboration de mon algorithme, j ai un string qui contient le texte suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
<xsp:page xmlns:xgui="http://www.odcgroup.com/uif/xgui/0.1" xmlns:xsp="http://apache.org/xsp" language="java">
  <xgui:module>
    <xgui:hbox>
      <xsp:logic>String selected = (String) request.getParameter("selectedTab");if (selected == null) { selected = "tab-2";}</xsp:logic>
      <xgui:tabbed-pane>
        <xgui:tab>
          <xgui:text>tab-2</xgui:text>
          <xsp:attribute name="selected">
            <xsp:expr>selected.equals("tab-2")</xsp:expr>
          </xsp:attribute>
          <xgui:onevent type="click">
            <xgui:submit call-URI="/wui/activity/cdm/cr/flow/addCrFlow?flow-action=init&amp;selectedTab=tab-2" method="get"/>
          </xgui:onevent>
        </xgui:tab>
        <xgui:tab>
          <xgui:text>tab-1</xgui:text>
          <xsp:attribute name="selected">
            <xsp:expr>selected.equals("tab-1")</xsp:expr>
          </xsp:attribute>
          <xgui:onevent type="click">
            <xgui:submit call-URI="/wui/activity/cdm/cr/flow/addCrFlow?flow-action=init&amp;selectedTab=tab-1" method="get"/>
          </xgui:onevent>
        </xgui:tab>
        <xgui:tab>
          <xgui:text/>
          <xsp:attribute name="selected">
            <xsp:expr>selected.equals("")</xsp:expr>
          </xsp:attribute>
          <xgui:onevent type="click">
            <xgui:submit call-URI="" method="get"/>
          </xgui:onevent>
        </xgui:tab>
      </xgui:tabbed-pane>
    </xgui:hbox>
  </xgui:module>
</xsp:page>
je dois mettre sur la meme ligne les tags xsp:attribute et xsp:expr

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
<xsp:attribute name="selected">         <xsp:expr>selected.equals("")</xsp:expr>
</xsp:attribute>
comment pourrais je faire ? je ne vois pas trop de solution